Bug 427693 - Thinkpad X61s battery not detected
Thinkpad X61s battery not detected
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: kernel (Show other bugs)
rawhide
x86_64 Linux
low Severity medium
: ---
: ---
Assigned To: Kernel Maintainer List
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-01-06 14:37 EST by Simon Karpen
Modified: 2008-03-07 10:11 EST (History)
1 user (show)

See Also:
Fixed In Version: 2.6.25-0.93.rc4.fc9.x86_64
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-03-06 20:13:36 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Simon Karpen 2008-01-06 14:37:17 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9b3pre) Gecko/2008010314 Fedora/1.9-0.beta2.6.fc9 Minefield/3.0b3pre

Description of problem:
/proc/acpi/battery and its subdirectories and such do not exist. gnome-power-manager is unable to determine the battery runtime remaining, and is unable to show an accurate battery percentage when on battery. 

Version-Release number of selected component (if applicable):
kernel-2.6.24-0.133.rc6.git8.fc9

How reproducible:
Always


Steps to Reproduce:
1. ls /proc/acpi
2. notice lack of batter
3. use gnome-power-manager applet and notice lack of discharge or accurate runtime

Actual Results:
/proc/acpi/battery does not exist, gnome-power-manager cannot show runtime or battery charge

Expected Results:
/proc/acpi/battery/BAT0/... with battery information, including charge state. gnome-power-manager showing useful information.

Additional info:
This is a regression relative to Fedora 8; kernel kernel-2.6.23.9-85.fc8 found the battery without a problem.
Comment 1 Simon Karpen 2008-01-06 14:42:58 EST
There is some sort of communication happening, because the power remaining just
went from 96% to 79% with no intermediate steps. (after running on battery for
maybe an hour). Still not sure exactly what's going on.
Comment 2 Simon Karpen 2008-01-06 14:56:45 EST
As yet another followup, it's back to saying 96% on a laptop that's been running
off battery for 90 minutes. (the X61s is efficient, but it's not *that* good). 
Comment 3 denis ivanov 2008-01-15 09:11:00 EST
The same problem with current rawhide:

kernel-2.6.24-0.150.rc7.git4.fc9

$ ls -l /proc/acpi/*bat*
ls: cannot access /proc/acpi/*bat*: No such file or directory

Maybe problem in kernel config (CONFIG_ACPI_PROCFS_POWER)?

$ cat config-2.6.24-0.150.rc7.git4.fc9 |grep ACPI|grep PROCFS
CONFIG_ACPI_PROCFS=y
# CONFIG_ACPI_PROCFS_POWER is not set
Comment 4 Simon Karpen 2008-01-17 06:55:38 EST
With kernel-2.6.24-0.155.rc7.git6.fc9 I can now see the battery in /proc/acpi,
though gnome-power-manager shows two batteries (minor issue compared to no
charge monitoring)

/proc/acpi/battery/BAT0 only shows one battery
Comment 5 denis ivanov 2008-01-17 18:18:09 EST
Yeah, the same problem. I have 2 batteries, but battery monitor shows 4...
Seems some procfs-ACPI vs. HAL problem.

But also seems this bug is unread by kernel maintainers? ;)

$ lshal |grep battery.charge_level.last_full
  battery.charge_level.last_full = 89640  (0x15e28)  (int)
  battery.charge_level.last_full = 37910  (0x9416)  (int)
  battery.charge_level.last_full = 37910  (0x9416)  (int)   # THIS IS DUPE
  battery.charge_level.last_full = 89640  (0x15e28)  (int)  # THIS IS DUPE
Comment 6 denis ivanov 2008-01-17 18:21:07 EST
With kernel kernel-2.6.24-0.150.rc7.git4.fc9, /proc/acpi/battery/* was absent
but lshal listed 2 batteries (it was right for my computer)
Comment 7 denis ivanov 2008-01-24 04:44:48 EST
kernel-2.6.24-0.157.rc8.fc9

same problem
Comment 8 denis ivanov 2008-01-30 17:37:56 EST
kernel-2.6.24-9.fc9.i686

still the same problem
four batteries found instead of real two
Comment 9 Simon Karpen 2008-03-06 09:52:30 EST
2.6.24.1-31.fc9 plus current rawhide finds exactly one battery correctly. 

Denis, are you seeing this too? (I'd like a second before marking this as resolved)
Comment 10 denis ivanov 2008-03-06 17:50:23 EST
Batteries is ok with kernel-2.6.25-0.93.rc4.fc9.i686

Seems fixed. Please close the bug.
Comment 11 denis ivanov 2008-03-07 10:11:48 EST
Seems the problem wasn't in kernel.
Now I back to older 2.6.24 kernel and all is ok.
Maybe somethings in HAL was fixed.

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