After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 354757 - APCI information not read consistently
APCI information not read consistently
Status: RESOLVED NOTGNOME
Product: gnome-power-manager
Classification: Deprecated
Component: gnome-power-manager
unspecified
Other All
: Normal normal
: ---
Assigned To: GNOME Power Manager Maintainer(s)
GNOME Power Manager Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2006-09-07 12:50 UTC by dan.mcdonald
Modified: 2006-12-10 00:53 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description dan.mcdonald 2006-09-07 12:50:57 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
Comment 1 Danielle Madeley 2006-09-07 13:09:52 UTC
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'.
Comment 2 dan.mcdonald 2006-09-07 13:29:42 UTC
HAL does not appear to be installed, and no star appears in the credits.
Comment 3 Danielle Madeley 2006-09-07 13:39:00 UTC
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.
Comment 4 dan.mcdonald 2006-09-07 14:22:04 UTC
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
Comment 5 dan.mcdonald 2006-09-07 16:53:16 UTC
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
Comment 6 Wojciech Sluszniak 2006-12-09 22:52:44 UTC
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
Comment 7 Wojciech Sluszniak 2006-12-09 23:47:45 UTC
You can find screenshots here: http://picasaweb.google.com/wojtekjs/
All 3 "GPM" galleries.
Comment 8 Allison Karlitskaya (desrt) 2006-12-10 00:31:02 UTC
*punt*
Comment 9 Richard Hughes 2006-12-10 00:53:34 UTC
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.