Summary

This spec aims to increase the use of Gnome Power Manager's Inhibit and UnInhibit DBUS methods.

Rationale

Gnome Power Manager has a preference allowing the user to have their machine suspend or hibernate after the machine has been idle for a certain time. This allows the machine to conserve power when it is not in use.

The difficulty is that a lack of mouse or keyboard activity does not necessarily equate to "session not in use" and the machine may suspend when it is undertaking a long task (e.g. copying large files) or performing an activity requiring no input from the user (e.g. playing music).

Use cases

Scope

This specification covers only those applications where it is not necessary for the screen to remain on. There is a different call to prevent the screensaver from coming on. That call also prevents GPM from suspending and should be used when the user will be using the screen without the mouse or keyboard (e.g. a video call or playing a movie). Perhaps a separate page/spec for these situations is appropriate. The GPM call is for situations when the screensaver coming on (or the screen turning off) will not affect the operation of the application.

Design

GPM already provides the methods to do this via DBus.

Implementation

The implementation has already begun at https://wiki.ubuntu.com/GnomePowerManagerInactiveSleep

  1. Determine the situations when calling the methods is appropriate
  2. Collect these at a wiki page

  3. File requests against these packages with links to the necessary developer resources (also on the above page)

  4. When a substantial number of these packages have been adjusted then the feature can be turned on with a short time and additional situations can be determined.
  5. The feature could be turned on by default (when on battery) for all machines that can do suspends

Code

See http://live.gnome.org/GnomePowerManager/Faq#head-ec399a12ba6d1a8461e5d6af7394d9560a838bc4 and the links found at https://wiki.ubuntu.com/GnomePowerManagerInactiveSleep

Outstanding issues

BoF agenda and discussion


CategorySpec