Don't offer hibernate as an option when there's no swap

Bug #414529 reported by Alan Pope 🍺🐧🐱 🦄
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-session (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: gnome-session

Scenario:-

System has no swap space at all. This could be because:-

* System admin decided that as the system has lots of memory, no swap is needed
* System admin decided that as the system is on SSD/Flash, swap would be sub-optimal
* Swap is unavailable due to other technical reasons

User understands that hibernating saves power, so attempts to hibernate the system. User goes to System -> Quit, and notes 'hibernate' is an option, so chooses it.

Screen goes black (console) some time passes, and a message appears that 'unable to swap, no swap partition found' suggesting the user issues 'swapon -a'. This is not useful given the system has already initiated the hibernate process. Further around a minute passes and more console messages appear including 'BUG: soft lockup - CPU#0 stuck for 61s! [compiz.real:3980]. System hangs with repeated similar messages.

User has to hit the power or reset button to restart the machine. Any data they had was lost.

It's my opinion that the "Hibernate" option should _not_ appear when there is no swap available. It leads the user into a false sense of security that Hibernate is a possible option, when it clearly isn't.

ProblemType: Bug
Architecture: amd64
Date: Sun Aug 16 20:15:59 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: gnome-session 2.27.5-0ubuntu2
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-5.24-generic
SourcePackage: gnome-session
Uname: Linux 2.6.31-5-generic x86_64

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :
Revision history for this message
Martijn vdS (martijn) wrote :

I have no swap on my Eee 901, and get offered the non-working hibernate option.

Changed in gnome-session (Ubuntu):
status: New → Confirmed
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.