Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

s2ram? (SOLVED)

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
13 posts • Page 1 of 1
Author
Message
cybrjackle
Apprentice
Apprentice
User avatar
Posts: 248
Joined: Thu Jan 09, 2003 3:37 pm
Location: USA

s2ram? (SOLVED)

  • Quote

Post by cybrjackle » Thu Feb 15, 2007 4:32 pm

https://bugs.gentoo.org/show_bug.cgi?id=156431

How would I build this?
Last edited by cybrjackle on Mon Feb 19, 2007 6:21 am, edited 1 time in total.
Top
cybrjackle
Apprentice
Apprentice
User avatar
Posts: 248
Joined: Thu Jan 09, 2003 3:37 pm
Location: USA

  • Quote

Post by cybrjackle » Thu Feb 15, 2007 6:17 pm

http://pastebin.ca/357439

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
Top
baeksu
l33t
l33t
User avatar
Posts: 609
Joined: Sun Sep 26, 2004 11:03 am
Location: Seoul, Korea

  • Quote

Post by baeksu » Fri Feb 16, 2007 4:04 am

That patching part works for me. Remove the source file from /usr/portage/distfiles and try again.
Gnome:
1. A legendary being.
2. A never ending quest to make unix friendly to people who don't want unix and excruciating for those that do.
Top
cybrjackle
Apprentice
Apprentice
User avatar
Posts: 248
Joined: Thu Jan 09, 2003 3:37 pm
Location: USA

  • Quote

Post by cybrjackle » Mon Feb 19, 2007 6:21 am

Apparently I wasn't copying it over correctly and the format was messing up.

Thanks for checking I got it to build.
Top
cybrjackle
Apprentice
Apprentice
User avatar
Posts: 248
Joined: Thu Jan 09, 2003 3:37 pm
Location: USA

  • Quote

Post by cybrjackle » Mon Feb 19, 2007 6:26 am

I should mention, s2ram ROCKS!

First time and it worked!
Top
[UK]Superdude
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 149
Joined: Mon Jul 22, 2002 10:34 am
Location: Adelaide, Australia

  • Quote

Post by [UK]Superdude » Thu Jul 26, 2007 12:40 pm

Agreed! I'm surprised it has not been included in gentoo in some way or another. From the bug report it looks like a personality clash rather than anything technical. Grabbing it from sourceforge and make etc works out of the box surely an ebuild can cope with this.
Top
baeksu
l33t
l33t
User avatar
Posts: 609
Joined: Sun Sep 26, 2004 11:03 am
Location: Seoul, Korea

  • Quote

Post by baeksu » Fri Jul 27, 2007 6:06 am

i'd been using this since March. Back then the ebuild didn't work for me, so I built it by hand. Worked perfectly with powersaved, both s2disk and s2ram.

I recently bought a new PC, and I'm trying to configure the suspend again.

From what I remember, s2disk requires a special initrd for resuming, and the ebuild does not seem to do that. Is anyone using s2disk from this package, and if so, how did you do it?

[edit:] Also, anyone tried splashy? This packages is supposed to support that to give you some eye candy during suspend/resume.

[edit2:] s2ram is not working for me (machine powers off), but I managed to get s2disk (hibernation) to work. I'll try to get splashy working next week.
Gnome:
1. A legendary being.
2. A never ending quest to make unix friendly to people who don't want unix and excruciating for those that do.
Top
baeksu
l33t
l33t
User avatar
Posts: 609
Joined: Sun Sep 26, 2004 11:03 am
Location: Seoul, Korea

  • Quote

Post by baeksu » Wed Aug 08, 2007 1:54 pm

Ok, I got s2ram and s2disk both working now. This package is great! :D

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.
Gnome:
1. A legendary being.
2. A never ending quest to make unix friendly to people who don't want unix and excruciating for those that do.
Top
deno
Guru
Guru
User avatar
Posts: 411
Joined: Wed Sep 13, 2006 4:23 pm

  • Quote

Post by deno » Fri Aug 10, 2007 9:35 pm

baeksu wrote:Ok, I got s2ram and s2disk both working now. This package is great! :D

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.

Well, I am. suspend2 doesn't work very well here.
Top
Phlogiston
Veteran
Veteran
User avatar
Posts: 1925
Joined: Tue Jan 27, 2004 12:05 pm
Location: Europe, Swizerland

  • Quote

Post by Phlogiston » Sun Sep 02, 2007 11:52 pm

@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.
Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, s2disk/ram, fingerprint sensor
Top
baeksu
l33t
l33t
User avatar
Posts: 609
Joined: Sun Sep 26, 2004 11:03 am
Location: Seoul, Korea

  • Quote

Post by baeksu » Tue Sep 04, 2007 3:56 am

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.
How do you launch s2ram? For me, it did really just work, I even managed to wake up the machine through usb mouse.

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.
Gnome:
1. A legendary being.
2. A never ending quest to make unix friendly to people who don't want unix and excruciating for those that do.
Top
Phlogiston
Veteran
Veteran
User avatar
Posts: 1925
Joined: Tue Jan 27, 2004 12:05 pm
Location: Europe, Swizerland

  • Quote

Post by Phlogiston » Tue Sep 04, 2007 9:37 am

baeksu wrote:
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.
How do you launch s2ram? For me, it did really just work, I even managed to wake up the machine through usb mouse.
The problem here is that it does not work with fglrx loaded. :(

s2disk works, but only when compiled without compression support. But its slower than suspend2 here, so I dropped it.

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.
The documentation indeed sucks. I mean not even the settings in the suspend.conf file are documented.

Here the 0.5 did not compile. Maybe I'll check out 0.7 too.
Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, s2disk/ram, fingerprint sensor
Top
baeksu
l33t
l33t
User avatar
Posts: 609
Joined: Sun Sep 26, 2004 11:03 am
Location: Seoul, Korea

  • Quote

Post by baeksu » Wed Sep 05, 2007 10:18 am

Ok, so the documentation on the tarball has been included. More interestingly, there's new ebuilds in bugs.gentoo.org, though I haven't tried them yet.

It seems there's work being done on making this more accessible to Gentoo users as well (with fbsplash support coming soon hopefully).

@Phlogiston: compression is moving from liblzf to lzo, maybe that's why you couldn't compile it with compression support?

Personally, I'm still in suspend-0.5, but as soon as fbsplash is added, I'm going to try building with ebuilds from the bug. Hopefully that'll be soon.
Gnome:
1. A legendary being.
2. A never ending quest to make unix friendly to people who don't want unix and excruciating for those that do.
Top
Post Reply

13 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic