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
Postfixes:
_AVG - hardware averaged value, use it if your hardware is really able to
report averaged values.
_NOW - momentary/instantaneous values.
Currently only the _NOW postfix is handled, so drivers that report hardware averaged values and not momentary/instantaneous values will not work.
This breaks when used with the pmu_battery module on Apple iBooks. For example, the iBook Clamshell with pmu_battery exports this uevent at /sys/class/power_supply/PMU_battery_0/uevent:
The text was updated successfully, but these errors were encountered:
crozone
changed the title
Battery info module does not look for uevent AVG postfix
0% battery reported because _AVG postfix is ignored in battery uevent
Apr 27, 2021
Issue:
The battery_info module reports 0% for some battery power supply drivers. This is because the
_AVG
postfix is not handled.Detail:
According to the specification laid out in https://www.kernel.org/doc/Documentation/power/power_supply_class.txt, battery uevent can report values with two potential postfixes:
Currently only the
_NOW
postfix is handled, so drivers that report hardware averaged values and not momentary/instantaneous values will not work.This breaks when used with the pmu_battery module on Apple iBooks. For example, the iBook Clamshell with pmu_battery exports this uevent at
/sys/class/power_supply/PMU_battery_0/uevent
:The following code should probably be modified to handle the
_AVG
postfix, and prioritize the_AVG
postfix version over the_NOW
postfix version:i3status/src/print_battery_info.c
Lines 155 to 200 in 30a32cc
The text was updated successfully, but these errors were encountered: