Summary: | sys-power/hibernate-script-2.0 Making USuspendRam* Options available for s2both | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | samLT <samuel.lethiec> |
Component: | Current packages | Assignee: | Alon Bar-Lev (RETIRED) <alonbl> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | PATCH |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Patch to add the USuspendBothForce option
ebuild using this patch hibernate-script-2.0-USuspendBothForce.patch hibernate-script-2.0-USuspend-use-long-options.patch hibernate-script-2.0-USuspendRam-options-for-s2both.patch hibernate-script-2.0-r2.ebuild hibernate-script-2.0-USuspendRam-options-for-s2both.patch |
Description
samLT
2009-05-01 17:08:31 UTC
Created attachment 190480 [details, diff]
Patch to add the USuspendBothForce option
With this patch, it's now possible to use the hibernate script to do a ususpend-both, even if the machine is unknown to s2ram. One just need to set USuspendBothForce to yes in (for example) /etc/hibernate/ususpend-both.conf
Created attachment 190481 [details]
ebuild using this patch
--- hibernate-script-2.0-r1.ebuild 2009-05-05 15:34:48.000000000 +0200 +++ hibernate-script-2.0-r2.ebuild 2009-05-06 08:15:56.000000000 +0200 @@ -25,6 +25,7 @@ src_unpack() { cd "${S}" epatch "${FILESDIR}/${P}-init.d.patch" + epatch "${FILESDIR}/${P}-USuspendBothForce.patch" } src_install() { Created attachment 190483 [details]
hibernate-script-2.0-USuspendBothForce.patch
typo in my previous patch: ( need => needs )
Created attachment 190520 [details, diff] hibernate-script-2.0-USuspend-use-long-options.patch From this debian bug report http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=505410 it seems s2both should accept every USuspendRam* options. The attached patches are an improvement over the one posted on 'bdo' (as opposed to 'bgo' ;) ) First patch ( hibernate-script-2.0-USuspend-use-long-options.patch ): * uses long options instead of short ones because for example s2both doesn't support the '-f' (for --force) short option. Same for the '-a' short option ( --acpi_sleep ) * adapts the comments about the different USuspendRam* options in ususpend-ram.conf to reflect that changes. And the second patch ( hibernate-script-2.0-USuspendRam-options-for-s2both.patch ) * also suggests for the suspend-to-both method to read about s2ram, and USuspendRamForce if the machine is unknown and the option unset. * Duplicates and adapts the comments about the different USuspendRam* options in and from ususpend-ram.conf to ususpend-both.conf Created attachment 190521 [details, diff]
hibernate-script-2.0-USuspendRam-options-for-s2both.patch
Created attachment 190523 [details]
hibernate-script-2.0-r2.ebuild
Created attachment 190633 [details, diff]
hibernate-script-2.0-USuspendRam-options-for-s2both.patch
Use s2ram for EnsureUSuspendCapable function, as s2both doesn't support the --test option
And, this should be the last change I make.
This package is now orphan: http://my.opera.com/pacho/blog/2012/11/27/about-maintainer-needed Fixed in hibernate-script-2.0-r6 Thanks! |