Don't offer hibernate as an option when there's no swap
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
NonfreeKernelMo
Package: gnome-session 2.27.5-0ubuntu2
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: gnome-session
Uname: Linux 2.6.31-5-generic x86_64
I have no swap on my Eee 901, and get offered the non-working hibernate option.