Laptop automatically suspends right after resume if power cable was disconnected before resuming

Bug #492649 reported by Przemek K.
36
This bug affects 7 people
Affects Status Importance Assigned to Milestone
gnome-power
Unknown
Unknown
gnome-power-manager (Ubuntu)
Triaged
Low
Chow Loong Jin
pm-utils (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: pm-utils

I have a Macbook 2,1 running Ubuntu 9.10 (karmic) 64-bit. My laptop sometimes automatically goes to sleep just a few seconds after waking up. I don't know the reason of this behaviour and it is very hard to find anything relevant in the logs. Such a behaviour happened today so I'm attaching some logs. Look for Dec 4 19:50 - this is the beginning of my first attempt of resuming from sleep.

Description update:
The most probable trigger to this bug is resuming from suspend while on battery.
Steps to reproduce:
1) Suspend your laptop with power cable plugged in
2) Disconnect power cable
3) Resume from suspend
4) Laptop goes to sleep right after wake up

Revision history for this message
Przemek K. (azrael) wrote :
Revision history for this message
Przemek K. (azrael) wrote : apport-collect data

Architecture: amd64
CheckboxSubmission: 0ebb66d3d8abf9bb2773fa7a78c1b7ac
CheckboxSystem: 7e42599bda39ea7ff8b528272b6ef52b
DistroRelease: Ubuntu 9.10
Package: pm-utils 1.2.5-2ubuntu7
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_GB.UTF-8
 LANGUAGE=en_GB.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-15.50-generic
Uname: Linux 2.6.31-15-generic x86_64
UserGroups: adm admin cdrom dialout libvirtd lpadmin plugdev sambashare

Revision history for this message
Przemek K. (azrael) wrote : Dependencies.txt
Revision history for this message
Przemek K. (azrael) wrote : XsessionErrors.txt
tags: added: apport-collected
Revision history for this message
Przemek K. (azrael) wrote : apport-collect data

Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: azrael 2607 F.... pulseaudio
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0x90440000 irq 27'
   Mixer name : 'SigmaTel STAC9221 A1'
   Components : 'HDA:83847680,106b2200,00103601'
   Controls : 21
   Simple ctrls : 13
CheckboxSubmission: 0ebb66d3d8abf9bb2773fa7a78c1b7ac
CheckboxSystem: 7e42599bda39ea7ff8b528272b6ef52b
DistroRelease: Ubuntu 9.10
HibernationDevice: RESUME=UUID=0fea7287-7099-4369-9734-f2ffd7b88ba5
MachineType: Apple Inc. MacBook2,1
Package: linux (not installed)
ProcCmdLine: root=UUID=51dfb67d-a748-47cd-8d89-3ef774458fda ro splash vga=792
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_GB.UTF-8
 LANGUAGE=en_GB.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-15.50-generic
RelatedPackageVersions:
 linux-backports-modules-2.6.31-15-generic N/A
 linux-firmware 1.25
Uname: Linux 2.6.31-15-generic x86_64
UserGroups: adm admin cdrom dialout libvirtd lpadmin plugdev sambashare
WpaSupplicantLog:

dmi.bios.date: 06/27/07
dmi.bios.vendor: Apple Inc.
dmi.bios.version: MB21.88Z.00A5.B07.0706270922
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: Mac-F4208CAA
dmi.board.vendor: Apple Inc.
dmi.board.version: PVT
dmi.chassis.asset.tag: Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-F4208CAA
dmi.modalias: dmi:bvnAppleInc.:bvrMB21.88Z.00A5.B07.0706270922:bd06/27/07:svnAppleInc.:pnMacBook2,1:pvr1.0:rvnAppleInc.:rnMac-F4208CAA:rvrPVT:cvnAppleInc.:ct10:cvrMac-F4208CAA:
dmi.product.name: MacBook2,1
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.

