

Code: Select all
# emerge --digest -av suspend
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] sys-apps/suspend-0.5 0 kB [1]
Total: 1 package (1 new), Size of downloads: 0 kB
Portage overlays:
[1] /usr/local/portage
Would you like to merge these packages? [Yes/No] yes
>>> Creating Manifest for /usr/local/portage/sys-apps/suspend
>>> Emerging (1 of 1) sys-apps/suspend-0.5 to /
* suspend-0.5.tar.gz MD5 ;-) ... [ ok ]
* suspend-0.5.tar.gz RMD160 ;-) ... [ ok ]
* suspend-0.5.tar.gz SHA1 ;-) ... [ ok ]
* suspend-0.5.tar.gz SHA256 ;-) ... [ ok ]
* suspend-0.5.tar.gz size ;-) ... [ ok ]
>>> Creating Manifest for /usr/local/portage/sys-apps/suspend
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking suspend-0.5.tar.gz ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking suspend-0.5.tar.gz to /var/tmp/portage/sys-apps/suspend-0.5/work
* Applying suspend-0.5-build.patch ...
* Failed Patch: suspend-0.5-build.patch !
* ( /usr/local/portage/sys-apps/suspend/files/suspend-0.5-build.patch )
*
* Include in your bugreport the contents of:
*
* /var/tmp/portage/sys-apps/suspend-0.5/temp/suspend-0.5-build.patch-6472.out
!!! ERROR: sys-apps/suspend-0.5 failed.
Call stack:
ebuild.sh, line 1614: Called dyn_unpack
ebuild.sh, line 751: Called qa_call 'src_unpack'
environment, line 3099: Called src_unpack
suspend-0.5.ebuild, line 24: Called epatch '/usr/local/portage/sys-apps/suspend/files/suspend-0.5-build.patch'
eutils.eclass, line 341: Called die
!!! Failed Patch: suspend-0.5-build.patch!
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sys-apps/suspend-0.5/temp/build.log'.
!!! This ebuild is from an overlay: '/usr/local/portage'
kainos suspend # cat /var/tmp/portage/sys-apps/suspend-0.5/temp/suspend-0.5-build.patch-6472.out
***** suspend-0.5-build.patch *****
===================================
PATCH COMMAND: patch -p0 -g0 -E --no-backup-if-mismatch < /usr/local/portage/sys-apps/suspend/files/suspend-0.5-build.patch
===================================
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: suspend-0.5/Makefile
|===================================================================
|--- suspend-0.5.orig/Makefile
|+++ suspend-0.5/Makefile
--------------------------
No file to patch. Skipping patch.
4 out of 4 hunks ignored
===================================
PATCH COMMAND: patch -p1 -g0 -E --no-backup-if-mismatch < /usr/local/portage/sys-apps/suspend/files/suspend-0.5-build.patch
===================================
patching file Makefile
Hunk #1 FAILED at 1.
1 out of 4 hunks FAILED -- saving rejects to file Makefile.rej
===================================
PATCH COMMAND: patch -p2 -g0 -E --no-backup-if-mismatch < /usr/local/portage/sys-apps/suspend/files/suspend-0.5-build.patch
===================================
missing header for unified diff at line 5 of patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: suspend-0.5/Makefile
|===================================================================
|--- suspend-0.5.orig/Makefile
|+++ suspend-0.5/Makefile
--------------------------
No file to patch. Skipping patch.
4 out of 4 hunks ignored
===================================
PATCH COMMAND: patch -p3 -g0 -E --no-backup-if-mismatch < /usr/local/portage/sys-apps/suspend/files/suspend-0.5-build.patch
===================================
missing header for unified diff at line 5 of patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: suspend-0.5/Makefile
|===================================================================
|--- suspend-0.5.orig/Makefile
|+++ suspend-0.5/Makefile
--------------------------
No file to patch. Skipping patch.
4 out of 4 hunks ignored
===================================
PATCH COMMAND: patch -p4 -g0 -E --no-backup-if-mismatch < /usr/local/portage/sys-apps/suspend/files/suspend-0.5-build.patch
===================================
missing header for unified diff at line 5 of patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: suspend-0.5/Makefile
|===================================================================
|--- suspend-0.5.orig/Makefile
|+++ suspend-0.5/Makefile
--------------------------
No file to patch. Skipping patch.
4 out of 4 hunks ignored



baeksu wrote:Ok, I got s2ram and s2disk both working now. This package is great!![]()
I really think this package should be included in portage. It works (IMO) better than suspend2, as you don't need to patch the kernel. It should work with all kernels without recompiling anything.
Also, with liblzf, s2disk is a lot faster than suspend2 for me. s2ram takes literally 3 seconds to resume from.
The building process for s2disk is a bit queer, though, as you have to manually edit the Makefile before building it. I don't know how this would be done through ebuilds, but I'm thinking of writing up a HowTo for manually getting these things running, if anyone is interested.

How do you launch s2ram? For me, it did really just work, I even managed to wake up the machine through usb mouse.Phlogiston wrote:@baeksu: How did you get s2ram running? Here it does not even suspend correctly. The machine just dies in a way. I'm using the cvs version of the code btw. If anyone is interested in a working tarball, let me know.

The problem here is that it does not work with fglrx loaded.baeksu wrote:How do you launch s2ram? For me, it did really just work, I even managed to wake up the machine through usb mouse.Phlogiston wrote:@baeksu: How did you get s2ram running? Here it does not even suspend correctly. The machine just dies in a way. I'm using the cvs version of the code btw. If anyone is interested in a working tarball, let me know.
The documentation indeed sucks. I mean not even the settings in the suspend.conf file are documented.
Also, I see they released 0.7 yesterday, so the cvs version might be a bit different 0.5 that I've been using. For one I see there's no documentation (except for Suse) in the 0.7 tarballs.
@deno: I wrote up a howto on my blog (link), but it's for the 0.5 version (and the splash doesn't work). I'm going to have a look suspend-0.7 to see how to get it working as well.