Yes, this.Andyroo wrote: ↑Fri May 31, 2019 8:29 amDo not look at the value as an integer but look at it as a bitmap.
From GITHUB Link the bits have the means of:
0 Under-voltage detected
1 Arm frequency capped
2 Currently throttled
3 Soft temperature limit active
16 Under-voltage has occurred
17 Arm frequency capped has occurred
18 Throttling has occurred
19 Soft temperature limit has occurred
Just use bit 2 and report it is 'currently throttled' or not and bit 18 for 'throttled since last reboot'
edit: Addition of bold + quotes
Fight Fight Fight - I'll call Miss!
Found this example somewhere:b) get_throttled with a hex or decimal bitmask argument (bits 0-3) resets the "recent" sticky bits, and returns the state of the recent sticky bits in the top 16 bits prior to resetting.
An example would be highly appreciated!c) get_throttled with a non-zero argument but bits 0-3 clear returns the "recent" sticky bits in the top 16 bits without resetting them.
Code: Select all
vcgencmd get_throttled 0x05