tom@momo:~$ cat /etc/hibernate/common.conf
# Configuration options common for suspending to disk or RAM.
# Options are not case sensitive.
#
# See hibernate.conf(5) for help on the configuration items.
##############################################################################
### Some global settings
##############################################################################
Verbosity 3
LogFile /var/log/hibernate.log
LogVerbosity 5
LogTimestamp yes
# AlwaysForce yes
AlwaysKill no
# HibernateVT 15
Distribution debian
# XDisplay :0
#
#
# tox-on-ice
UseTuxOnIce true
EnableEscape true
DefaultConsoleLevel 6
SuspendDevice /dev/mapper/cryptoswap
Compressor lzf
ImageSizeLimit nocache
PowerdownMethod 4
##############################################################################
### Scriptlets
### Scriptlets provide support for doing all sorts of things before and after
### suspending. The defaults settings here should work for most people, but
### you may wish to edit these to taste. Consult "hibernate -h" for help on
### the configuration settings.
##############################################################################
### bootsplash
## If you use bootsplash, also enabling SwitchToTextMode is recommended if
## you use X, otherwise you may end up with a garbled X display.
# Bootsplash on
# BootsplashConfig /etc/bootsplash/default/config/bootsplash-1024x768.cfg
### clock
SaveClock restore-only
### devices
# IncompatibleDevices /dev/dsp /dev/video*
### diskcache
# DisableWriteCacheOn /dev/hda
### fbsplash (enable SwitchToTextMode if you use this)
# FBSplash on
# FBSplashTheme suspend2
### filesystems
# Unmount /nfsshare /windows /mnt/sambaserver
# UnmountFSTypes smbfs nfs
# UnmountGraceTime 1
# Mount /windows
### grub
# ChangeGrubMenu yes
# GrubMenuFile /boot/grub/menu.lst
# AlternateGrubMenuFile /boot/grub/menu-suspended.lst
# BackupGrubMenuFile /var/backups/grub.conf.hibernate
# see http://bugs.debian.org/317479
RemountXFSBoot no
### hardware_tweaks
IbmAcpi yes
# RadeonTool yes
# Runi915resolution yes
FullSpeedCPU yes
### lilo
# EnsureLILOResumes yes
### lock (generally you only want one of the following options)
## For console you need vlock available.
## For x you need xscreensaver-command-command available.
## For gnome you need gnome-screensaver-command available.
## For kde you need dcop, kscreensaver available.
## For XAuto you need xautolock available.
## For Xtr you need xtrlock available.
# LockConsoleAs root
# LockXScreenSaver yes
# LockGnomeScreenSaver yes
#LockKDE yes
# LockXLock yes
# LockXAutoLock yes
# LockXtrLock yes
### misclaunch
###OnSuspend 20 for vm in `vboxmanage list runningvms | tail -n +5`; do vboxmanage controlvm $vm savestate ; done
OnSuspend 00 su -c "/home/tom/bin/hibernate_commands.sh suspend" tom
#OnSuspend 99 swapoff -a
# OnResume 20 echo "Good morning!"
OnResume 10 ionice -c 3 su -c "/home/tom/bin/hibernate_commands.sh resume" tom
#OnResume 99 swapoff -a
#OnResume 99 ionice -c3 nice -n 20 swapoff -a &
### modules
UnloadModules zd1211rw
# UnloadAllModules yes
UnloadBlacklistedModules yes
LoadModules auto
# LoadModulesFromFile /etc/modules
### modules-gentoo
# GentooModulesAutoload yes
### network
DownInterfaces auto
UpInterfaces auto
### networkmanager
EnableNMReconnect no
### pause_audio
# MuteAudio yes
# PauseAudio yes
### pcmcia
# EjectCards yes
### programs
# IncompatiblePrograms xmms
### services
###RestartServices laptop-mode anacron acpid wwwoffle
# StopServices alsasound
# StartServices aumix
### vbetool
# EnableVbetool yes
# RestoreVbeStateFrom /var/lib/vbetool/vbestate
# VbetoolPost yes
# RestoreVCSAData yes
### xhacks
SwitchToTextMode no
UseDummyXServer no
# DummyXServerConfig xorg-dummy.conf
### xstatus
## This can be set to gnome, kde or x:
## For gnome you need zenity available.
## For kde you need dcop, kstart, kdialog available.
## For x you need to have xosd OR xmessage available.
XStatus kde
# XmessageDisable yes
XSuspendText Night dude!
XResumeText Hello world! :-)
## When using XStatus x, and you have xosd installed:
# XosdSettings --font '-misc-fixed-medium-r-semicondensed--*-120-*-*-c-*-*-*' --colour=Green --shadow 1 --pos bottom --align center --offset 50
### xbacklight
BackLight no
### gaim
## You need to have dbus, gaim_remote available.
# LogoutGaim yes
# GaimRestoreStatus yes
# GaimLogoutMessage Hibernating
# GaimLoginMessage Back from hibernation