# Example hibernate.conf file. Adapt to your own tastes. # Options are not case sensitive. # # Run "hibernate -h" for help on the configuration items. ############################################################################## ### Choose your Suspend method. You currently have 3 choices: ### ### swsusp2_15 Software Suspend 2 (requires kernel patches from ### http://softwaresuspend.berlios.de/) ### ### sysfs_power_state Uses /sys/power/state to suspend (activates pmdisk ### on kernels < 2.6.8, or vanilla swsusp otherwise). ### ### acpi_sleep Uses /proc/acpi/sleep to activate swsusp, or other ### ACPI sleep state supported by your machine. ### ############################################################################## ### swsusp2_15 (for Software Suspend 2) #UseSwsusp2 yes #Reboot no #EnableEscape yes #DefaultConsoleLevel 1 # ImageSizeLimit 200 #ImageSizeLimit nocache ## useful for initrd usage: # SuspendDevice swap:/dev/hda2 # LoadSuspendModules suspend_swap suspend_lzf suspend_text # UnloadSuspendModulesAfterResume yes ## Powerdown method - 3 for suspend-to-RAM, 4 for ACPI S4 sleep, 5 for poweroff #PowerdownMethod 4 ## If you experience hangs on resume due to write caching, try this: #AsyncIOLimit 128 ## Any other /proc/software_suspend setting can be set like so: # ProcSetting expected_lzf_compression 50 ## Or traditionally like this: # Swsusp2AllSettings 0 0 2056 65535 5 ## Or even from the results of hibernate --save-settings with this: # Swsusp2AllSettingsFile /etc/hibernate/suspend-settings.conf #ProcSetting debug_sections 8192 ##ProcSetting debug_sections 0xffff #ProcSetting default_console_level 6 ##ProcSetting log_everything 1 ##ProcSetting disable_sysdev_suspend 1 ### sysfs_power_state ## To use /sys/power/state to suspend your machine (which may offer ## suspend-to-RAM, suspend-to-disk, standby, etc) comment out all the options ## above for Software Suspend 2, below for acpi_sleep, and uncomment this line. ## You may replace mem with any one of the states from "cat /sys/power/state" #UseSysfsPowerState disk ### acpi_sleep ## To use ACPI to suspend your machine (via /proc/acpi/sleep), comment out ## all the options above for Software Suspend 2 and sysfs, and uncomment this ## line. The number refers to the ACPI sleep state - 3 is suspend-to-RAM and ## 4 is suspend-to-disk. UseACPISleep 4b ############################################################################## ### Some global settings ############################################################################## Verbosity 1 LogFile /var/log/hibernate.log LogVerbosity 2 # AlwaysForce yes # AlwaysKill yes # SwsuspVT 15 SwsuspVT 9 # Distribution debian (not required - autodetection should work) Distribution gentoo ############################################################################## ### Modules ### Modules 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 yes ### devices # IncompatibleDevices /dev/dsp /dev/video* ### diskcache # DisableWriteCacheOn /dev/hda ### filesystems # Unmount /nfsshare /windows /mnt/sambaserver Unmount /mnt/floppy /mnt/cdrom /mnt/gentoo /mnt/alpha-hdb /mnt/cf /mnt/dcam /mnt/dvd /mnt/mnt /proc/bus/usb /mnt/janec /mnt/janed /home/rob/awrk /home/rob/bwrk /home/rob/pwrk # Mount /windows Mount /proc/bus/usb ### grub # ChangeGrubMenu yes # GrubMenuFile /boot/grub/menu.lst # AlternateGrubMenuFile /boot/grub/menu-suspended.lst ### lilo # EnsureLILOResumes yes ### lock (generally you only want one of the following options) # LockConsoleAs root # LockXScreenSaver yes # LockKDE yes ### misclaunch # OnSuspend 20 echo "Good night!" ## rtm: I've set up a 'no network' runlevel for Gentoo which ## only has xdm and my cPad scripts. this command takes me ## to that runlevel, stopping all the other /etc/init.d scripts OnSuspend 20 /usr/local/sbin/rc-nonetwork # OnResume 20 echo "Good morning!" ## rtm: as above, this command switches the system to the ## 'default' runlevel, restarting all the scripts shutdown ## by 'rc nonetwork'. If you are running Gentoo, 'rc-update show' ## should get you started figuring this out. OnResume 20 /usr/local/sbin/rc-default ### modules # UnloadModules snd_via82cxxx usb-ohci UnloadAllModules yes #UnloadBlacklistedModules yes #LoadModules auto # LoadModulesFromFile /etc/modules ### modules-gentoo GentooModulesAutoload yes ### network # DownInterfaces eth0 # UpInterfaces auto ### programs # IncompatiblePrograms xmms ### services # RestartServices postfix # StopServices alsasound # StartServices aumix ### xhacks SwitchToTextMode yes UseDummyXServer yes