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 /proc
/acpi
/asus
/brn
)
12 # flush the buffers to disk
15 # change virtual terminal to not screw up X
18 # put us into suspend state
19 echo -n "mem" > /sys
/power
/state
21 # BEGIN WAKEUP SEQUENCE
23 #Ugly but effective way to restore screen
24 /usr
/sbin
/vbetool post
27 # restore backlight BRN
29 echo $BRN > /proc
/acpi
/asus
/brn
31 # execute powersource.sh so we have the right settings after suspend
32 (sleep 1; /etc
/acpi
/powersource.sh
&) &