I have a hunc "this is a feature, not a bug" ;-), but with
the update to kernel 4.0, /proc/acpi/battery/BAT* is gone.
Is there a way (config option we could enable) to get this
If not, how can I best re-implement something like the little
script below (which works for more than one battery in case
you are wondering about the complexity):
while read l; do
i=`echo $l | cut -d' ' -f1`
printf "%5s " "$i"
printf " = %s\n" "$s"
for v in "design capacity" "last full capacity" "remaining
capacity" "rate"; do
printf "%18s = " "$v"
cat /proc/acpi/battery/BAT*/* | grep "$v:" | cut -d: -f2 | sum
Dr. Gerald Pfeifer <gp(a)suse.com>
Sr. Director Product Management and Operations, SUSE
To unsubscribe, e-mail: opensuse-kernel+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse-kernel+owner(a)opensuse.org