The Hibernate script can be downloaded from the Suspend2.net download page: http://www.suspend2.net/downloads/

Please file any bug reports or feature requests in Bugzilla at http://bugzilla.suspend2.net/.

User-contributed scriptlets

These scriptlets have been written by users to extend the functionality of the hibernate script. I declined some scriptlets from being included, in order to keep it to a minimum to minimise the script's "startup time" (which it really shouldn't have). These are generally application-specific or hardware-specific scriptlets, which will be of interest to others using those applications or hardware.

Note to scriptlet submitters - please upload your scriptlet as an attachment to this page.

Features that would be nice (please don't add more here)

User-contributed configuration files for specific hardwares

Since kernel 2.6.11 and according to Documentation/power/video.txt the wiki link for how to suspend on various laptops is https://wiki.ubuntu.com//HoaryPMResults . Unfortunately, only a few of them are using HibernateScript. It might be because they don't know how to write configuration files specific to their hardware, kernel and method used (standard swsusp or swsusp2).

Could we use this wiki to let users detail their configuration files according to their specific hardware? Let us try.

We are naming susptoram.conf and susptodisk.conf the configuration files corresponding to suspension to ram and suspension to disk respectively. Aliases like hibernate -F /etc/hibernate/susptodisk.conf have to be created. Usually another script is used to link both commands on specific keys or ACPI events.

Sony Z1 RMP with a radeon video card, kernel 2.6.12

File /etc/susptoram.conf (standard swsusp) linked to Fn+Esc key

   UseSysfsPowerState mem 
    Verbosity 1
    LogFile /var/log/hibernate.log
    LogVerbosity 1
    UnloadModules ehci-hcd
    LoadModules auto
    EnableVbetool yes
    RestoreVbeStateFrom /var/lib/vbetool/vbestate
    VbetoolPost yes

File /etc/hibernate/susptodisk.conf (standard swsusp) linked to Fn+F12 key

   UseSysfsPowerState disk 
    PowerdownMethod shutdown
    Verbosity 1
    LogFile /var/log/hibernate.log
    LogVerbosity 1
    SaveClock restore-only
    UnloadModules usbhid usblp ehci-hcd uhci-hcd battery ac
    LoadModules auto
    StopServices mysqld laptop-mode
    StartServices usb laptop-mode

Please feel free to add more hardwares and comments. - NicolasBrouard

None: HibernateScript (last edited 2006-12-30 17:43:05 by rsync)