Revision history for this message
Przemek K. (azrael) wrote : AlsaDevices.txt
Revision history for this message
Przemek K. (azrael) wrote : AplayDevices.txt
Revision history for this message
Przemek K. (azrael) wrote : ArecordDevices.txt
Revision history for this message
Przemek K. (azrael) wrote : BootDmesg.txt
Revision history for this message
Przemek K. (azrael) wrote : CRDA.txt
Revision history for this message
Przemek K. (azrael) wrote : Card0.Amixer.values.txt
Revision history for this message
Przemek K. (azrael) wrote : Card0.Codecs.codec.0.txt
Revision history for this message
Przemek K. (azrael) wrote : CurrentDmesg.txt
Revision history for this message
Przemek K. (azrael) wrote : IwConfig.txt
Revision history for this message
Przemek K. (azrael) wrote : Lspci.txt
Revision history for this message
Przemek K. (azrael) wrote : Lsusb.txt
Revision history for this message
Przemek K. (azrael) wrote : PciMultimedia.txt
Revision history for this message
Przemek K. (azrael) wrote : ProcCpuinfo.txt
Revision history for this message
Przemek K. (azrael) wrote : ProcInterrupts.txt
Revision history for this message
Przemek K. (azrael) wrote : ProcModules.txt
Revision history for this message
Przemek K. (azrael) wrote : RfKill.txt
Revision history for this message
Przemek K. (azrael) wrote : UdevDb.txt
Revision history for this message
Przemek K. (azrael) wrote : UdevLog.txt
Revision history for this message
Przemek K. (azrael) wrote : WifiSyslog.txt
Revision history for this message
Przemek K. (azrael) wrote : XsessionErrors.txt
Revision history for this message
Przemek K. (azrael) wrote : Re: Laptop automatically suspends right after resume
Revision history for this message
Przemek K. (azrael) wrote :
Revision history for this message
Przemek K. (azrael) wrote :
Revision history for this message
Andy Buckley (andy-insectnation) wrote :

I have the same problem on a new Thinkpad T40 laptop -- sometimes on unsuspend, I get to see the cursor for a second or so, and then it vanishes and the laptop goes back to sleep. It's not easy to reproduce -- the first time I managed to reproduce it while acpi_listen was running was today after a week of occasional trying -- but it does occur quite regularly. Relevant features:

 * Suspend was with a power cable plugged in and batteries fully charged; unsuspend was on battery power 45 mins later.
 * The wireless network changed between the suspend and unsuspend locations: on the second (successful) resume attempt, I got a dialog saying that the authentication credentials had been forgotten for the new wireless network (which I've used many times before)
 * This laptop has two batteries, which I've noticed has confused Ubuntu before (I get "critically low battery" warnings when battery #1 is near empty, even though battery #2 is full)

I think this may be related to bug #31935, but was urged to submit a new report rather than reopen that one... this one seems to be such a new bug on the same issue. I'll attach an acpi_listen log from this double-unsuspend in a moment.

Revision history for this message
Andy Buckley (andy-insectnation) wrote :
Revision history for this message
Andy Buckley (andy-insectnation) wrote :

Now repeated twice in a row, both times with the power plugged in when suspending and unplugged when resuming. The network details of my home network were forgotten the second time, but contrary to the report above I had suspended and resumed in the same location.

Any extra information wanted?

Revision history for this message
Przemek K. (azrael) wrote : Re: [Bug 492649] Re: Laptop automatically suspends right after resume

2009/12/16 Andy Buckley <email address hidden>:
> Now repeated twice in a row, both times with the power plugged in when
> suspending and unplugged when resuming. The network details of my home
> network were forgotten the second time, but contrary to the report above
> I had suspended and resumed in the same location.

I tried your steps to reproduce this bug and worked twice in a row!
Definitely there is some issue with power management.

--
## Przemysław Kulczycki >><< Azrael Nightwalker ##
# jabber: azrael[na]jabster.pl | tlen: azrael29a #
### www: http://reksio.ftj.agh.edu.pl/~azrael/ ###

Przemek K. (azrael)
tags: added: karmic regression-release
summary: - Laptop automatically suspends right after resume
+ Laptop automatically suspends right after resume if power cable was
+ disconnected before resuming
description: updated
Revision history for this message
Cristian Klein (cristiklein) wrote :

100% reproducible on my Fujitsu-Siemens Esprimo Mobile V5545, when I suspend / resume using the lid.

Revision history for this message
ethanay (ethan-y-us) wrote :

i have this bug as well on a Dell XPS M1330 running current 9.10

i have been trying to reproduce this bug consistently for several months and failing. just today it happened again -- twice:

1. suspend laptop via lid close, disconnect power, resume on battery. laptop immediately resuspends. 2nd resume attempt is successful.
2. suspend laptop via lid close, reconnect power, resume on AC. laptop immediately resuspends. 2nd resume attempt is successful.

maybe it has less to do with the state of the power (AC vs battery) as it does with a power state *change* while suspended?

Revision history for this message
Nikolaj Sheller (nikolajsheller) wrote :

I'm seeing this issue (or something *very* similar) on my MacBook 2,1 64bit karmic.

Log attached:
1) Close lid while on AC
2) open lid while on battery
3) Spontaneous suspend while entering password
4) Resume by pressing power button

