Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 192814 - sys-power/suspend keywords request
Summary: sys-power/suspend keywords request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Alon Bar-Lev (RETIRED)
URL:
Whiteboard:
Keywords: KEYWORDREQ
Depends on:
Blocks:
 
Reported: 2007-09-17 13:29 UTC by Alon Bar-Lev (RETIRED)
Modified: 2007-12-30 18:51 UTC (History)
1 user (show)

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


Attachments
config.log as requested (config.log,33.29 KB, text/plain)
2007-11-14 19:42 UTC, Brent Baude (RETIRED)
Details
suspend-0.9_pre20071109-ppc64.patch (suspend-0.9_pre20071109-ppc64.patch,1.47 KB, text/plain)
2007-11-14 20:11 UTC, Alon Bar-Lev (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alon Bar-Lev (RETIRED) gentoo-dev 2007-09-17 13:29:49 UTC
Hello,

amd64,
Please add keyword also the dependency to dev-libs/libx86

Test scenario:
1. Compile your kernel with software suspend.
2. Merge this package.
3. Update /etc/suspend.conf and set resume device to your swap partition (If you don't use raw partition, please don't check this package, as you need more time to figure out how to do this).
4. Follow instructions at bug#156445 to build initramfs with suspend binary and modified linuxrc.
5. Merge hibernate-script
6. As root:
# hibernate
7. Power on your computer an see if it resumes.

Good luck!
Comment 1 Alon Bar-Lev (RETIRED) gentoo-dev 2007-09-28 17:34:34 UTC
amd64, someone must been using this... :)
Comment 2 Pacho Ramos gentoo-dev 2007-10-10 18:49:03 UTC
sys-power/suspend has a dep on dev-libs/libx86 that fails to build with multilib-strict with the following error:
>>> Install libx86-0.99 into /var/tmp/portage/dev-libs/libx86-0.99/image/
>>> category dev-libs
install -D libx86.so.1
/var/tmp/portage/dev-libs/libx86-0.99/image//usr/lib/libx86.so.1
install -D libx86.a
//var/tmp/portage/dev-libs/libx86-0.99/image//usr/lib/libx86.a
ln -sf libx86.so.1
/var/tmp/portage/dev-libs/libx86-0.99/image//usr/lib/libx86.so
install -D lrmi.h
//var/tmp/portage/dev-libs/libx86-0.99/image//usr/include/libx86.h
>>> Completed installing libx86-0.99 into
>>> /var/tmp/portage/dev-libs/libx86-0.99/image/

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment
   usr/lib/libx86.so.1
   usr/lib/libx86.a
removing executable bit: usr/lib/libx86.a
Files matching a file type that is not allowed:
   usr/lib/libx86.so.1
 *
 * ERROR: dev-libs/libx86-0.99 failed.
 * Call stack:
 *   misc-functions.sh, line 566:   Called install_qa_check
 *   misc-functions.sh, line 342:   Called die
 *
 * multilib-strict check failed!
 * 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/dev-libs/libx86-0.99/temp/build.log'.
 *
