2 if [ -e "/etc/acpi/power.lock" ]; then
6 if grep -q mem
/sys
/power
/state
; then
8 # BEGIN SUSPEND SEQUENCE
9 # save the brightness value
10 BRN
=$
(cat /sys
/class
/backlight
/eeepc
/actual_brightness
)
12 # set the fsb to its normal speed to avoid hangs on resume
13 # not included in this package because it's an experimental script
16 # flush the buffers to disk
19 # change virtual terminal to not screw up X
22 # put us into suspend state
23 echo -n "mem" > /sys
/power
/state
25 # BEGIN WAKEUP SEQUENCE
27 #Ugly but effective way to restore screen
28 /usr
/sbin
/vbetool post
31 # restore backlight BRN
33 echo $BRN > /sys
/class
/backlight
/eeepc
/brightness
35 # choose right fsb, lcd backlight, devices power state accordingly to power source
36 # experimental script not included in this package
37 # /usr/local/bin/eeeautoclock.sh