GNOME Bugzilla – Bug 354757
APCI information not read consistently
Last modified: 2006-12-10 00:53:34 UTC
Please describe the problem: when running in battery mode, the battery monitor often says that it is usig 0% of unknown. Sometimes it is unaware when the AC is plugged in. Steps to reproduce: Actual results: Expected results: Does this happen every time? no. Sometimes the battery monitor will start out with correct information, run that way for an hour or so, and then fail to report accurately. Other information: [mcdonalddj@localhost Desktop]$ cat /proc/acpi/battery/B BAT0/ BAT1/ [mcdonalddj@localhost Desktop]$ cat /proc/acpi/battery/BAT0/info present: yes design capacity: 7800 mAh last full capacity: 7822 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 YD6236 serial number: 1946 battery type: LION OEM info: SMP [mcdonalddj@localhost Desktop]$ cat /proc/acpi/battery/BAT1/info present: no [mcdonalddj@localhost Desktop]$ cat /proc/acpi/battery/BAT0/state present: yes capacity state: ok charging state: charged present rate: 1 mA remaining capacity: 7822 mAh present voltage: 12748 mV
Can you please check if you're using the HAL backend or the direct ACPI backend. You can do this by selecting the applet and choosing 'About'.
HAL does not appear to be installed, and no star appears in the credits.
That specific way of telling was fixed in 2.14 to actually tell you properly. It was a work around to deal with string freeze. We need values from ACPI when it is working and when it fails to report correctly.
It appears to work somewhat with kernel 2.6.17-1mdksmp and not at all with 2.6.17-2mdksmp Under .17-1: [mcdonalddj@localhost Desktop]$ cat /proc/acpi/battery/BAT0/info present: yes design capacity: 7800 mAh last full capacity: 7822 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 YD6236 serial number: 1946 battery type: LION OEM info: SMP [mcdonalddj@localhost Desktop]$ cat /proc/acpi/battery/BAT0/state present: yes capacity state: ok charging state: charged present rate: 1 mA remaining capacity: 7822 mAh present voltage: 13017 mV I unplugged it at this point, and the applet picked up the change and properly determined the battery life: [mcdonalddj@localhost Desktop]$ cat /proc/acpi/battery/BAT0/info present: yes design capacity: 7800 mAh last full capacity: 7822 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 YD6236 serial number: 1946 battery type: LION OEM info: SMP [mcdonalddj@localhost Desktop]$ cat /proc/acpi/battery/BAT0/state present: yes capacity state: ok charging state: discharging present rate: 1541 mA remaining capacity: 7822 mAh present voltage: 12817 mV [mcdonalddj@localhost Desktop]$ I'll let it run on battery until it fails. Then I will repeat with .17-2
Some time has passed, and now the applet reads System is running on battery Power 4 hours 3 minutes (0%) remaining [mcdonalddj@localhost Desktop]$ cat /proc/acpi/battery/BAT0/info present: yes design capacity: 7800 mAh last full capacity: 7822 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 YD6236 serial number: 1946 battery type: LION OEM info: SMP [mcdonalddj@localhost Desktop]$ cat /proc/acpi/battery/BAT0/state present: yes capacity state: ok charging state: discharging present rate: 1742 mA remaining capacity: 3801 mAh present voltage: 11264 mV Not certain why that is 0%, and if I alarm on battery percentage, it will alarm (it was annoying, so I changed it to 15 minutes rather than a percentage) I plugged it back in, and the indicator still reads battery with the same uptime and percentage [mcdonalddj@localhost Desktop]$ cat /proc/acpi/battery/BAT0/state present: yes capacity state: ok charging state: charging present rate: 2660 mA remaining capacity: 3941 mAh present voltage: 11836 mV
I'm having the same problem. I'm using notebook Acer Aspire 3003LMi and FC6. I can read all information of my battery in /proc/acpi, but no monitoring utility works correctly. I will try to send a screenshots of Power Manager during work as soon as posiible. cat /proc/acpi/battery/BAT1/state present: yes capacity state: ok charging state: charged present rate: 0 mA remaining capacity: 903 mAh present voltage: 0 mV cat /proc/acpi/battery/BAT1/info present: yes design capacity: 2000 mAh last full capacity: 903 mAh battery technology: rechargeable design voltage: 14800 mV design capacity warning: 200 mAh design capacity low: 36 mAh capacity granularity 1: 32 mAh capacity granularity 2: 32 mAh model number: 11ZL serial number: 3728 battery type: LION OEM info: SIMPLO
You can find screenshots here: http://picasaweb.google.com/wojtekjs/ All 3 "GPM" galleries.
*punt*
Wojciech, your laptop is putting out a reading in mAh and we are converting this to mWh using your present voltage. Unfortunatly the present voltage is broken on your laptop, and so the conversion breaks. You need to update to a newer HAL (which contains checks for this) for this to work properly. Dan, I think this is a kernel bug that youo need to report on the linux kernel bugzilla. I don't think either of these are gnome-power-manager bugs, sorry.