e19539e5f6
* Add support for batteries outputting Time to empty on linux The battery in the pinebook pro does not output the remaining charge in Wh or mAh, so i3 cannot calculate the time remaining. However, it does directly output the number of minutes remaining on in POWER_SUPPLY_TIME_TO_EMPTY. This adds support for reading this field and converting it to seconds_remaining. * Add testcase for POWER_SUPPLY_TIME_TO_EMTY_NOW
11 lines
195 B
Plaintext
11 lines
195 B
Plaintext
general {
|
|
output_format = "none"
|
|
}
|
|
|
|
order += "battery 0"
|
|
|
|
battery 0 {
|
|
format = "%status %percentage %remaining"
|
|
path = "testcases/026-battery-time-to-empty/BAT0_uevent"
|
|
}
|