Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52019 - swsusp2 script to ease hibernate and suspend to ram (New package)
Summary: swsusp2 script to ease hibernate and suspend to ram (New package)
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: John Mylchreest (RETIRED)
Keywords: InVCS
Depends on:
Reported: 2004-05-25 09:20 UTC by Dennis Nienhüser (RETIRED)
Modified: 2004-11-12 10:59 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---

swsusp-2.0.66.ebuild (swsusp-2.0.66.ebuild,958 bytes, text/plain)
2004-05-25 09:23 UTC, Dennis Nienhüser (RETIRED)
prefix.patch (prefix.patch,1.42 KB, patch)
2004-05-25 09:24 UTC, Dennis Nienhüser (RETIRED)
Details | Diff
hibernate-script-0.95_rc1.ebuild (hibernate-script-0.95_rc1.ebuild,657 bytes, text/plain)
2004-07-18 05:59 UTC, Stefan Schweizer (RETIRED)
hibernate-script-0.97.ebuild (hibernate-script-0.97.ebuild,524 bytes, text/plain)
2004-08-01 10:36 UTC, Stefan Schweizer (RETIRED)
sys-apps/hibernate-script-1.00.ebuild (hibernate-script-1.00.ebuild,525 bytes, text/plain)
2004-11-08 12:46 UTC, Henrik Brix Andersen
hibernate-script-1.00.ebuild (hibernate-script-1.00.ebuild,1.07 KB, text/plain)
2004-11-12 02:24 UTC, Henrik Brix Andersen

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Nienhüser (RETIRED) gentoo-dev 2004-05-25 09:20:52 UTC
swsusp2 is a kernel patch that adds support for Suspend-To-Disk (aka hibernate). This ebuild does _not_ download/apply the patches, but installs the /sbin/hibernate script that's necessary for swsusp2.

This depends on bug #51696
Comment 1 Dennis Nienhüser (RETIRED) gentoo-dev 2004-05-25 09:23:11 UTC
Created attachment 32012 [details]
Comment 2 Dennis Nienhüser (RETIRED) gentoo-dev 2004-05-25 09:24:45 UTC
Created attachment 32013 [details, diff]

Sandbox support and change default /usr/local/sbin to /sbin
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2004-07-18 05:59:31 UTC
Created attachment 35689 [details]

This ebuild installs the new version it does not need the prefix.patch and
works with acpi s3 for my laptop. It does not need swsusp so I removed the
warnings. The hibernate bin is created in /usr/sbin.
Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2004-08-01 10:36:38 UTC
Created attachment 36590 [details]

This is an updated Version, It does not depend on the swsusp2-kernel-patch as
it also works for suspend to ram, and in fact I only use it for suspend to ram.
So can you please add this to portage?

And for the Kernel part: There is also reiser4progs in portage and reiser4 not
in gentoo-dev-sources.
Comment 5 Stefan Schweizer (RETIRED) gentoo-dev 2004-08-01 12:07:46 UTC
Dennis, can you please change the title of this, so that other users may find it easier?
Comment 6 Christian Roessner 2004-08-24 01:30:12 UTC
I use gentoo-dev-sources-2.6.8-r1 with swsusp2- and hibernate-script-0.98

Maybe the ebuild could be updated

Since 2.6.8, bootsplash was replaced with gensplash and therefor the file /usr/share/hibernate/scriptlets.d/bootsplash needs to be completly rewritten. I tried it, but without luck (Workaround: Removing it to prevent trouble)
Comment 7 Stefan Schweizer (RETIRED) gentoo-dev 2004-08-24 02:25:56 UTC
this is an upstream issue, ask nigel ..

btw, this ebuild is not even in portage everyone can change the ebuild how he/she likes it and attach it if he/she thinks its better than mine
Comment 8 Bertrand Jacquin 2004-10-15 10:40:28 UTC
swsusp-2.0.66.ebuild seems to not patch the kernel for swsusp2. Am I right ?
Comment 9 Stefan Schweizer (RETIRED) gentoo-dev 2004-10-15 10:57:29 UTC
Yes you are right, you need to patch your kernel manually for suspend2. If you want to use suspend-to(disk|ram) thn you do not need to patch your kernel, you need only this ebuild. Renam the ebuild from 0.97 to 0.99 to get the latest version.
Comment 10 Bertrand Jacquin 2004-10-16 11:34:13 UTC
Would those ebuild(s) be added to the master portage ?
Comment 11 Tobias Sager 2004-10-21 00:00:32 UTC
Version 2.1 is out:

Announcement in lkml:

Comment 12 gad.kadosh 2004-11-01 12:59:27 UTC
this works perfectly well, it would be great to have it in portage, i believe it's a must. 
also IMO it's better to call it suspend-script rather than hibernate-script because it's indeed a general purpose suspend script and can be used with different suspend methods.
Comment 13 Henrik Brix Andersen 2004-11-08 12:46:46 UTC
Created attachment 43546 [details]

Ebuild for hibernate-script version 1.00 - not sure if it should be added to
portage, though.
Comment 14 Henrik Brix Andersen 2004-11-12 02:24:55 UTC
Created attachment 43766 [details]

Updated version of the ebuild which defaults to /sys/power/state instead of
Comment 15 Henrik Brix Andersen 2004-11-12 10:59:52 UTC
Added sys-apps/hibernate-script-1.00 to portage. Closing as FIXED InCVS.