tags 473322 confirmed patch fixed-upstream pending
thanks

also sprach Jiri Palecek <[EMAIL PROTECTED]> [2008.03.30.0028 +0100]:
> there is no configuration file entry which would force the use of -v  
> switch in call to s2ram. Without it, there is no way of making suspend  
> work if the machine needs it and isn't in the uswsusp whitelist.
>
> The name of the option could be USuspendRamPciSave.

This patch should implement that and 1.98 will have it.

Index: scriptlets.d/ususpend
===================================================================
--- scriptlets.d/ususpend       (revision 1170)
+++ scriptlets.d/ususpend       (working copy)
@@ -11,6 +11,7 @@
 AddConfigHelp "USuspendRamVbePost <boolean>" "Passes the -p flag to s2ram to 
VBE POST the graphics card after resume"
 AddConfigHelp "USuspendRamVbeMode <boolean>" "Passes the -m flag to s2ram to 
get VBE mode before suspend and set it after resume"
 AddConfigHelp "USuspendRamAcpiSleep <number>" "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 ave the PCI 
config space of the VGA card before suspend, and restore it on resume"
 
 AddShortOption "n"
 AddLongOption "no-suspend"
@@ -24,6 +25,7 @@
 USUSPEND_RAM_VBEPOST=0
 USUSPEND_RAM_VBEMODE=0
 USUSPEND_RAM_ACPISLEEP=0
+USUSPEND_RAM_PCISAVE=0
 
 USuspendConfigEnabler() {
     case "$1" in
@@ -66,6 +68,9 @@
  ususpendramacpisleep)
      USUSPEND_RAM_ACPISLEEP="$2" || return 0
      ;;
+       ususpendrampcisave)
+           BoolIsOn "$1" "$2" && USUSPEND_RAM_PCISAVE=1 || return 0
+           ;;
      
  *) return 1;;
     esac
@@ -100,6 +105,7 @@
      [ $USUSPEND_RAM_VBEPOST -eq 1 ] && ARGS="$ARGS -p"
      [ $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"
  fi
  vecho 1 "$EXE: Running $USUSPEND_PROG_PATH $ARGS..."
  $USUSPEND_PROG_PATH $ARGS 2>&1 | vcat 2 \

-- 
 .''`.   martin f. krafft <[EMAIL PROTECTED]>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)

Reply via email to