There are a couple of warning call traces in the log, but I suspect they should be processed in a separate issue.

Revision history for this message
Chow Loong Jin (hyperair) wrote : Re: [Bug 492649] Re: Laptop automatically suspends right after resume if power cable was disconnected before resuming

Can someone run the following commands, and post the output of the second
command after a double-suspend issue?
$ killall gnome-power-manager
$ gnome-power-manager --verbose

--
Kind regards,
Chow Loong Jin (GPG: 0x8F02A411)
Ubuntu Contributing Developer

Revision history for this message
Przemek K. (azrael) wrote :

Here's my output of gnome-power-manager --verbose when reproducing this bug (sleep, plug off power, resume, laptop goes automatically to sleep in a few seconds, resume again).

Revision history for this message
Chow Loong Jin (hyperair) wrote :

On Tuesday 12,January,2010 04:49 AM, Przemysław Kulczycki wrote:
> Here's my output of gnome-power-manager --verbose when reproducing this
> bug (sleep, plug off power, resume, laptop goes automatically to sleep
> in a few seconds, resume again).
>
> ** Attachment added: "gnome-power-manager.out"
> http://launchpadlibrarian.net/37743253/gnome-power-manager.out
>
Looks like gnome-power-manager is at fault there, suspending twice. I'm
declaring pm-utils innocent.

  affects ubuntu/pm-utils
  status invalid

I'm confirming the gnome-power-manager bug. It's reproducible by setting both
battery and ac-power lid-action to suspend. I believe that upon resume, before
the lid status is internally updated by g-p-m, the battery status is updated,
and the policy action activated.

  affects ubuntu/gnome-power-manager
  status confirmed

--
Kind regards,
Chow Loong Jin (GPG: 0x8F02A411)
Ubuntu Contributing Developer

Changed in gnome-power-manager (Ubuntu):
status: New → Confirmed
Changed in pm-utils (Ubuntu):
status: New → Invalid
Revision history for this message
Przemek K. (azrael) wrote : Re: [Bug 492649] Re: Laptop automatically suspends right after resume if power cable was disconnected before resuming

I can also note that my older laptop - HP Compaq NX6325 - is not
affected by this issue. It has the same version of Ubuntu installed
(9.10 64bit).
If you want I can post the output of g-p-m --verbose from it for comparison.

--
## Przemysław Kulczycki <<=>> Azrael Nightwalker ##
# Jabber/XMPP/Gtalk/Tlen ID: azrael[na]jabster.pl #
# (Co to jest? Zobacz na: http://jabberfaq.info ) #
## www: http://reksio.ftj.agh.edu.pl/~azrael/ #####

Revision history for this message
Chow Loong Jin (hyperair) wrote : Re: [Bug 492649] Re: Laptop automatically suspends right after resume if power cable was disconnected before resuming

On Tuesday 12,January,2010 03:03 PM, Przemysław Kulczycki wrote:
> I can also note that my older laptop - HP Compaq NX6325 - is not
> affected by this issue. It has the same version of Ubuntu installed
> (9.10 64bit).
> If you want I can post the output of g-p-m --verbose from it for comparison.
>
Please do. I think it might be useful.

--
Kind regards,
Chow Loong Jin (GPG: 0x8F02A411)
Ubuntu Contributing Developer

Revision history for this message
Chow Loong Jin (hyperair) wrote :

Here's a debdiff that fixes the issue. Patch included inside has been forwarded
upstream already.

  affects ubuntu/gnome-power-manager
  status confirmed
  assignee hyperair
  subscribe ubuntu-universe-sponsors

--
Kind regards,
Chow Loong Jin (GPG: 0x8F02A411)
Ubuntu Contributing Developer

Changed in gnome-power-manager (Ubuntu):
assignee: nobody → Chow Loong Jin (hyperair)
Changed in gnome-power-manager (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Low
Revision history for this message
Przemek K. (azrael) wrote :

Logs from an unaffected laptop - HP Compaq NX6325.
Tried both suspending on AC + resuming on battery and vice versa.

Revision history for this message
Przemek K. (azrael) wrote :

This is an update to my previous comment:
my HP laptop is affected after all. See the attached logs.
It turns out that this issue happens only when you suspend the laptop by closing the lid (default gpm settings suspend the laptop on lid close). Suspending by using a menu option doesn't trigger this bug.

Revision history for this message
Isaac Dupree (idupree) wrote :
Revision history for this message
Przemek K. (azrael) wrote :

Another possibly related bug: Bug #425411

Revision history for this message
Przemek K. (azrael) wrote :
To post a comment you must log in.