# suspend.conf
# shell-script fragment so feel free to use shell syntax...

################################################################################
# general suspend settings

# number of VT to use for suspend script messages, 0 to disable switching
SUSP_VT=11

# Type of suspend/hibernate (of three: standby, ram, disk).
# See /sys/power/state and $KERNELDOC/power/states.txt. If set here this will
# overrule the default type which is based on how the script was called.
# SUSP_MASTER_TYPE=disk

################################################################################
# hibernate (suspend to disk) settings

# type of disk hibernate (platform test testproc shutdown reboot, /sys/power/disk)
# If set here this will overrule the default type which is based
# on how the script was called.
# SUSP_DISK_TYPE=shutdown

# hibernate/resume partition, leave unset to use the kernel default
# this only tells the script for swap management, etc
# the resume kernel still uses what's on its command line.
SUSP_DISK_PART=/dev/sda3
[[ $HOSTTYPE = i686 ]] && SUSP_DISK_PART=/dev/sda4

# size of hibernate image (500 MB default, /sys/power/image_size)
# see /proc/swaps for max size (also in KB)
# if SUSP_DISK_PART is set, you may set this 0 to use the max from /proc/swaps,
# but note that swsusp can only use <= half of physical memory, due to how it works
SUSP_DISK_SIZE_KB=0

################################################################################
# service suspend settings

# init_dir location
SUSP_INITDIR="/etc/init.d"

# services to suspend and restart (only if running at suspend time)
# ordered, space separated list, name only
# append "_nd" if to be stopped without stopping dependencies
# _nd is recommended, as stopped dependencies won't restart!
# (Add them specifically instead, if necessary.)
# default/example: SUSP_SERVICES="hwclock_nd"
SUSP_SERVICES="hwclock_nd ntp-client_nd ntpd_nd"

################################################################################
# RUN_AT_SUSPEND/RUN_AT_RESUME executables
# RUN_AT_SUSPEND[x] are run before service suspension,
# RUN_AT_RESUME[x] after service resume.
# The script checks for null entries but won't work as
# expected with skipped entries (1,3,8) and ignores [0].

#RUN_AT_SUSPEND[1]=
#RUN_AT_SUSPEND[2]=

#RUN_AT_RESUME[1]=
[[ $HOSTTYPE = i686 ]] && RUN_AT_RESUME[1]='laptop_mode auto'
