Tag/tag.png

Needs Updating
This article needs updating to include the latest versions of Ubuntu. More info...


Intro to what happens under the hood

This is an attempt to follow the process of hibernation all the way from the point at which you press the hibernate button till the power going off. It's based on Karmic.

(So far it gets all the way through where the button comes from and how it lock screens and eventually calls the pm-hibernate command - more to come).

From the Gnome GUI to pm

On Karmic there is an icon on the panel with a menu with lock screen, set status, and shutdown and hibernate and similar; about shows this as being from indicator-applet-session (from package indicator-applet) - that's just a wrapper that provides the glue on the panel. A ps shows that there are indicator-status-service, indicator-users-service and indicator-session-service processes - all from the indicator-session package, these populate the menu that indicator-applet-session provides.

pm-utils down to the kernel

pm-hibernate is a symlink to /usr/lib/pm-utils/bin/pm-action which is just a shell script.

pm-action picks up a lot of helper functions from /usr/lib/pm-utils/pm-functions; this stores a lot of config and log files based on a STASHNAME variable that pm-action sets to pm-suspend; this leads for example to the whole process being logged in /var/log/pm-suspend.log.

Other places pm-action looks are:

pm-action sets up the STASHNAME variable and sources pm-functions.

From the kernel to sleep (using standard kernel hibernate)

To be continued....

--- ubuntu@treblig.org

External Links

http://www.ubuntu-forum.de/artikel/10046/gel%C3%B6st-standby-hibernate.html

HibernateWhatHappens (last edited 2017-09-07 15:17:53 by ckimes)