surpport seeking the recorded video
[vuplus_openembedded] / recipes / hibernate-script / hibernate-script / hibernate.conf
1 # Example hibernate.conf file. Adapt to your own tastes.
2 # Options are not case sensitive.
3
4 # Run "hibernate -h" for help on the configuration items.
5
6 ##############################################################################
7 ### Choose your Suspend method. You currently have 3 choices:
8 ###
9 ###    suspend2            Software Suspend 2 (requires kernel patches from
10 ###                        http://www.suspend2.net/)
11 ###
12 ###    sysfs_power_state   Uses /sys/power/state to suspend (activates pmdisk
13 ###                        on kernels < 2.6.8, or vanilla swsusp otherwise).
14 ###
15 ###    acpi_sleep          Uses /proc/acpi/sleep to activate swsusp, or other
16 ###                        ACPI sleep state supported by your machine.
17 ###
18 ##############################################################################
19
20 ### suspend2 (for Software Suspend 2)
21 UseSuspend2 yes
22 Reboot no
23 EnableEscape yes
24 DefaultConsoleLevel 1
25 Compressor lzf
26 Encryptor none
27 # ImageSizeLimit 200
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
31 # PowerdownMethod 5
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
38 ## For filewriter:
39 # FilewriterLocation /suspend_file 1000
40 # VerifyFilewriterResume2 yes
41 # ProcSetting userui_program /sbin/suspend2ui_text
42
43 ### sysfs_power_state
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
50
51 ### acpi_sleep
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.
56 # UseACPISleep 4
57
58 ##############################################################################
59 ### Some global settings
60 ##############################################################################
61
62 Verbosity 0
63 LogFile /var/log/hibernate.log
64 LogVerbosity 1
65 # AlwaysForce yes
66 # AlwaysKill yes
67 # HibernateVT 15
68 Distribution OE
69 # XDisplay :0
70
71 ##############################################################################
72 ### Scriptlets
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 ##############################################################################
78
79 ### bootsplash
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.
82 # Bootsplash on
83 # BootsplashConfig /etc/bootsplash/default/config/bootsplash-1024x768.cfg
84
85 ### clock
86 SaveClock restore-only
87
88 ### devices
89 # IncompatibleDevices /dev/dsp /dev/video*
90
91 ### diskcache
92 # DisableWriteCacheOn /dev/hda
93
94 ### fbsplash (enable SwitchToTextMode if you use this)
95 # FBSplash on
96 # FBSplashTheme suspend2
97
98 ### filesystems
99 # Unmount /nfsshare /windows /mnt/sambaserver
100 # UnmountFSTypes smbfs nfs
101 # UnmountGraceTime 1
102 # Mount /windows
103
104 ### grub
105 # ChangeGrubMenu yes
106 # GrubMenuFile /boot/grub/menu.lst
107 # AlternateGrubMenuFile /boot/grub/menu-suspended.lst
108 # BackupGrubMenuFile /boot/grub/menu.lst.hibernate.bak
109
110 ### hardware_tweaks
111 # IbmAcpi yes
112 # RadeonTool yes
113
114 ### lilo
115 # EnsureLILOResumes yes
116
117 ### lock (generally you only want one of the following options)
118 # LockConsoleAs root
119 # LockXScreenSaver yes
120 # LockKDE yes
121 # LockXLock yes
122 # LockXAutoLock yes
123
124 ### misclaunch
125 # OnSuspend 20 echo "Good night!"
126 # OnResume 20 echo "Good morning!"
127
128 ### modules
129 # UnloadModules snd_via82cxxx usb-ohci
130 # UnloadAllModules yes
131 UnloadBlacklistedModules yes
132 LoadModules auto
133 # LoadModulesFromFile /etc/modules
134
135 ### modules-gentoo
136 # GentooModulesAutoload yes
137
138 ### network
139 # DownInterfaces eth0
140 # UpInterfaces auto
141
142 ### pcmcia
143 # EjectCards yes
144
145 ### programs
146 # IncompatiblePrograms xmms
147
148 ### services
149 # RestartServices postfix
150 # StopServices alsasound
151 # StartServices aumix
152
153 ### vbetool
154 # EnableVbetool yes
155 # RestoreVbeStateFrom /var/lib/vbetool/vbestate
156 # VbetoolPost yes
157 # RestoreVCSAData yes
158
159 ### xhacks
160 SwitchToTextMode yes
161 # UseDummyXServer yes
162
163 ### xstatus
164 ## This can be set to gnome, kde or x:
165 # XStatus gnome
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