1 # Example hibernate.conf file. Adapt to your own tastes.
2 # Options are not case sensitive.
4 # Run "hibernate -h" for help on the configuration items.
6 ##############################################################################
7 ### Choose your Suspend method. You currently have 3 choices:
9 ### suspend2 Software Suspend 2 (requires kernel patches from
10 ### http://www.suspend2.net/)
12 ### sysfs_power_state Uses /sys/power/state to suspend (activates pmdisk
13 ### on kernels < 2.6.8, or vanilla swsusp otherwise).
15 ### acpi_sleep Uses /proc/acpi/sleep to activate swsusp, or other
16 ### ACPI sleep state supported by your machine.
18 ##############################################################################
20 ### suspend2 (for Software Suspend 2)
28 ## useful for initrd usage:
29 # SuspendDevice swap:/dev/hda2
30 ## Powerdown method - 3 for suspend-to-RAM, 4 for ACPI S4 sleep, 5 for poweroff
32 ## Any other /proc/software_suspend setting can be set like so:
33 # ProcSetting expected_compression 50
34 ## Or traditionally like this:
35 # Suspend2AllSettings 0 0 2056 65535 5
36 ## Or even from the results of hibernate --save-settings with this:
37 # Suspend2AllSettingsFile /etc/hibernate/suspend-settings.conf
39 # FilewriterLocation /suspend_file 1000
40 # VerifyFilewriterResume2 yes
41 # ProcSetting userui_program /sbin/suspend2ui_text
44 ## To use /sys/power/state to suspend your machine (which may offer
45 ## suspend-to-RAM, suspend-to-disk, standby, etc) comment out all the options
46 ## above for Software Suspend 2, below for acpi_sleep, and uncomment this line.
47 ## You may replace mem with any one of the states from "cat /sys/power/state"
48 # UseSysfsPowerState mem
49 # PowerdownMethod shutdown
52 ## To use ACPI to suspend your machine (via /proc/acpi/sleep), comment out
53 ## all the options above for Software Suspend 2 and sysfs, and uncomment this
54 ## line. The number refers to the ACPI sleep state - 3 is suspend-to-RAM and
55 ## 4 is suspend-to-disk.
58 ##############################################################################
59 ### Some global settings
60 ##############################################################################
63 LogFile /var/log/hibernate.log
71 ##############################################################################
73 ### Scriptlets provide support for doing all sorts of things before and after
74 ### suspending. The defaults settings here should work for most people, but
75 ### you may wish to edit these to taste. Consult "hibernate -h" for help on
76 ### the configuration settings.
77 ##############################################################################
80 ## If you use bootsplash, also enabling SwitchToTextMode is recommended if
81 ## you use X, otherwise you may end up with a garbled X display.
83 # BootsplashConfig /etc/bootsplash/default/config/bootsplash-1024x768.cfg
86 SaveClock restore-only
89 # IncompatibleDevices /dev/dsp /dev/video*
92 # DisableWriteCacheOn /dev/hda
94 ### fbsplash (enable SwitchToTextMode if you use this)
96 # FBSplashTheme suspend2
99 # Unmount /nfsshare /windows /mnt/sambaserver
100 # UnmountFSTypes smbfs nfs
106 # GrubMenuFile /boot/grub/menu.lst
107 # AlternateGrubMenuFile /boot/grub/menu-suspended.lst
108 # BackupGrubMenuFile /boot/grub/menu.lst.hibernate.bak
115 # EnsureLILOResumes yes
117 ### lock (generally you only want one of the following options)
119 # LockXScreenSaver yes
125 # OnSuspend 20 echo "Good night!"
126 # OnResume 20 echo "Good morning!"
129 # UnloadModules snd_via82cxxx usb-ohci
130 # UnloadAllModules yes
131 UnloadBlacklistedModules yes
133 # LoadModulesFromFile /etc/modules
136 # GentooModulesAutoload yes
139 # DownInterfaces eth0
146 # IncompatiblePrograms xmms
149 # RestartServices postfix
150 # StopServices alsasound
151 # StartServices aumix
155 # RestoreVbeStateFrom /var/lib/vbetool/vbestate
157 # RestoreVCSAData yes
161 # UseDummyXServer yes
164 ## This can be set to gnome, kde or x:
166 # XSuspendText Preparing to suspend...
167 # XResumeText Resuming from suspend...
168 ## When using XStatus x, and you have xosd installed:
169 # XosdSettings --font -misc-fixed-medium-r-semicondensed--*-120-*-*-c-*-*-* --colour=Green --shadow 1 --pos bottom --align center --offset 50