On Sun, Apr 29, 2007 at 07:55:09AM +0200, tobias@justdreams.de wrote:
Quoting Jason Chu <jason@archlinux.org>:
From the release logs, IIRC, as of 2.6.21 the acpi stuff moves now from /proc/acpi to /sys. This is supposed to be work in progress, but the
stuff might be already affected. (I'm fishing here, I didn't check the
battery patches)
-T
Actually, I'm the one who has a problem with xfce, 2.6.21, and the battery monitor. Using 2.6.20 (with modules) it works but using 2.6.21 (with modules) it doesn't. The acpi command still works, but the panel battery monitor doesn't.
Someone else try it! Make me not look crazy! Hehehe, I doubt you're crazy, I said I'm fishing. I can try it on my testing laptop by tomorrow. That the acpi command still works is a hint that /proc/acpi/battery still exists and the battery-monitor uses a different method to read out information. But, glancing over the code, the battery-monitor uses a libacpi.c file reading from hard-coded /proc/acpi/... directory. Can you see if you still have a /proc/acpi/battery/BAT0 directory and post the output of cat /proc/acpi/battery/BAT0/* please?
The /proc/acpi/batter/BAT0 directory exists and the output of cat /proc/acpi/battery/BAT0/* is this: [jchu@wingnut ~]$ cat /proc/acpi/battery/BAT0/* alarm: 9055 mAh present: yes design capacity: 7800 mAh last full capacity: 6798 mAh battery technology: rechargeable design voltage: 11100 mV design capacity warning: 780 mAh design capacity low: 236 mAh capacity granularity 1: 78 mAh capacity granularity 2: 78 mAh model number: DELL YG3106 serial number: 1948 battery type: LION OEM info: SMP present: yes capacity state: ok charging state: charged present rate: 1 mA remaining capacity: 7800 mAh present voltage: 12585 mV Jason