Closing lid after telling computer to shut down results in hibernate

Bug #298902 reported by Asa Zernik
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
KDE Base
Fix Released
Medium
gnome-power-manager (Ubuntu)
Confirmed
Undecided
Unassigned
kdebase-workspace (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

After clicking "Shut Down", after all windows and task bars have been removed from the screen, I usually close the laptop lid. However, I have set my computer to hibernate when the lid is closed. The result is that Ubuntu stops shutting down and starts hibernating, which it does successfully. Next time I boot my computer, I have to boot TWICE to get to a usable desktop - once to wake up from hibernate, at which point the shutdown is completed, and then again to boot up into a new session.

Expected behavior is that, during shutdown, the laptop will ignore the signal to hibernate and just continue shutting down when the laptop lid is closed.

I am using Ubuntu 8.10 (Intrepid), although this bug might exist in earlier releases. Hardware is Thinkpad Z61t.

Revision history for this message
naught101 (naught101) wrote :

This happens for me too, and has happened for me since dapper. I've always run Kubuntu, I'm not sure it that's relevant.

Other related behaviour is that in 8.10, powerdevil hibernates when the battery level is critical, but sometimes it takes longer than expected (ie. "will suspend to disk in ten seconds" disappears, and hibernate doesn't start for another 30). In this case, I sometimes manually hibernate, hoping to avoid completely depleting my battery. The last time I did this, I plugged in before booting, and then booted. immediately after resuming from hibernation, the coputer immediately hibernated again.

I Propose these changes to behaviour:
- After one task begins a hibernation/sleep/shutdown/reboot process, all subsequent such tasks are immediately cancelled, or not allowed to start.
- No hibernation/sleep/shutdown/reboot processes may start within 5 (or 3?) minutes of resuming from sleep or hibernation. This would allow the user to save any documents open before the computer runs the critical battery task (ie. hibernation, or shutdown)

Revision history for this message
naught101 (naught101) wrote :
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

For KDE at least this is fixed in KDE 4.2.1. If this is still an issue in Gnome you may want to add a gnome-power-manager task by clicking the "Also affects distribution" link and adding a gnome-power-manager task.

Changed in kdebase:
status: Unknown → Fix Released
Changed in kdebase:
importance: Unknown → Medium
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
Revision history for this message
Jay S (topdownjimmy) wrote :

This still happens to me sometimes in Ubuntu 11.04 on a Dell Vostro V13.

I have my laptop lid close event set to Suspend, and when I manually choose to Hibernate and quickly shut the lid, sometimes it only goes into Suspend. I only find this out later, usually after the battery has died.

Sorry I don't have more details, it doesn't happen every time.

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.