Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with hibernate
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
BrummieJim
l33t
l33t


Joined: 22 Jul 2005
Posts: 683

PostPosted: Sun Jun 17, 2012 9:09 pm    Post subject: Problems with hibernate Reply with quote

Hello,
I'm having problems with hibernate, but suspend works perfectly. On restart the computer says there's a suspend image on the swap partition, but deletes it. I'm using the 3.2.1-gentoo-r2 kernel and gnome3. How would I go about debugging this problem? If you need any more information, please ask, I'm just at a loss to know where to start.

Thanks,
James
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Mon Jun 18, 2012 2:16 pm    Post subject: Reply with quote

Can you post your kernel command line from your grub.conf?
Back to top
View user's profile Send private message
yks
n00b
n00b


Joined: 15 Oct 2012
Posts: 3

PostPosted: Mon Oct 15, 2012 10:55 am    Post subject: Reply with quote

I've got sort of the same problem.
The system hibernates and on resume the BIOS even prints: Resuming...
Then GRUB2 loads, the default kernel is loaded but it performs a full start instead of resuming.
My setup:
- Samsung laptop with IvyBridge, 4G RAM
- kernel 3.6.2 from gentoo-sources, with hibernation enabled but no default CONFIG_PM_STD_PARTITION set (this shouldn't be necessary?), no initramfs
- only kernel hibernation
- acpid, pm-utils
- swap partition is /dev/sda3, 6G
- GRUB2 with
Code:
resume=/dev/sda3
in the default kernel load command
- suspend to RAM works well and no problems ever occurred with resume
On boot, the kernel prints to the console that it found a resume signature in the swap but is deleting it. (This is approximate since this message doesn't appear in any logs.)

I'm actually new to Gentoo and to desktop usage of GNU/Linux, but with a long experience in server Unixes. I expect the solution is trivial but there is quite little information on kernel hibernation and pm-utils on the web. Of course, there is a possibility to install TuxOnIce or hibernate-scripts but I don't consider it yet because I assume the current setup is enough and should work.
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Mon Oct 15, 2012 12:52 pm    Post subject: Reply with quote

With recent kernels (nad the fact, that I'm using an external USB drive, from where I do boot) s2disk fails for me too. I had to use genkernel to create an initramfs, now s2disk (aka hibernate) works fine again.
Back to top
View user's profile Send private message
yks
n00b
n00b


Joined: 15 Oct 2012
Posts: 3

PostPosted: Mon Oct 15, 2012 2:02 pm    Post subject: Reply with quote

False alarm. It looks like I just forgot to apply grub2-install after adding the resume=... string to the GRUB2 config, or something like that. At least, it just worked a few minutes ago: the system did resume correctly.
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