!!! install_qa_check failed; exiting.
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2007-10-10 19:10:30 UTC
(In reply to comment #2)
> sys-power/suspend has a dep on dev-libs/libx86 that fails to build with
> multilib-strict with the following error:

Thanks!
Fixed.
Comment 4 Pacho Ramos gentoo-dev 2007-10-10 19:35:58 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > sys-power/suspend has a dep on dev-libs/libx86 that fails to build with
> > multilib-strict with the following error:
> 
> Thanks!
> Fixed.
> 

I'll try tomorrow, as it's a bit late and I don't have time now :-/
Comment 5 Pacho Ramos gentoo-dev 2007-10-11 16:24:30 UTC
What should I do if I don't use genkernel? I have never used genkernel (only first time I compiled my gentoo kernel)

Comment 6 Alon Bar-Lev (RETIRED) gentoo-dev 2007-10-11 20:35:26 UTC
In order to use suspend you must be able to know how to create initramfs.

The best way to do so is using genkernel (bug#156445).

However, you can try to use the create-resume-initrd.sh script which comes in the suspend tarball, I never checked it with Gentoo but the following command should be used:

RESUME="/usr/lib/suspend/resume" \
CONFIG_FILE="/etc/suspend.conf" \
create-resume-initrd.sh

It will create /boot/resume-initrd for you.
Comment 7 Pacho Ramos gentoo-dev 2007-10-12 11:17:13 UTC
I get:
./create-resume-initrd.sh: line 38: [: argument expected

But don't worry, maybe other amd64 user could help as also suspend has never worked for me on this machine (suspend or suspend2)
Comment 8 Alon Bar-Lev (RETIRED) gentoo-dev 2007-10-12 16:59:59 UTC
RESUME="/usr/lib/suspend/resume" \
CONFIG_FILE="/etc/suspend.conf" \
create-resume-initrd.sh your_resume_device

Where your_resume_device should be your swap partition...
Comment 9 Pacho Ramos gentoo-dev 2007-10-12 17:36:01 UTC
(In reply to comment #8)
> RESUME="/usr/lib/suspend/resume" \
> CONFIG_FILE="/etc/suspend.conf" \
> create-resume-initrd.sh your_resume_device
> 
> Where your_resume_device should be your swap partition...
> 

OK, thanks, I run this and it created a /boot/resume-initrd file, but after hibernating, it didn't resume, it only boot like when system isn't halted properly

My grub.conf has:
title Gentoo Linux 2.6.23-gentoo
root (hd0,0)
kernel /boot/vmlinuz-2.6.23-gentoo root=/dev/sda1 vga=0x31B video=vesafb:mipal,ywrap,mtrr:3 oops=panic console=tty1
initrd /boot/resume-initrd

My /etc/suspend.conf has:
snapshot device = /dev/snapshot
resume device = /dev/sda2

/dev/sda2 is my swap partition
Comment 10 Alon Bar-Lev (RETIRED) gentoo-dev 2007-10-12 17:42:29 UTC
You should have gotten somekind of messages during resume to help you know why it did not resume.
Comment 11 Pacho Ramos gentoo-dev 2007-10-12 17:53:19 UTC
(In reply to comment #10)
> You should have gotten somekind of messages during resume to help you know why
> it did not resume.
> 

I have checked the dmesg but nothing :-/
Comment 12 Alon Bar-Lev (RETIRED) gentoo-dev 2007-10-12 17:59:35 UTC
It goes into stdout... You will see nothing in dmesg.
Comment 13 Pacho Ramos gentoo-dev 2007-10-12 18:12:52 UTC
(In reply to comment #12)
> It goes into stdout... You will see nothing in dmesg.
> 

Yes, but stout goes too fast for checking anything
Comment 14 Markus Rothe (RETIRED) gentoo-dev 2007-10-13 10:28:34 UTC
we (ppc64) will add our keywords once a user requests it.
Comment 15 Alon Bar-Lev (RETIRED) gentoo-dev 2007-11-14 18:38:11 UTC
ppc64: I rewrote and maintain upstream's build system... It will be good to know if it at least compiles successfully at your installation. Don't add keyword, just tell me if all seems to be OK.

Thanks!
Comment 16 Brent Baude (RETIRED) gentoo-dev 2007-11-14 19:28:38 UTC
it does not compile. in fact, it does not configure.

checking for _FILE_OFFSET_BITS value needed for large files... no
configure: error: Unsupported architecture
Comment 17 Alon Bar-Lev (RETIRED) gentoo-dev 2007-11-14 19:29:48 UTC
Thanks!
Can you please attach config.log?
Comment 18 Brent Baude (RETIRED) gentoo-dev 2007-11-14 19:42:19 UTC
Created attachment 135980 [details]
config.log as requested
Comment 19 Alon Bar-Lev (RETIRED) gentoo-dev 2007-11-14 20:01:17 UTC
Thanks!
Do you use cross-compile in order to check this, or this is a native?
Comment 20 Alon Bar-Lev (RETIRED) gentoo-dev 2007-11-14 20:11:35 UTC
Created attachment 135991 [details]
suspend-0.9_pre20071109-ppc64.patch

Can you please try the following patch?
Thanks!
Comment 21 Alon Bar-Lev (RETIRED) gentoo-dev 2007-12-04 06:47:31 UTC
ppc64: Can you please try to see if the patch at attachment#135991 [details] make it compile at your side? (Don't test, just compile). Thanks!
Comment 22 Markus Rothe (RETIRED) gentoo-dev 2007-12-05 09:50:11 UTC
whoops.. sorry, I'm late. yes, this compiles now on ppc64. I think we are out here now. Please readd if I'm wrong.
Comment 23 Matti Bickel (RETIRED) gentoo-dev 2007-12-30 18:51:22 UTC
compiles for ppc. I will add a keyword on user request.

FIXed.