Hibernate should not be present if the user doesn't have a swap partition

Bug #365144 reported by Mario Limonciello
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
hal (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: fast-user-switch-applet

$apt-cache policy fast-user-switch-applet
fast-user-switch-applet:
  Installed: 2.24.0-0ubuntu13
  Candidate: 2.24.0-0ubuntu13
  Version table:
 *** 2.24.0-0ubuntu13 0
        500 http://archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status

--
It's possible that during install a user or OEM may opt to not include a swap partition due to being worried about wearing the SSD down sooner. When this happens, hibernate won't work because there is nowhere to write the memory out to.

Rather than trying and failing in a known failure situation, the FUSA applet should only present the option if the swap partition is present - AND large enough to accommodate the amount of ram that needs to be written to it during a hibernate request.

Changed in dell:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Ted Gould (ted) wrote :

This should be in HAL because HAL shouldn't be reporting can_hibernate if the user doesn't have a swap.

affects: fast-user-switch-applet (Ubuntu) → hal (Ubuntu)
Revision history for this message
papukaija (papukaija) wrote :

There is also the possibility to use a swap file instead of a swap partition.

Revision history for this message
Dylan Taylor (dylanmtaylor) wrote :

I think that this should have higher priority than Wishlist. If the system is incapable of hibernating, there shouldn't be an option to do so.

papukaija (papukaija)
Changed in hal (Ubuntu):
status: New → Confirmed
Revision history for this message
Tony Espy (awe) wrote :

Please see bug #432598 for more details on how S4 can be disabled in Lucid via PolKit.

We need someone to confirm whether or not this is also triggered by lack of a swap partition for Lucid.

Revision history for this message
Jerone Young (jerone) wrote :

In Ubuntu 10.04 ..Hibernation is not exposed in UI if no swap is on system.

Changed in dell:
status: Confirmed → Fix Released
Revision history for this message
Mario Limonciello (superm1) wrote : Re: [Bug 365144] Re: Hibernate should not be present if the user doesn't have a swap partition

Jerone, if I'm not mistaken, it doesn't check the size to make sure it
really can hibernate. It still falls over in that scenario.

On Jun 28, 2010 8:31 AM, "Jerone Young" <email address hidden> wrote:

In Ubuntu 10.04 ..Hibernation is not exposed in UI if no swap is on
system.

** Changed in: dell
      Status: Confirmed => Fix Released

--
Hibernate should not be present if the user doesn't have a swap partition
https://bugs.launchpa...

Revision history for this message
Jerone Young (jerone) wrote :

@Mario
          New bug has been opened for checking the size of swap LP# 599352

Revision history for this message
dino99 (9d9) wrote :
Changed in hal (Ubuntu):
status: Confirmed → Invalid
Changed in somerville:
importance: Undecided → Wishlist
status: New → Fix Released
no longer affects: dell
Revision history for this message
Timothy R. Chavez (timrchavez) wrote :

The bug task for the somerville project has been removed by an automated script. This bug has been cloned on that project and is available here: https://bugs.launchpad.net/bugs/1305445

no longer affects: somerville
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.