You are not logged in.
I'm experiencing a subtle problem with battery monitoring on my laptop. The problem appears after the computer is first suspended and persists until the computer is turned off and back on. Note that a reboot does not fix the problem, whereas a shutdown does.
Symptoms
cat /proc/acpi/battery/BAT0/state prints rate and capacity in mA/mAh before the problem begins, but prints rate and capacity in mW/mWh after the problem occurs.
ibam works fine before the problem occurs, but prints "No apm data available" after the problem occurs.
/var/log/errors.log contains the following line, coincident with suspends that cause the problem:
May 21 13:40:04 localhost kernel: [ 171.735681] ACPI: Unable to dock!Hardware
Lenovo Thinkpad X220 (datasheet)
lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation 2nd Generation Core Processor Family DRAM Controller [8086:0104] (rev 09)
00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0126] (rev 09)
00:16.0 Communication controller [0780]: Intel Corporation 6 Series Chipset Family MEI Controller #1 [8086:1c3a] (rev 04)
00:19.0 Ethernet controller [0200]: Intel Corporation 82579LM Gigabit Network Connection [8086:1502] (rev 04)
00:1a.0 USB Controller [0c03]: Intel Corporation 6 Series Chipset Family USB Enhanced Host Controller #2 [8086:1c2d] (rev 04)
00:1b.0 Audio device [0403]: Intel Corporation 6 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 04)
00:1c.0 PCI bridge [0604]: Intel Corporation 6 Series Chipset Family PCI Express Root Port 1 [8086:1c10] (rev b4)
00:1c.1 PCI bridge [0604]: Intel Corporation 6 Series Chipset Family PCI Express Root Port 2 [8086:1c12] (rev b4)
00:1c.3 PCI bridge [0604]: Intel Corporation 6 Series Chipset Family PCI Express Root Port 4 [8086:1c16] (rev b4)
00:1c.4 PCI bridge [0604]: Intel Corporation 6 Series Chipset Family PCI Express Root Port 5 [8086:1c18] (rev b4)
00:1d.0 USB Controller [0c03]: Intel Corporation 6 Series Chipset Family USB Enhanced Host Controller #1 [8086:1c26] (rev 04)
00:1f.0 ISA bridge [0601]: Intel Corporation 6 Series Chipset Family LPC Controller [8086:1c4f] (rev 04)
00:1f.2 SATA controller [0106]: Intel Corporation 6 Series Chipset Family 6 port SATA AHCI Controller [8086:1c03] (rev 04)
00:1f.3 SMBus [0c05]: Intel Corporation 6 Series Chipset Family SMBus Controller [8086:1c22] (rev 04)
03:00.0 Network controller [0280]: Intel Corporation Centrino Advanced-N 6205 [8086:0085] (rev 34)
0d:00.0 System peripheral [0880]: Ricoh Co Ltd Device [1180:e823] (rev 04)This is one of the more confusing problems I've encountered. Thanks for your help.
Dave
Offline
I also have an x220 and didn't realize that I had the same issue until I saw this post. For me though xfce4-power-manager still reports everything correctly so I never noticed. I also found that if I suspend and resume on AC power the problem does not happen.
Offline
x220 tablet, same problem, even on AC.
Ethan Schoonover
Precision Colors - http://ethanschoonover.com/solarized
Offline
interesting I just tested mine and found that if I suspend/resume on AC it will go back to mA/mAh if it was prevously displaying mW/mWh
Offline
My x220 also has this issue. ibam complains of "no apm data available" only after suspend. acpi (the program) still continues to give me battery information,
however.
Was a fix ever found for this issue? (Other than rebooting, that is.)
Last edited by Sara (2011-10-29 05:55:28)
Registed Linux User 483618
Offline
x220 here, same problem.
/var/log/kernel.log shows
Jun 11 16:06:20 localhost kernel: [18615.409779] ACPI: Waking up from system sleep state S3
Jun 11 16:06:20 localhost kernel: [18615.572830] thinkpad_acpi: EC reports that Thermal Table has changed
Jun 11 16:06:20 localhost kernel: [18615.612667] ACPI: \_SB_.PCI0.LPC_.EC__.BAT1 - docking
Jun 11 16:06:20 localhost kernel: [18615.635911] ACPI: Unable to dock!
Offline
On my x200i there is no battery file or folder in /proc/acpi .
However i get the same error messages.
logs:
ACPI: Waking up from system sleep state S3
ACPI: \_SB_.PCI0.LPC_.EC__.BAT1 - docking
ACPI: Unable to dock!@dmlawrence: Do you have tp_smapi kernel module loaded? ( can be found on AUR )
It has battery functions represented in /sys like so:
....
/sys/devices/platform/smapi/BAT0/last_full_capacity # in mWh
/sys/devices/platform/smapi/BAT0/remaining_percent # remaining percent of energy (set by calibration)
/sys/devices/platform/smapi/BAT0/remaining_percent_error # error range of remaing_percent (not reset by calibration)
/sys/devices/platform/smapi/BAT0/remaining_running_time # in minutes, by last minute average power
/sys/devices/platform/smapi/BAT0/remaining_running_time_now # in minutes, by instantenous power
/sys/devices/platform/smapi/BAT0/remaining_charging_time # in minutes
/sys/devices/platform/smapi/BAT0/remaining_capacity # in mWh
/sys/devices/platform/smapi/BAT0/design_capacity # in mWh
....A bit OT, but interesting for us thinkpad users.
There is a way to set the charge thresholds for your batteries.
It can be done with the acpi_call kernel module and a script called acpi-bat.
Works on my laptop.
Offline
Google told me, that it may be linked to a crypted /home-volume. (Link (german))
I have an crypted /home-volume, anyone of you, too?
Offline
I think it is related to dockable battery which ACPI is complaining about. I also believe that it is mostly the thinkpad_acpi's developers' lack of interest that is to blame here!
The greatest threat to knowledge is not ignorance - it is the illusion of knowledge!
Offline