Bug 14067 - Compaq V6105NR battery/AC status not working
Summary: Compaq V6105NR battery/AC status not working
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: ACPI
Classification: Unclassified
Component: EC (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Alexey Starikovskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-26 01:49 UTC by Ryan Underwood
Modified: 2011-03-21 07:39 UTC (History)
4 users (show)

See Also:
Kernel Version: 2.6.31-rc7
Subsystem:
Regression: No
Bisected commit-id:


Attachments
DSDT (13.14 KB, application/octet-stream)
2009-08-26 01:49 UTC, Ryan Underwood
Details
DSDT compiler errors (2.39 KB, text/plain)
2009-08-26 01:50 UTC, Ryan Underwood
Details
dmesg (43.56 KB, text/plain)
2009-08-26 01:50 UTC, Ryan Underwood
Details
DMI (5.95 KB, text/plain)
2009-08-26 01:50 UTC, Ryan Underwood
Details
/proc/interrupts (1.01 KB, text/plain)
2009-08-26 01:51 UTC, Ryan Underwood
Details
/proc/ioports (1.52 KB, text/plain)
2009-08-26 01:51 UTC, Ryan Underwood
Details
lspci -v (5.89 KB, text/plain)
2009-08-26 01:51 UTC, Ryan Underwood
Details
acpidump (157.80 KB, text/plain)
2009-08-26 03:41 UTC, Ryan Underwood
Details
lspci -vxxx (9.55 KB, text/plain)
2009-09-01 04:07 UTC, Ryan Underwood
Details
AC state when plugged (33 bytes, text/plain)
2009-09-01 04:07 UTC, Ryan Underwood
Details
AC state when unplugged (34 bytes, text/plain)
2009-09-01 04:08 UTC, Ryan Underwood
Details
battery info when plugged (656 bytes, text/plain)
2009-09-01 04:08 UTC, Ryan Underwood
Details
battery info when unplugged (660 bytes, text/plain)
2009-09-01 04:08 UTC, Ryan Underwood
Details
Fixed DSDT (241.04 KB, text/plain)
2009-12-23 21:13 UTC, Alexey Starikovskiy
Details

Description Ryan Underwood 2009-08-26 01:49:00 UTC
Created attachment 22848 [details]
DSDT

Neither the status of the AC power plug nor the battery charge status are correctly working on V6105NR.

I corrected syntax errors (existing in original HP BIOS as well as latest revision) in DSDT under 2.6.28, but problem still remains.  I can no longer patch the DSDT with 2.6.31 series since that option has been removed, so kernel will have to work around it somehow.

$ acpi -V
     Battery 0: Charging, 0%, rate information unavailable
     Battery 0: design capacity 6000 mAh, last full capacity -60 mAh = -1%
  AC Adapter 0: on-line
     Thermal 0: ok, 50.0 degrees C
     Cooling 0: LCD 0 of 10
     Cooling 1: Processor 0 of 10
Comment 1 Ryan Underwood 2009-08-26 01:50:03 UTC
Created attachment 22849 [details]
DSDT compiler errors
Comment 2 Ryan Underwood 2009-08-26 01:50:21 UTC
Created attachment 22850 [details]
dmesg
Comment 3 Ryan Underwood 2009-08-26 01:50:39 UTC
Created attachment 22851 [details]
DMI
Comment 4 Ryan Underwood 2009-08-26 01:51:00 UTC
Created attachment 22852 [details]
/proc/interrupts
Comment 5 Ryan Underwood 2009-08-26 01:51:16 UTC
Created attachment 22853 [details]
/proc/ioports
Comment 6 Ryan Underwood 2009-08-26 01:51:37 UTC
Created attachment 22854 [details]
lspci -v
Comment 7 Ryan Underwood 2009-08-26 01:53:46 UTC
Original comment was with AC power plugged.  This is with AC power unplugged.  You can see that battery now shows discharging, but AC still shows on-line.

 acpi -V
     Battery 0: Discharging, 0%, rate information unavailable
     Battery 0: design capacity 6000 mAh, last full capacity -60 mAh = -1%
  AC Adapter 0: on-line
     Thermal 0: ok, 50.0 degrees C
     Cooling 0: LCD 0 of 10
     Cooling 1: Processor 0 of 10
Comment 8 Ryan Underwood 2009-08-26 01:55:57 UTC
This is another "interesting" thing in dmesg.  The CPU is a Celeron M 430.

[    0.464854] ACPI Warning: Invalid throttling state, reset 20090521 processor_throttling-843
Comment 9 Ryan Underwood 2009-08-26 03:41:56 UTC
Created attachment 22855 [details]
acpidump
Comment 10 ykzhao 2009-08-27 01:00:59 UTC
Hi, Ryan
    Please ignore the warning message in comment #8. It is not related with this bug.
Thanks.
Comment 11 ykzhao 2009-08-31 08:19:36 UTC
Will you please attach the output of lspic -vxxx?

Will you please attach the following output when the ac adapter is plugged/unplugged?
   cat /proc/acpi/battery/*/* >battery_info
   cat /proc/acpi/ac_adapter/AC/* >ac_info

thanks.
Comment 12 Ryan Underwood 2009-09-01 04:07:28 UTC
Created attachment 22940 [details]
lspci -vxxx
Comment 13 Ryan Underwood 2009-09-01 04:07:49 UTC
Created attachment 22941 [details]
AC state when plugged
Comment 14 Ryan Underwood 2009-09-01 04:08:13 UTC
Created attachment 22942 [details]
AC state when unplugged
Comment 15 Ryan Underwood 2009-09-01 04:08:29 UTC
Created attachment 22943 [details]
battery info when plugged
Comment 16 Ryan Underwood 2009-09-01 04:08:45 UTC
Created attachment 22944 [details]
battery info when unplugged
Comment 17 Ryan Underwood 2009-09-01 04:09:47 UTC
So, it looks like the AC plug event is a random problem, because it's working at the moment while it didn't work earlier.

The battery problem is staying the same though.
Comment 18 ykzhao 2009-09-24 08:40:02 UTC
Hi, Ryan
    thanks for the info.
    From the info log it seems that the state of AC/battery is changed correctly when the AC adaptor is plugged/unplugged.
    > Ac : On-line/Off-line
    > Battery: charged/discharge

    But the following info about the battery is incorrect:
    >present rate:            unknown
    >remaining capacity:      unknown

    it seems that his issue is related with the broken BIOS. Will you please check whether the new bios is available?
    thanks.
Comment 19 Ryan Underwood 2009-09-25 02:18:03 UTC
It has the latest BIOS, that was the first thing I tried.

-- 
Ryan C. Underwood, <nemesis@icequake.net>
Comment 20 Alexey Starikovskiy 2009-12-23 21:13:20 UTC
Created attachment 24272 [details]
Fixed DSDT

Looks like the main problem with your DSDT is absent Z012 method. It might be ToUUID pre-defined method as in example here:
http://www.pcisig.com/specifications/conventional/pci_firmware/PCIFW30ECR_OSC_080906a_website.pdf
Here you can find a method to override DSDT:
http://www.lesswatts.org/projects/acpi/overridingDSDT.php
Comment 21 Ryan Underwood 2009-12-24 06:34:37 UTC
Thanks.  I'll try to test this soon, but I won't have access to the machine for maybe a month.
Comment 22 Zhang Rui 2010-10-22 03:05:34 UTC
does the problem still exist in the latest kernel?
Comment 23 Zhang Rui 2011-03-21 07:39:28 UTC
bug closed as there is no response from the bug reporter for more than a month.

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