You are not logged in.

#1 2011-10-10 13:29:41

Onyros
Member
From: Lisbon, Portugal
Registered: 2007-10-11
Posts: 307

No battery identified in /proc/acpi/

After the last couple of kernel updates, I no longer have a BATx folder inside /proc/acpi.

I used it to pipe the results to a little script I use on my statusbar, which keeps track of my memory usage, battery left, etc.

The strangest thing is that dmesg acknowledges the battery is there, and acpi returns the correct percentage and everything. It's just gone from /proc/acpi.

Anyone else had this one happen?

My laptop is an Acer TimeLine 1410.

dmesg | grep battery
[    5.630145] ACPI: Battery Slot [BAT1] (battery present)
acpi -i
Battery 0: Full, 100%
Battery 0: design capacity 4400 mAh, last full capacity 4264 mAh = 96%

Last edited by Onyros (2011-10-10 13:34:01)

Offline

#2 2011-10-10 13:36:50

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: No battery identified in /proc/acpi/

Using /proc to store ACPI information has been discouraged and deprecated since 2.6.24. The same data is available in /sys now and interested parties can (should) subscribe to ACPI events from the kernel via netlink.

https://bugs.archlinux.org/task/25845

acpitool upstream needs to fix this.

Offline

#3 2011-10-10 13:41:14

Onyros
Member
From: Lisbon, Portugal
Registered: 2007-10-11
Posts: 307

Re: No battery identified in /proc/acpi/

Oh, I see! I actually had a look around before posting, but didn't find info on this - or anyone else mentioning it. I obviously had other means of piping the exact same info to the script, it was more out of curiosity than anything else.

Thank you, falconindy smile

Offline

Board footer

Powered by FluxBB