diff -Narup hibernate-script-2.0.old/scriptlets.d/ususpend hibernate-script-2.0/scriptlets.d/ususpend --- hibernate-script-2.0.old/scriptlets.d/ususpend 2009-05-06 17:56:17.328666183 +0200 +++ hibernate-script-2.0/scriptlets.d/ususpend 2009-05-06 18:35:43.574666294 +0200 @@ -5,14 +5,14 @@ AddConfigHandler USuspendConfigEnabler AddOptionHandler USuspendOptionHandler AddConfigHelp "USuspendMethod " "Enables use of the uswsusp suspend method of newer kernels (>= 2.6.17rc1)" -AddConfigHelp "USuspendRamForce " "Passes the -f flag to s2ram to force suspending even if the machine is not recognised" -AddConfigHelp "USuspendRamUnsureOk " "Instructs s2ram to continue when it's unsure about the system type, thus not requiring -f to be passed" -AddConfigHelp "USuspendRamVbeSave " "Passes the -s flag to s2ram to save VBE state before suspending and restore after resume" -AddConfigHelp "USuspendRamVbePost " "Passes the -p flag to s2ram to VBE POST the graphics card after resume" -AddConfigHelp "USuspendRamVbeMode " "Passes the -m flag to s2ram to get VBE mode before suspend and set it after resume" -AddConfigHelp "USuspendRamRadeontool " "Passes the -r flag to s2ram to let radeontool turn of the backlight before suspending." -AddConfigHelp "USuspendRamAcpiSleep " "Passes the -a flag to s2ram to set the acpi_sleep parameter before suspend: 1=s3_bios, 2=s3_mode, 3=both" -AddConfigHelp "USuspendRamPciSave " "Passes the -v flag to s2ram to have the PCI config space of the VGA card before suspend, and restore it on resume" +AddConfigHelp "USuspendRamForce " "Passes the --force flag to s2ram/s2both to force suspending even if the machine is not recognised" +AddConfigHelp "USuspendRamUnsureOk " "Instructs s2ram/s2both to continue when it's unsure about the system type, thus not requiring --force to be passed" +AddConfigHelp "USuspendRamVbeSave " "Passes the --vbe_save flag to s2ram/s2both to save VBE state before suspending and restore after resume" +AddConfigHelp "USuspendRamVbePost " "Passes the --vbe_post flag to s2ram/s2both to VBE POST the graphics card after resume" +AddConfigHelp "USuspendRamVbeMode " "Passes the --vbe_mode flag to s2ram/s2both to get VBE mode before suspend and set it after resume" +AddConfigHelp "USuspendRamRadeontool " "Passes the --radeontool flag to s2ram/s2both to let radeontool turn of the backlight before suspending." +AddConfigHelp "USuspendRamAcpiSleep " "Passes the --acpi_sleep flag to s2ram/s2both to set the acpi_sleep parameter before suspend: 1=s3_bios, 2=s3_mode, 3=both" +AddConfigHelp "USuspendRamPciSave " "Passes the --pci_save flag to s2ram/s2both to have the PCI config space of the VGA card before suspend, and restore it on resume" AddShortOption "n" AddLongOption "no-suspend" @@ -105,13 +105,13 @@ DoUSuspend() { if [ -z "$USUSPEND_NO_SUSPEND" ] ; then ARGS= if [ "$USUSPEND_PROG" = s2ram ]; then - [ $USUSPEND_RAM_FORCE -eq 1 ] && ARGS="$ARGS -f" - [ $USUSPEND_RAM_VBESAVE -eq 1 ] && ARGS="$ARGS -s" - [ $USUSPEND_RAM_VBEPOST -eq 1 ] && ARGS="$ARGS -p" - [ $USUSPEND_RAM_RADEONTOOL -eq 1 ] && ARGS="$ARGS -r" - [ $USUSPEND_RAM_VBEMODE -eq 1 ] && ARGS="$ARGS -m" - [ $USUSPEND_RAM_ACPISLEEP -ne 0 ] && ARGS="$ARGS -a $USUSPEND_RAM_ACPISLEEP" - [ $USUSPEND_RAM_PCISAVE -eq 1 ] && ARGS="$ARGS -v" + [ $USUSPEND_RAM_FORCE -eq 1 ] && ARGS="$ARGS --force" + [ $USUSPEND_RAM_VBESAVE -eq 1 ] && ARGS="$ARGS --vbe_save" + [ $USUSPEND_RAM_VBEPOST -eq 1 ] && ARGS="$ARGS --vbe_post" + [ $USUSPEND_RAM_RADEONTOOL -eq 1 ] && ARGS="$ARGS --radeontool" + [ $USUSPEND_RAM_VBEMODE -eq 1 ] && ARGS="$ARGS --vbe_mode" + [ $USUSPEND_RAM_ACPISLEEP -ne 0 ] && ARGS="$ARGS --acpi_sleep $USUSPEND_RAM_ACPISLEEP" + [ $USUSPEND_RAM_PCISAVE -eq 1 ] && ARGS="$ARGS --pci_save" fi vecho 1 "$EXE: Running $USUSPEND_PROG_PATH $ARGS..." $USUSPEND_PROG_PATH $ARGS 2>&1 | vcat 2 \ diff -Narup hibernate-script-2.0.old/ususpend-ram.conf hibernate-script-2.0/ususpend-ram.conf --- hibernate-script-2.0.old/ususpend-ram.conf 2009-05-06 17:56:17.331646871 +0200 +++ hibernate-script-2.0/ususpend-ram.conf 2009-05-06 18:36:58.888665377 +0200 @@ -9,33 +9,33 @@ USuspendMethod ram -## if needed, pass the -f option to s2ram +## if needed, pass the --force option to s2ram # USuspendRamForce yes ## if s2ram is unsure, let it use system-specific options instead of having to ## force it. # USuspendRamUnsureOk yes -## if needed, pass the -m option to s2ram -## (-m should be used instead of -s, if possible; see +## if needed, pass the --vbe_mode option to s2ram +## (--vbe_mode should be used instead of --vbe_save if possible; see ## https://bugzilla.novell.com/show_bug.cgi?id=229603) # USuspendRamVbeMode yes -## if needed, pass the -s option to s2ram -## (if possible, prefer -m to -s; see above) +## if needed, pass the --vbe_save option to s2ram +## (if possible, prefer --vbe_mode to --vbe_save; see above) # USuspendRamVbeSave yes -## if needed, pass the -p option to s2ram +## if needed, pass the --vbe_post option to s2ram # USuspendRamVbePost yes -## if needed, pass the -a option to s2ram +## if needed, pass the --acpi_sleep option to s2ram ## (Intel users see: http://en.opensuse.org/S2ram#Intel_Graphics_Chipsets) # USuspendRamAcpiSleep 3 -## if needed, pass the -v option to s2ram +## if needed, pass the -pci_save option to s2ram # USuspendRamPciSave yes -## if needed, pass the -r option to s2ram +## if needed, pass the --radeontool option to s2ram # USuspendRamRadeontool yes Include common.conf