Powersave s2ram
s2ram integration into powersave
If you own a machine that is capable of suspending to RAM using the s2ram tool packaged in the suspend package, but which is not yet in the whitelist, you can force the usage of the s2ram workaround with the following variables in /etc/powersave/sleep:
# Set this variable to no to enable suspend to RAM. # If the /usr/sbin/s2ram binary is available, it will be used to detect # if the machine is capable of suspend to RAM. You can override this # detection with SUSPEND2RAM_FORCE below. DISABLE_USER_SUSPEND2RAM=""
This should be "no" (which is default) to enable suspend to RAM at all.
The following variables are pretty well explained by the comments next to them:
# If /usr/sbin/s2ram is installed but does not know about your machine, # you can force suspend to RAM for unknown machines by setting this # variable to yes. # Be careful, this might crash your machine. # See also the SUSPEND2RAM_ACPI_SLEEP, SUSPEND2RAM_VBE_POST and # SUSPEND2RAM_VBE_SAVE variables. SUSPEND2RAM_FORCE="" # If SUSPEND2RAM_FORCE is set to yes and s2ram is installed, you can set # the acpi_sleep parameter here. This is a number, 1 means "s3_bios", # 2 means "s3_mode" 3 means "s3bios,s3mode". # These parameters are explained in the kernel sources under # Documentation/power/video.txt # Leaving this empty or setting it to 0 means "don't touch this setting", # you might still have one of the options set from the kernel commandline. # Be careful, this might crash your machine. SUSPEND2RAM_ACPI_SLEEP="" # if SUSPEND2RAM_FORCE is set to yes and s2ram is installed, you can enable # the equivalent of "vbetool vbestate save/restore" before/after suspend to # RAM with this variable. This does restore the state of the graphics chip # on many machines. # Be careful, this might crash your machine. SUSPEND2RAM_VBE_SAVE="" # if SUSPEND2RAM_FORCE is set to yes and s2ram is installed, you can enable # the equivalent of "vbetool post" after suspend to RAM. This reinitializes # the graphics chip on many machines. # Be careful, this might crash your machine. SUSPEND2RAM_VBE_POST=""
Examples
After reading the s2ram page, you found out, that your machine needs:
s2ram -f -a3
SUSPEND2RAM_FORCE="yes" SUSPEND2RAM_ACPI_SLEEP="3"
s2ram -f -p -s
SUSPEND2RAM_FORCE="yes" SUSPEND2RAM_VBE_SAVE="yes" SUSPEND2RAM_VBE_POST="yes"
s2ram -a1 -s
SUSPEND2RAM_FORCE="yes" SUSPEND2RAM_ACPI_SLEEP="1" SUSPEND2RAM_VBE_SAVE="yes"
Don't forget to report your machine as lined out in the s2ram page :-)