FS#26275 - [acpitool] -B: battery not found

Attached to Project: Community Packages
Opened by Matthias Krüger (matthiaskrgr) - Wednesday, 05 October 2011, 14:09 GMT
Last edited by Sergej Pupykin (sergej) - Thursday, 10 November 2011, 17:57 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

Description:
I upgraded to linux 3.0.6-1 today and it seems like it somehow broke battery detection.

When I perform acpitool -B on my lenovo t60, I get

Battery is not present, bailing out.
Battery #1 : slot empty

although the battery widget of awesomeWM seems to be able to get me a battery rate.
( http://git.sysphere.org/vicious/tree/widgets/bat.lua ).


Additional info:

core/linux-api-headers 3.0.1-1 [0.56 M] [installed]
core/linux-atm 2.5.1-2 [0.25 M]
core/linux-docs 3.0.6-1 [3.30 M]
core/linux-firmware 20110822-1 [10.49 M] [installed]
core/linux-headers 3.0.6-1 [4.34 M] [installed]
community/acpitool 0.5.1-3 [0.03 M] [installed]


pacman log:

[2011-10-05 13:46] starting full system upgrade
[2011-10-05 13:47] upgraded cairo-xcb (1.10.2-1 -> 1.10.2-2)
[2011-10-05 13:47] >>> Updating module dependencies. Please wait ...
[2011-10-05 13:47] >>> Generating initial ramdisk, using mkinitcpio. Please wait...
[2011-10-05 13:47] ==> Building image from preset: 'default'
[2011-10-05 13:47] -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2011-10-05 13:47] ==> Starting build: 3.0-ARCH
[2011-10-05 13:47] -> Parsing hook: [base]
[2011-10-05 13:47] -> Parsing hook: [udev]
[2011-10-05 13:47] -> Parsing hook: [autodetect]
[2011-10-05 13:47] -> Parsing hook: [pata]
[2011-10-05 13:47] -> Parsing hook: [scsi]
[2011-10-05 13:47] -> Parsing hook: [sata]
[2011-10-05 13:47] -> Parsing hook: [filesystems]
[2011-10-05 13:47] -> Parsing hook: [usbinput]
[2011-10-05 13:47] ==> Generating module dependencies
[2011-10-05 13:47] ==> Creating gzip initcpio image: /boot/initramfs-linux.img
[2011-10-05 13:47] 7463 blocks
[2011-10-05 13:47] ==> Image generation successful
[2011-10-05 13:47] ==> Building image from preset: 'fallback'
[2011-10-05 13:47] -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
[2011-10-05 13:47] ==> Starting build: 3.0-ARCH
[2011-10-05 13:47] -> Parsing hook: [base]
[2011-10-05 13:47] -> Parsing hook: [udev]
[2011-10-05 13:47] -> Parsing hook: [pata]
[2011-10-05 13:47] -> Parsing hook: [scsi]
[2011-10-05 13:47] -> Parsing hook: [sata]
[2011-10-05 13:47] -> Parsing hook: [filesystems]
[2011-10-05 13:47] -> Parsing hook: [usbinput]
[2011-10-05 13:47] ==> Generating module dependencies
[2011-10-05 13:47] ==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
[2011-10-05 13:47] 24156 blocks
[2011-10-05 13:47] ==> Image generation successful
[2011-10-05 13:47] upgraded linux (3.0.4-1 -> 3.0.6-1)
[2011-10-05 13:48] upgraded linux-headers (3.0.4-1 -> 3.0.6-1)

Regards,
Matthias
This task depends upon

Closed by  Sergej Pupykin (sergej)
Thursday, 10 November 2011, 17:57 GMT
Reason for closing:  Fixed
Additional comments about closing:  acpitool-0.5.1-5
Comment by Vojtěch Gondžala (vogo) - Wednesday, 05 October 2011, 19:49 GMT
Same problem on Thinpad X220. No messages about acpi problem in dmesg but no information about battery, ac adapter and other in `acpitool', all acpi module are loaded.
Comment by Jakob Matthes (jakobm) - Wednesday, 05 October 2011, 20:17 GMT
acpitool relies on /proc/acpi/battery which is deprecated and removed since linux-3.0.6-1 (http://mailman.archlinux.org/pipermail/arch-dev-public/2011-October/021696.html and  FS#25845 ).
Upstream https://sourceforge.net/tracker/?func=detail&aid=3419138&group_id=111358&atid=659017
Comment by Vincent T. (vayn) - Thursday, 06 October 2011, 05:41 GMT
The same thing happened on Gateway NV47H. After updating the system, `acpitool -b` is totally broken.

Only received message-"Battery is not present, bailing out."
Comment by Larry Gagnon (lagagnon) - Saturday, 29 October 2011, 00:36 GMT
Apparently there is a patch here : ebugs.debian.org/cgi-bin/bugreport.cgi?bug=635537
Comment by Sergej Pupykin (sergej) - Tuesday, 01 November 2011, 09:09 GMT
Please try community-testing/acpitool-0.5.1-4
Comment by Matthias Krüger (matthiaskrgr) - Tuesday, 01 November 2011, 11:40 GMT
Hi, unfortunately, the issue does not seem to be fixed yet.

yaourt -Qi acpitool && acpitool -B
Name : acpitool
Version : 0.5.1-4
URL : http://sourceforge.net/projects/acpitool/
Licenses : GPL
Groups : None
Provides : None
Depends On : gcc-libs
Optional Deps : None
Required By : None
Conflicts With : None
Replaces : None
Installed Size : 108.00 K
Packager : Sergej Pupykin <pupykin.s+arch@gmail.com>
Architecture : x86_64
Build Date : Tue 01 Nov 2011 10:09:18 AM CET
Install Date : Tue 01 Nov 2011 12:32:57 PM CET
Install Reason : Explicitly installed
Install Script : No
Description : ACPI client - replacement for apm tool

Battery is not present, bailing out.
Battery #1 : slot empty

Loading...