When i remove the AC power cable from my laptop, the computer goes to sleep.

Bug #427629 reported by Lennart Landin
70
This bug affects 11 people
Affects Status Importance Assigned to Milestone
gnome-power-manager (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: gnome-power-manager

When i remove the AC power cable from my laptop, the computer goes to sleep. When trying to bring the computer out from sleep mode (with the power button), it comes alive and shows the desktop for a few seconds and then goes back to sleep again. Only way for me to bring the computer back is to connect the AC power cable again, and then everything works as expected.

ProblemType: Bug
Architecture: i386
Date: Fri Sep 11 02:27:52 2009
DistroRelease: Ubuntu 9.10
Package: gnome-power-manager 2.27.92-0ubuntu1
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-10.31-generic
SourcePackage: gnome-power-manager
Uname: Linux 2.6.31-10-generic i686

Revision history for this message
Lennart Landin (barareklam131) wrote :
description: updated
Revision history for this message
Lennart Landin (barareklam131) wrote :

Bug seems to be fixed, after "apt-get upgrade" today (14-09-09), computer doesn't sleep anymore after removing AC power cable. Maybe some guy who is responsible can mark this bug as solved?

Changed in gnome-power-manager (Ubuntu):
status: New → Fix Committed
Revision history for this message
Zapter (sebastian-knitter) wrote :

On my sony vaio vpcw11s1e, I can confirm this bug. unplugging the power cord in gnome makes the system go to standby. I just bought the computer and put Ubuntu 9.10 on it (fresh standard install of the final version):
kirstin@vaio:~$ cat /proc/version
Linux version 2.6.31-14-generic (buildd@rothera) (gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8) ) #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009

the acpi event it receives on unplugging is:
processor CPU0 00000081 00000000
processor CPU1 00000081 00000000
battery BAT1 00000080 00000001

This is probably connected to an issue with the gnome-power-manager or pm-utils, since it doesn't happen in gnome-safe mode or when I use another WM such as fluxbox.

Revision history for this message
Zapter (sebastian-knitter) wrote :

as a workaround for this problem on my sony netbook, I used the gconf-editor to change the behaviour of the gnome-power-manager. I set the key /apps/gnome-power-manager/actions/critical_battery from "suspend" to "nothing". I will have to pay attention to the battery myself now, but at least I can continue working after plugging and unplugging of the ac-cord until this bug is fixed.

Changed in gnome-power-manager (Ubuntu):
status: Fix Committed → New
Revision history for this message
Alessio "Spinus" Moscatello (spinus) wrote :

This bug isn't fixed! My updated Karmic still has this issue...please don't duplicate bug with status "new" into bug that "seems" fixed...

Changed in gnome-power-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
323232 (323232) wrote :

I think a have a related problem;
When starting my vaio k415b on battery power the boot hangs on the splash screen (no futher activity)
On AC power everything works perfect.
Found als a similar post on http://ubuntuforums.org/showthread.php?t=1308026
This looks like a broader bug and not gnome related........... (did not file a seperate one (yet))

Revision history for this message
Ludditic (ludditic) wrote :

as posted on Ubutuforums
http://ubuntuforums.org/showthread.php?p=8549145

I can confirm this bug on my installation of 9.10 as well. ... a Dell 700m. Same exact symptoms:
Running on AC>unplug cable>goes to standby
Running on Battery>plug in ac cable>goes into standby.
I thought it was my battery, as this lt is old, and the battery is end of life. It keeps a charge for a bout 7 minutes. I have a new extended life batt coming hopefully tomorrow.

This is more of an annoyance than anything. I am a complet newb, and am fairly smitten with ubuntu already

Revision history for this message
mr.epsylon@gmail.com (mr-epsylon) wrote :

I try to use gconf-editor to fix this problem...
nothing happened....

Revision history for this message
andyr354 (andyr354) wrote :

I second what Ludditic says.

I used the temp fix that Zapter posted and am working for the time being.

Andy

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

Please kill gnome-power-manager (killall gnome-power-manager) and then run "gnome-power-manager --verbose" in a terminal. Then perform the steps required to reproduce your bug. Then take the output and upload it here.

This sounds rather similar to Bug #425411, though. It would be nice if you could confirm whether it is the same bug (fix is in karmic-proposed, see https://wiki.ubuntu.com/Testing/EnableProposed for how to test).

Revision history for this message
Alessio "Spinus" Moscatello (spinus) wrote :

In which version of gnome-power-manager was fixed bug Bug #425411? I've my system up to date (and proposed enabled), but I can't see any difference on this bug...I've tried to capture a log of gnome-power-manager, but when I restart it on verbose mode the problem disappears...

Revision history for this message
Mr.T (thau79) wrote :

I also still have this problem using a regularly updated 9.10 on a Samsung X20...

When I remove the power-cord, system goes to sleep, after next reboot it goes to sleep again, after the second reboot I can work again... this takes at least 5mins and is the most annoying bug I've experienced since the first ubuntu!

Revision history for this message
jdavila (jdavilas) wrote :

I can confirm this issue also. I have 2 Acer Aspire Ones with Lucid, and both have a (physical) problem with the power cord, so that charging turns off if I slightly move the cable. The problem is that every time that happens they go to sleep. Unlike some cases I've read, my netbooks can continue working after waking up.

Revision history for this message
Kris Marien (kris-marien) wrote :

The issue that the netbook is going to sleep can be solved in gnome-powermanger

I set the action for "When lid gets closed" (my ubuntu is Dutch, sorry for translation) to blank screen or nothing.

Then when unplugging the power cable the netbook should blank the screen or just do nothing.

It works for me.

Revision history for this message
Patrick Pfeifer (patrick2000) wrote :

Mr T, I feel with you. Got exacly the same issue on hp 2133 ("mini-note"). That's a REALLY ugly bug. Hope we'll be able to fix it soon.

I made an interresting observation as to what could be the reason why the laptop goes to standby every time: When I turn it on again after the unwanted suspend, I see a message "battery: 94% - 4 minutes left" - which is of course wrong. It should read "3hrs left". But somehow upower, gnome-power-manager and gnome-power-statistics get confused and give wrong info. Funny enough, windows (vista) seems to be confused as well somehow. If i boot vista, it shows me an almost empty battery bar, while the tooltip says "95% charged". ... Most confusing!

Attached find the output of "gnome-power-manager --verbose" of one cycle: plug out power chord with battery fully charged, wait for suspend, plug in, resume.

Note that even though the log talks about hibernating, the laptop never hibernated ... just suspended (twice! ... once right, then once again "half-heartedly" - without locking the gnome-session ... don't ask why ... its UGLY)

Revision history for this message
Paul izoti (pai1) wrote :

I have a similar problem when I remove power on the DC side of the charger. Ubuntu detects a low battery then shutsdown. Cancel is to no avail. If I remove the power on the AC side (wall plug) its fine. My laptop is a Toshiba Satellite A200. I think the detect for low battery is a little too sensitive - need to increase a timer somewhere as Ubuntu sees a power blip when the DC is removed.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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