Automatic hibernate on Dell Latitude E6410 because of phantom battery reading

Bug #885722 reported by Philipp Kern
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
gnome-power-manager (Fedora)
Unknown
Unknown
gnome-power-manager (Ubuntu)
Confirmed
Undecided
Unassigned
linux (Ubuntu)
Confirmed
Undecided
Unassigned
upower (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The Dell Latitude E6410 I've got here hibernates upon resume if no AC adapter is plugged in, with Oneiric. Apparently the kernel adds a second battery into sysfs only after resume that's not actually present but which is interpreted as being a battery with 0% charge. The power symbol in the panel is also telling me that a battery is missing.

I guess the slot is the one of the DVD disk drive, where you could plug in a second one. On boot I get this:

[ 2.352062] ACPI: Battery Slot [BAT1] (battery absent)

If you read the /proc/acpi/battery/BAT1/* entries, the kernel drops the battery from sysfs again and the icon returns to the right battery BAT0. Sadly the whole problem is critical as hibernation does not seem to work with Oneiric and this particular type of laptop. So there's certainly a kernel bug involved, but gpm also doesn't seem to handle the situation gracefully.

The uname output is as follows: Linux roadrunner 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011 i686 i686 i386 GNU/Linux
The package versions in question are linux-image-3.0.0-12-generic 3.0.0-12.20, gnome-power-manager 3.2.0-0ubuntu1 and upower 0.9.13-1. (upower emits signals for both batteries in question and continues to poll the absent BAT1 every second.)

There's a bug report over at RedHat which contains a workaround that touches those files post-resume. I did not test it yet and it's clearly a hack because the kernel shouldn't add it in the first place.
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.23-0ubuntu3
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: isabel 1669 F.... pulseaudio
 /dev/snd/pcmC0D0p: isabel 1669 F...m pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xd6960000 irq 45'
   Mixer name : 'Intel IbexPeak HDMI'
   Components : 'HDA:111d76d5,1028040a,00100104 HDA:80862804,80860101,00100000'
   Controls : 19
   Simple ctrls : 11
DistroRelease: Ubuntu 11.10
GnomeSessionIdleInhibited: No
GnomeSessionInhibitors: None
GnomeSessionSuspendInhibited: No
HibernationDevice: RESUME=UUID=c7b9f2a3-7ac6-488c-9cb0-b4427e240be2
MachineType: Dell Inc. Latitude E6410
Package: upower 0.9.13-1
PackageArchitecture: i386
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
ProcEnviron:
 LC_TIME=en_GB.UTF-8
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.0.0-12-generic root=/dev/mapper/hostname-root ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
RelatedPackageVersions:
 linux-restricted-modules-3.0.0-12-generic N/A
 linux-backports-modules-3.0.0-12-generic N/A
 linux-firmware 1.60
Tags: oneiric oneiric oneiric
Uname: Linux 3.0.0-12-generic i686
UpgradeStatus: Upgraded to oneiric on 2011-10-19 (14 days ago)
UserGroups: adm admin audio cdrom dialout dip floppy lpadmin netdev plugdev video
dmi.bios.date: 11/20/2010
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A06
dmi.board.name: 04373Y
dmi.board.vendor: Dell Inc.
dmi.board.version: A03
dmi.chassis.type: 9
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA06:bd11/20/2010:svnDellInc.:pnLatitudeE6410:pvr0001:rvnDellInc.:rn04373Y:rvrA03:cvnDellInc.:ct9:cvr:
dmi.product.name: Latitude E6410
dmi.product.version: 0001
dmi.sys.vendor: Dell Inc.
gnome-power-bugreport: Error: [Errno 2] No such file or directory

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 885722

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: oneiric
Revision history for this message
Philipp Kern (pkern) wrote :

https://bugzilla.redhat.com/show_bug.cgi?id=694482 is another reference point, I cannot link to two Fedora bugs at a time.

tags: added: apport-collected
description: updated
Revision history for this message
Philipp Kern (pkern) wrote : AcpiTables.txt

apport information

Revision history for this message
Philipp Kern (pkern) wrote : AlsaDevices.txt

apport information

Revision history for this message
Philipp Kern (pkern) wrote : AplayDevices.txt

apport information

Revision history for this message
Philipp Kern (pkern) wrote : BootDmesg.txt

apport information

Revision history for this message
Philipp Kern (pkern) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Philipp Kern (pkern) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Philipp Kern (pkern) wrote : Card0.Codecs.codec.3.txt

apport information

Revision history for this message
Philipp Kern (pkern) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Philipp Kern (pkern) wrote : Dependencies.txt

apport information

Revision history for this message
Philipp Kern (pkern) wrote : DevkitPower.txt

apport information

Revision history for this message
Philipp Kern (pkern) wrote : IwConfig.txt

apport information

Revision history for this message
Philipp Kern (pkern) wrote : Lspci.txt

apport information

Revision history for this message
Philipp Kern (pkern) wrote : Lsusb.txt

apport information

Revision history for this message
Philipp Kern (pkern) wrote : PciMultimedia.txt

apport information

Revision history for this message
Philipp Kern (pkern) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Philipp Kern (pkern) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Philipp Kern (pkern) wrote : ProcModules.txt

apport information

Revision history for this message
Philipp Kern (pkern) wrote : PulseSinks.txt

apport information

Revision history for this message
Philipp Kern (pkern) wrote : PulseSources.txt

apport information

Revision history for this message
Philipp Kern (pkern) wrote : RfKill.txt

apport information

Revision history for this message
Philipp Kern (pkern) wrote : UdevDb.txt

apport information

Revision history for this message
Philipp Kern (pkern) wrote : UdevLog.txt

apport information

Revision history for this message
Philipp Kern (pkern) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-power-manager (Ubuntu):
status: New → Confirmed
Changed in upower (Ubuntu):
status: New → Confirmed
Revision history for this message
Walter Garcia-Fontes (walter-garcia) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 882160 , so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.