Bug 5048 - Batery state is completely messed up
Summary: Batery state is completely messed up
Status: REJECTED DUPLICATE of bug 3974
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Battery (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: Luming Yu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-11 20:38 UTC by Gustavo Noronha Silva
Modified: 2005-09-28 14:08 UTC (History)
0 users

See Also:
Kernel Version: 2.6.9 -> 2.6.12
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
dmesg output for 2.6.13.2 (27.25 KB, text/plain)
2005-09-28 09:38 UTC, Gustavo Noronha Silva
Details
disassembled code extracted with acpidmp (197.05 KB, text/plain)
2005-09-28 09:39 UTC, Gustavo Noronha Silva
Details
2.6.14-rc2 with ec_burst=1 (122.56 KB, patch)
2005-09-28 14:01 UTC, Gustavo Noronha Silva
Details | Diff
log for 2.6.14-rc2 with no aditional cmd line options (67.61 KB, patch)
2005-09-28 14:02 UTC, Gustavo Noronha Silva
Details | Diff

Description Gustavo Noronha Silva 2005-08-11 20:38:46 UTC
Distribution: Debian unstable
Hardware Environment:

HP/Compaq nx9010 laptop

$ lspci
0000:00:00.0 Host bridge: ATI Technologies Inc: Unknown device cbb2 (rev 02)
0000:00:01.0 PCI bridge: ATI Technologies Inc PCI Bridge [IGP 340M]
0000:00:06.0 Multimedia audio controller: ALi Corporation M5451 PCI AC-Link
Controller Audio Device (rev 02)
0000:00:07.0 ISA bridge: ALi Corporation M1533 PCI to ISA Bridge [Aladdin IV]
0000:00:08.0 Modem: ALi Corporation M5457 AC'97 Modem Controller
0000:00:09.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless
LAN Controller (rev 02)
0000:00:0a.0 CardBus bridge: Texas Instruments PCI1410 PC card Cardbus
Controller (rev 02)
0000:00:0b.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 50)
0000:00:0b.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 50)
0000:00:0b.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 51)
0000:00:0c.0 FireWire (IEEE 1394): Texas Instruments TSB43AB21 IEEE-1394a-2000
Controller (PHY/Link)
0000:00:10.0 IDE interface: ALi Corporation M5229 IDE (rev c4)
0000:00:11.0 Bridge: ALi Corporation M7101 Power Management Controller [PMU]
0000:00:12.0 Ethernet controller: National Semiconductor Corporation DP83815
(MacPhyter) Ethernet Controller
0000:01:05.0 VGA compatible controller: ATI Technologies Inc Radeon IGP 340M
$ cat /proc/acpi/battery/BAT1/info
present:                 yes
design capacity:         4400 mAh
last full capacity:      3776 mAh
battery technology:      rechargeable
design voltage:          14800 mV
design capacity warning: 300 mAh
design capacity low:     200 mAh
capacity granularity 1:  32 mAh
capacity granularity 2:  32 mAh
model number:            01KT
serial number:           1
battery type:            LION
OEM info:                SMP-PA

Software Environment:

Linux alface 2.6.12-1-686 #1 Tue Aug 9 13:00:08 UTC 2005 i686 GNU/Linux

Problem Description:

My batery status is completely messed up. The state does not seem to update. I
turned on the laptop with ac pluged, unpluged it and the gnome batery monitor
showed 99% immediately and correctly showed the 'on batery' state, the screen
lowered the light. Then I replug the ac cable and I get the 'ac on' state shown
by the gnome monitor but no indication of it being recharged. If I unplug the ac
cable and plug it again the status is updated, but not always. Sometimes the
screen light will not even be increased when the ac plug is on.

Monitoring /proc/acpi/battery/BAT1/state confirms the symptoms shown by the
gnome batery monitor. I first noticed this problem on linux 2.6.9 and 2.6.10,
2.6.11 and 2.6.12 also have it.

Right now I have pluged the cable and the gnome batery monitor shows 94% and 'on
battery' state, which is not correct, of course. The light has not been
increased and this is how /proc/acpi/battery/BAT1/state looks like:

$ cat /proc/acpi/battery/BAT1/state
present:                 yes
capacity state:          ok
charging state:          charged
present rate:            0 mA
remaining capacity:      3584 mAh
present voltage:         16736 mV

Ah, the batery led on the front of the laptop is orange, meaning it should be
recharding. Checking /proc/acpi/battery/BAT1/state again shows no change,
though. Unpluging and pluging the cable again made the gnome batery indicator go
to 97% now, but still shows 'on battery' state. /proc/acpi/battery/BAT1/state
now shows:

$ cat /proc/acpi/battery/BAT1/state
present:                 yes
capacity state:          ok
charging state:          charged
present rate:            0 mA
remaining capacity:      3680 mAh
present voltage:         16768 mV

I don't know what kind of information could be useful. If you tell me how to
grab more information that could help I'll gladly do it.

Thanks,
Comment 1 Luming Yu 2005-08-12 00:23:48 UTC
Please try linux-2.6.13-rc6 with patch filed at bug 3851. Pleast test it with 
ec_burst=1 and ec_burst=0.  
Comment 2 Luming Yu 2005-08-21 19:27:22 UTC
I believe this issue has been fixed like bug 3974. 
Please reopen it, if you still have this problem. 

*** This bug has been marked as a duplicate of 3974 ***
Comment 3 Gustavo Noronha Silva 2005-09-28 09:37:05 UTC
I'll try what has been suggested in bug #3851, but since I've done some more
data mining, let me post them here, first. My system does have a Smart Battery
System, from what I could investigate (it's an hp nx9010). I'll attach the
disassembled dsdt and dmesg output I collected.
Comment 4 Gustavo Noronha Silva 2005-09-28 09:38:46 UTC
Created attachment 6175 [details]
dmesg output for 2.6.13.2

comments after --- marks
Comment 5 Gustavo Noronha Silva 2005-09-28 09:39:55 UTC
Created attachment 6176 [details]
disassembled code extracted with acpidmp
Comment 6 Gustavo Noronha Silva 2005-09-28 13:57:08 UTC
ok, following Luming's suggestion at
http://bugzilla.kernel.org/show_bug.cgi?id=3851 I tested 2.6.14-rc2; it seems to
work alright with ec_burst=1 but has the same problem without it; I'm attaching
the log messages FWIW.
Comment 7 Gustavo Noronha Silva 2005-09-28 14:01:53 UTC
Created attachment 6179 [details]
2.6.14-rc2 with ec_burst=1
Comment 8 Gustavo Noronha Silva 2005-09-28 14:02:37 UTC
Created attachment 6180 [details]
log for 2.6.14-rc2 with no aditional cmd line options
Comment 9 Gustavo Noronha Silva 2005-09-28 14:08:53 UTC
btw, it is interesting to note that in both boots I had these messages being
showed multiple times with 1 or 2 seconds in between until I rmmod'ed and
modprobe'd battery:

Sep 28 17:32:52 localhost kernel: [ACPI Debug]  String: [0x12] "CMBatt - _BIF.BAT1"
Sep 28 17:32:52 localhost kernel: [ACPI Debug]  String: [0x12] "CMBatt - _BST.BAT1"
Sep 28 17:32:52 localhost kernel: [ACPI Debug]  String: [0x0D] "CMBatt - _PSR"

Also, X seems to have a problem trying to locate the mouse; that's probably
unrelated, but I guess it won't hurt to mention.

Note You need to log in before you can comment on or make changes to this bug.