Closed jens-na closed 10 years ago
lifebar uses the following files to determine the battery status:
/sys/class/power_supply/BAT0/energy_full
/sys/class/power_supply/BAT0/energy_new
According to this thread on the Linux ACPI Development Discussion List there are probably other files available under certain circumstances:
/sys/class/power_supply/BAT0/charge_full
/sys/class/power_supply/BAT0/charge_new
This pull request now covers both energy_* and charge_* files. What do you think?
energy_*
charge_*
Looks great, thanks :) I'll merge this a little later on.
Great, thanks. :sparkles:
lifebar uses the following files to determine the battery status:
/sys/class/power_supply/BAT0/energy_full
/sys/class/power_supply/BAT0/energy_new
According to this thread on the Linux ACPI Development Discussion List there are probably other files available under certain circumstances:
/sys/class/power_supply/BAT0/charge_full
/sys/class/power_supply/BAT0/charge_new
This pull request now covers both
energy_*
andcharge_*
files. What do you think?