should let users enable or disable suspend and hibernate

Bug #882040 reported by Sebastien Bacher
This bug affects 80 people
Affects Status Importance Assigned to Milestone
Ayatana Design
Fix Committed
John Lea
gnome-control-center (Ubuntu)
In Progress
Chintana Prabhu

Bug Description

We should have an ui in the power capplet for that:

The corresponding task for other desktop environments that do not use the GNOME control center:
Kubuntu/Lubuntu bug #976654
Xubuntu bug #1271169

Tags: udp
Changed in gnome-control-center (Ubuntu Precise):
assignee: nobody → Canonical Desktop Team (canonical-desktop-team)
importance: Undecided → High
status: New → Triaged
John Lea (johnlea)
Changed in ayatana-design:
assignee: nobody → John Lea (johnlea)
importance: Undecided → High
status: New → Fix Committed
tags: added: udp
Revision history for this message
Sebastien Bacher (seb128) wrote :

The bug correspond to

"[mterry] change the power capplet to add checkboxes to enable,disable suspend and hibernate (2.3):"

Changed in gnome-control-center (Ubuntu Precise):
assignee: Canonical Desktop Team (canonical-desktop-team) → Michael Terry (mterry)
Michael Terry (mterry)
Changed in gnome-control-center (Ubuntu Precise):
assignee: Michael Terry (mterry) → nobody
Revision history for this message
Michael Terry (mterry) wrote :

This got postponed for precise, so removing the precise target.

no longer affects: gnome-control-center (Ubuntu Precise)
Revision history for this message
Tom Chiverton (bugs-launchpad-net-falkensweb) wrote :

You also need to co-ordinate with all the other GUI's like KDE that ship either with Ubuntu or as official spins to get them to either ship with /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla in place or add a special button to their GUI just for Ubuntu.

description: updated
Revision history for this message
MestreLion (mestrelion) wrote :

How viable is for Ubuntu to create a package available in Software Center that patches gnome's GUI and/or polkit (whatever is required) to re-enable hibernation?

Revision history for this message
Daniel Hahler (blueyed) wrote :

I think the best method is to just use pm-suspend-hybrid:
the system is fast to resume if you wake it up within 15 minutes again, but suspends to disk after this and saves all the energy which Suspend To RAM would still use.
If your system supports it, you can easily make "suspend" behave as "suspend-to-disk":

John Lea (johnlea)
Changed in baltix:
status: New → Confirmed
Changed in ayatana-design:
importance: High → Medium
Revision history for this message
Rafael Belmonte (eaglescreen) wrote :

Hybrid-suspend is the process where the system does everything it needs to hibernate, suspends instead of shutting down. This means that your computer can wake up quicker than for normal hibernation if you do not run out of power, and you can resume even if you run out of power. s2both is an hybrid-suspend implementation.

*Pay attention to the wording, that it does everything that it needs to hibernate, but suspends instead of shuts down. If the computer runs out of power, nothing is lost as it's also been saved to disk, not just in ram.

Ubuntu should use only one suspend method: the hybrid suspend method.

Revision history for this message
Karma Dorje (taaroa) wrote :

> Ubuntu should use only one suspend method: the hybrid suspend method.

Revision history for this message
Marius B. Kotsbak (mariusko) wrote :

Well, it probably still takes a lot of time to shut down, as the whole RAM must be written to disk. This is getting worse as the amount of RAM increases, but it helps that the hard drives/SSDs are getting faster. I don't want to wait a long time between I press the suspend button and the time it is save to pack down the laptop. Bootup will be as fast as suspend though.

The mode could make sense for laptops, but maybe less for desktops with a stable power supply.

Revision history for this message
John Lea (johnlea) wrote :

@eaglescreen, @taaroa; +10 re. the hybrid suspend method ;-)

Ideally when the user presses the power down button we should both suspend and hibernate the computer at the same time. If the computer is then resumed while battery power is remaining, it should be un-suspended and the hibernate image discarded. If the battery goes below a set point, the suspend state would be discarded, and when the computer is next switched on it would then be un-hibernated.

Would anybody be interested in taking this on as a project? It is a lot of work, but it would be great to see this in Ubuntu. To add this feature somebody needs to step forward and take on this project. I proposed this idea at UDS-O in Budapest, however there was nobody available to take up this project, and that is still the case today. Any volunteers? ;-)

Revision history for this message
Andrea Corbellini (andrea.corbellini) wrote :

@John: hybrid suspend is already implemented in PowerManager, see pm-suspend-hybrid(8). So the "lot of work" would consist just in changing the action triggered when pressing the Suspend button.

penalvch (penalvch)
description: updated
Changed in gnome-control-center (Ubuntu):
assignee: nobody → Chintana Prabhu (chintanarp98)
status: Triaged → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

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