Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Making suspend-to-disk work
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
Punchcutter
Guru
Guru


Joined: 11 Feb 2007
Posts: 363

PostPosted: Sun Mar 04, 2007 10:47 pm    Post subject: [SOLVED] Making suspend-to-disk work Reply with quote

Hi,

I'm a newcomer to Gentoo, but liking it an awful lot so far.

Trying to make suspend-to-disk work on my Thinkpad 600X (PIII). To make a long story short, I found the HOWTO on the Gentoo Wiki, and started following that, but it seems that the recommended method is to get a whole new set of kernel sources (suspend2-sources) and build a new kernel out of that. That's fine, but I spent a good amount of time configuring my first kernel, and it seems that I'm gonna have to start all over again configuring this new kernel. What a pain :roll:

Is there any easy way to bring over the configs from my other kernel to use as a starting point for configuring these new sources? Or am I missing something more basic, and going in entirely the wrong direction with this?

Oh, I should mention: after just emerging a bunch of stuff that seemed necessary, and turning on suspend in my current generic "gentoo-sources" kernel, if I try to suspend to disk, I get the following error:

Quote:
The kernel version "kernel-2.6.19-gentoo-r5" in /boot does not match the running kernel version "2.6.19-gentoo-r5". Resuming with this kernel will not work. If you know what you are doing, you can override this in /etc/sysconfig/powersave/sleep with the variable SUSPEND2DISK_IGNORE_KERNEL_MISMATCH=yes.


I've searched around these forums, and out on google, but haven't found anything very useful.

Any help much appreciated.

Dave


Last edited by Punchcutter on Wed Mar 07, 2007 5:02 am; edited 1 time in total
Back to top
View user's profile Send private message
tuber
Apprentice
Apprentice


Joined: 12 Nov 2004
Posts: 267

PostPosted: Mon Mar 05, 2007 5:59 am    Post subject: Reply with quote

The kernel configuration is in the .config file in the kernel source tree. So just copy it over to your new kernel source tree. For example,
Code:
cp /usr/src/linux-2.6.19-gentoo-r5/.config /usr/src/linux-2.6.16-suspend2-r8
As for your kernel error message, did you reboot with the new kernel before trying to suspend the machine?
Back to top
View user's profile Send private message
Punchcutter
Guru
Guru


Joined: 11 Feb 2007
Posts: 363

PostPosted: Wed Mar 07, 2007 5:01 am    Post subject: [solved] Making suspend-to-disk work Reply with quote

Yes, I had rebooted with the new kernel....

But in the end I copied over my .config and built with the suspend2 kernel sources, and suspend seems to be working fine. Thanks!

Dave
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