# -*- Mode: shell-script -*-

# Some broken BIOSes, like those found in early Gericom 3xC notebooks,
# won't wake up harddisks from suspend to disk unless they're set to PIO mode
# and 16-bit.
# Don't activate the following two lines unless you're getting
# "hda: lost interrupt" after returning from a suspend to disk.
#SUSPEND_DISK="-q -X0 -q -c0 -q -d0 -q -u0 -q -S0"
#SUSPEND_RESUME="-q -X66 -q -c1 -q -d1 -q -u1 -q -S30"

# If RESTART_NFS is set to yes, NFS filesystems will be unmounted at
# suspend, and remounted at resume (if possible).
RESTART_NFS="yes"

# If NET_RESTART is set to yes, the network will be shut down at suspend and
# restarted at resume.
# This is especially useful if you're using DHCP, but usually won't hurt.
RESTART_NETWORK="yes"

# I got frequent problems mainly with scsi-pcmcia-cards on the cardbus. Use
# RESTART_PCMCIA="yes" to stop the whole pcmcia-subsystem on a suspend and
# to start it again after a resume. This can slow down your suspend and resume
# process.
# Use PCMCIA_TIMEOUT in order to set up the PCMCIA timeout.
# Some BIOSes are too buggy to handle cardctl suspend and cardctl resume
# properly, in these cases cardctl eject and cardctl insert can be used instead.
# However, this actually ejects the card on hardware supporting it, so if
# the BIOS isn't buggy, it shouldn't be used. Set PCMCIA_BIOS_BUG to yes if
# you are experiencing problems with PCMCIA cards after a resume.
# Since buggy BIOSes seem to be far more common than hardware that can eject
# PCMCIA cards (and it doesn't make a difference on systems that don't have
# either), it is enabled by default.
# If PCMCIA_BIOS_BUG is set to yes, you can set PCMCIA_WAIT to wait with the
# suspend until the pccard is removed from the system.
RESTART_PCMCIA="no"
PCMCIA_BIOS_BUG="yes"
PCMCIA_WAIT="yes"
PCMCIA_TIMEOUT="10"

# if you have problems with your X display after returning from suspend mode
# give CHANGE_VT the number of the virtual terminal your X-Server runs on
# or 0 to get back to the VT you were using before suspend.
CHANGE_VT="0"

# if you have problems with your video card not correctly resuming after
# suspend to ram (S3) with ACPI, try to set VBESTATESAVE="yes".
#VBESTATESAVE="yes"

# if you have issues like screen being turned of after suspend to ram (S3)
# with ACPI, you can try to set VBEPOST="yes". Be careful, this may lead to
# undefined behaviour depending on your BIOS.
#VBEPOST="yes"

# Have wltool automatically find out whether vbe stateave, vbe post, vbemode
# or radeon backlight hack is by checking it's whitelist with machine specific
# hacks.
VBEAUTO="yes"

# Here you can force options for wltool (useful when your model isn't known
# by the whitelist). For what options you can use & info, check 'wltool --help'
#WLTOOL_SUSPEND="--force -a=3 -s -m"
#WLTOOL_RESUME="--force -a=3 -s -p -m"

# Set LOCK_XFREE to yes if you want to lock all your X displays at suspend
LOCK_XFREE="yes"

# If you set this to yes, the clock will be synced with the hardware clock
# when the computer returns from suspend mode.
CLOCK_SYNC="yes"

# if your sound sometimes doesn't work after a resume set RESTORESOUND to "yes";
# this will kill all sound applications, remove and start the $SOUNDMODULES
# again, and, if you also set $RESTORESOUNDPROGS to "yes", restart the
# sound applications as the correct user and on the correct display
RESTORE_SOUND="no"
SOUND_MODULES="sb uart401 sound soundcore maestro cs4281"

# modules to be unloaded and reloaded when coming back from suspend
RELOAD_MODULES=

# Sometime USB doen't support well the suspending, specially for mouse
# you may want to activate USBMOUSE_RESTART to make sure that your
# mouse will work, if you want to restart the whole usb system set the
# variable USB_RESTART
USB_RESTART="no"

# the error-beep of your terminal might be set to the default values after a
# resume so set TERMINAL_BEEP to "yes" to restore the values in
# /etc/sysconfig/keyboard
TERMINAL_BEEP="no"
BEEP_LENGTH=2

# List here the Services to Restart between Suspend/Resume
RESTART_SERVICES="haldaemon postfix ntpd xinetd nfs gpm pcmcia irda alsa anacron cpufreq cpufreqd mDNSResponder athcool mysqld"

## APM Specific config
# make an entry in the logfiles whenever the percentage of
# battery power changes below the value specified here
LOGPERCENTCHANGE=10

# warn on specified remainig battery percentage, use negative values
# to disable this feature
WARNPERCENT=5

# use -W to warn all users in a critical power state
ADDPARAMS="-W"

## SWSUSP Specific config
# Use SWSUSP_FORCE_SUSPEND_MODE to force use the SWSUSP feature
# suspension. If empty, this let the suspension
# behaviour unchanged. "0" will force shut off after
# suspension. "1" will force reboot. You can add an optional
# second parameter to tune the suspension display (see swsusp
# documentation for more information).
# p1 = 0 for halt + eatmem  p1 = 2 for halt + freemem
# p2 = 2 for progress bar
# p3, p4 are optional debugging options for hackers (see swsusp kernel patch documentation).
# Default: "0 2", i.e. halt, eatmem, progress bar
#SWSUSP_FORCE_SUSPEND_MODE="0 2"

## Automatic waking up config
#Use AUTOWAKE to resume from a suspend to ram after a given amount of time 
#and automatically launch a command. 
#Useful to have an automatic suspend to disk after some time in 
#suspend to ram.
#AUTOWAKE: enable/disable this functionnality
AUTOWAKE="no"
#AUTOWAKE_DELAY: Set delay before automatic resume, in minutes.
AUTOWAKE_DELAY=20
#AUTOWAKE_COMMAND: command to run after automatic resume.
#Use "/usr/bin/pmsuspend disk" if you want to trigger a suspend to disk
AUTOWAKE_COMMAND="/usr/bin/pmsuspend disk"
