View previous topic :: View next topic |
Author |
Message |
lxxb n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 12 Jul 2006 Posts: 19
|
Posted: Thu Mar 29, 2007 2:01 pm Post subject: Suspend2+Initrd = ..help.. |
|
|
I am trying install Suspend2 on my Laptop Thinkpad T60 and I really want to avoid 'corrupting my HD'.
Below is my grub.conf and the kernel is built with the command "genkernel all".
Quote: | title=Gentoo Linux 2.6.20-viper6 Suspend2
root (hd0,0)
kernel /kernel-genkernel-x86-2.6.20-viper6 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3 swap:/dev/sda2 doscsi video=vesafb:ywrap,mtrr,1024x768-32@70 vga=791 splash=verbose,theme:newtheme CONSOLE=/dev/tty1
initrd /initramfs-genkernel-x86-2.6.20-viper6
|
Admittedly, I know nothing about initrd (or maybe ).
The 'HOWTO Software Suspend v2' says that I need to simply add Code: | echo > /sys/power/suspend2/do_resume | to
/usr/share/genkernel/generic/linuxrc, but "exactly where and how is big question". The HOWTO also mentions a number of alternatives (with edits dating from 15 Dec 2005).
Googling the great gentoo forum I found https://forums.gentoo.org/viewtopic-t-505174-highlight-echo+sys+power+suspend2+doresume.html
that mentions "suspend2_resume" is a new approach for handling 'initrd' for the latest version of suspend2. However "suspend2_resume" is already included in /usr/share/genkernel/generic/linuxrc.
What do I do ?
Do I still need to include the "echo > /sys/power/suspend2/do_resume" mod?
Any ideas or suggestions are much appreciated. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cklimt n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 10 Aug 2004 Posts: 39
|
Posted: Sat Mar 31, 2007 1:45 am Post subject: |
|
|
Sorry man, I don't use genkernel for a long time, precisely when I switched to suspend2-sources, because in those times it could compile this kernel correctly.
To avoid this problem you could compile your kernel manually as I do since then. It is not that hard as it might sound. Check out this guide in the Gentoo-Wiki
http://gentoo-wiki.com/HOWTO_Compile_a_Kernel_Manually
Hope this helps
Julius _________________ "The aim of computing is insight not numbers" |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cklimt n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 10 Aug 2004 Posts: 39
|
Posted: Sat Mar 31, 2007 6:29 am Post subject: |
|
|
Sorry for my terrible english
My first phrase should have been written as:
Sorry man, I have not used genkernel for a long time, precisely when I switched to suspend2-sources, because in those times it could not compile this kernel correctly. _________________ "The aim of computing is insight not numbers" |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lxxb n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 12 Jul 2006 Posts: 19
|
Posted: Sat Mar 31, 2007 2:43 pm Post subject: |
|
|
The kernel I use is fine and I have no problem compiling the kernel with genkernel or any other procedure. Note the same suspend2 patch set is used in both of the kernel suspend-sources and viper6 kernels.
My problem is that I find the suspend2 HOWTO, unclear with regards to making changes for initrd.
Could you post the mods you made to linuxrc, with maybe a short description. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|