You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve description of vcgencmd get_throttled output (raspberrypi#1341)
* Improve description of vcgencmd get_throttled output
* fix typo
* Fix up monospaced text
* Another attempt to fix monospaced text
* Oops - forgot bit zero
* Add missing full stop in measure_temp section
* 2 more missing full stops on this page
* Fix typo
* cammand -> command
* remove period
Copy file name to clipboardExpand all lines: raspbian/applications/vcgencmd.md
+18-5
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Some of the more useful commands are described below.
15
15
16
16
#### vcos
17
17
18
-
The `vcos`cammand has a number of sub commands
18
+
The `vcos`command has a number of sub commands.
19
19
20
20
`version` Displays the build date and version of the firmware on the VideoCore.
21
21
`log status` Displays the error log status of the various VideoCore software areas.
@@ -30,7 +30,7 @@ Displays the enabled and detected state of the official camera. 1 means yes, 0 m
30
30
31
31
#### get_throttled
32
32
33
-
Returns the throttled state of the system. This is a bit pattern.
33
+
Returns the throttled state of the system. This is a bit pattern - a bit being set indicates the following meanings:
34
34
35
35
| Bit | Meaning |
36
36
|:---:|---------|
@@ -39,15 +39,28 @@ Returns the throttled state of the system. This is a bit pattern.
39
39
| 2 | Currently throttled |
40
40
| 3 | Soft temperature limit active |
41
41
| 16 | Under-voltage has occurred |
42
-
| 17 | Arm frequency capped has occurred |
42
+
| 17 | Arm frequency capping has occurred |
43
43
| 18 | Throttling has occurred |
44
44
| 19 | Soft temperature limit has occurred |
45
45
46
-
For example, 0x50000 has bits 16 and 18 set, indicating that the Pi has previously been throttled due to under-voltage, but is not currently throttled for any reason.
46
+
A value of zero indicates that none of the above conditions is true.
47
+
48
+
To find if one of these bits has been set, convert the value returned to binary, then number each bit along the top. You can then see which bits are set. For example:
49
+
50
+
``0x50000 = 0101 0000 0000 0000 0000``
51
+
52
+
Adding the bit numbers along the top we get:
53
+
54
+
```text
55
+
19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
56
+
0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
57
+
```
58
+
59
+
From this we can see that bits 18 and 16 are set, indicating that the Pi has previously been throttled due to under-voltage, but is not currently throttled for any reason.
47
60
48
61
#### measure_temp
49
62
50
-
Returns the temperature of the SoC as measured by the on-board temperature sensor
63
+
Returns the temperature of the SoC as measured by the on-board temperature sensor.
0 commit comments