Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Suspend2+Initrd = ..help..
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
lxxb
n00b
n00b


Joined: 12 Jul 2006
Posts: 19

PostPosted: Thu Mar 29, 2007 2:01 pm    Post subject: Suspend2+Initrd = ..help.. Reply with quote

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
View user's profile Send private message
cklimt
n00b
n00b


Joined: 10 Aug 2004
Posts: 39

PostPosted: Sat Mar 31, 2007 1:45 am    Post subject: Reply with quote

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
View user's profile Send private message
cklimt
n00b
n00b


Joined: 10 Aug 2004
Posts: 39

PostPosted: Sat Mar 31, 2007 6:29 am    Post subject: Reply with quote

Sorry for my terrible english :o
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
View user's profile Send private message
lxxb
n00b
n00b


Joined: 12 Jul 2006
Posts: 19

PostPosted: Sat Mar 31, 2007 2:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum