Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 190521 Details for
Bug 268133
sys-power/hibernate-script-2.0 Making USuspendRam* Options available for s2both
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
hibernate-script-2.0-USuspendRam-options-for-s2both.patch
hibernate-script-2.0-USuspendRam-options-for-s2both.patch (text/plain), 2.56 KB, created by
samLT
on 2009-05-06 18:38:27 UTC
(
hide
)
Description:
hibernate-script-2.0-USuspendRam-options-for-s2both.patch
Filename:
MIME Type:
Creator:
samLT
Created:
2009-05-06 18:38:27 UTC
Size:
2.56 KB
patch
obsolete
>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 18:40:19.680667560 +0200 >+++ hibernate-script-2.0/scriptlets.d/ususpend 2009-05-06 19:34:57.466648068 +0200 >@@ -33,10 +33,7 @@ USuspendConfigEnabler() { > case "$1" in > ususpendmethod) > case "$2" in >- disk|both) USUSPEND_PROG=s2$2;; >- ram) >- USUSPEND_PROG=s2ram >- ;; >+ both|disk|ram) USUSPEND_PROG=s2$2;; > *) > vecho 1 "$EXE: Invalid value fo USuspendMethod." > return 2 >@@ -104,7 +101,7 @@ USuspendOptionHandler() { > DoUSuspend() { > if [ -z "$USUSPEND_NO_SUSPEND" ] ; then > ARGS= >- if [ "$USUSPEND_PROG" = s2ram ]; then >+ if [ "$USUSPEND_PROG" != s2disk ]; then > [ $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" >@@ -127,8 +124,8 @@ EnsureUSuspendCapable() { > vecho 0 "$USUSPEND_PROG not installed." > return 2 > fi >- if [ "$USUSPEND_PROG" = s2ram ] && [ $USUSPEND_RAM_FORCE -eq 0 ]; then >- $USUSPEND_PROG -n >/dev/null >+ if [ "$USUSPEND_PROG" != s2disk ] && [ $USUSPEND_RAM_FORCE -eq 0 ]; then >+ s2both -n >/dev/null > ret=$? > case "$ret/$USUSPEND_RAM_UNSUREOK" in > 0/*) :;; >diff -Narup hibernate-script-2.0.old/ususpend-both.conf hibernate-script-2.0/ususpend-both.conf >--- hibernate-script-2.0.old/ususpend-both.conf 2009-05-06 17:56:17.328666183 +0200 >+++ hibernate-script-2.0/ususpend-both.conf 2009-05-06 19:32:11.466646838 +0200 >@@ -9,4 +9,33 @@ > > USuspendMethod both > >+## pass the --force option to s2both (if needed for 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 --vbe_mode option to s2both >+## (--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 --vbe_save option to s2both >+## (if possible, prefer --vbe_mode to --vbe_save; see above) >+# USuspendRamVbeSave yes >+ >+## if needed, pass the --vbe_post option to s2both >+# USuspendRamVbePost yes >+ >+## if needed, pass the --acpi_sleep option to s2both >+## (Intel users see: http://en.opensuse.org/S2ram#Intel_Graphics_Chipsets) >+# USuspendRamAcpiSleep 3 >+ >+## if needed, pass the -pci_save option to s2both >+# USuspendRamPciSave yes >+ >+## if needed, pass the --radeontool option to s2both >+# USuspendRamRadeontool yes >+ > Include common.conf
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 268133
:
190480
|
190481
|
190483
|
190520
|
190521
|
190523
|
190633