Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Resume from hibernation doesn't 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
petan
n00b
n00b


Joined: 18 Jan 2016
Posts: 55

PostPosted: Tue Jan 19, 2016 2:36 pm    Post subject: Resume from hibernation doesn't work Reply with quote

Hi,

I successfully configured s2disk so that it hibernates just fine, but everytime I boot it doesn't even attempt to recover, it just perform normal boot.

I have real_resume=/dev/sda3 (my swap) in kernel parameters, which is only thing that genkernel's man page say about resume. Is there anything else I need to do about initrd so that it works?
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7073
Location: almost Mile High in the USA

PostPosted: Tue Jan 19, 2016 3:58 pm    Post subject: Reply with quote

Usually I use resume=xxxx regardless of initramfs or not, but my initramfs is custom...

I only have real_root=xxx and real_init=xyz (but once again this is custom.)

Oops: edit: I remember that I did hack my initramfs to handle resume, so it depends on the initramfs. I suspect I will have to try the genkernel initramfs someday...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
petan
n00b
n00b


Joined: 18 Jan 2016
Posts: 55

PostPosted: Tue Jan 19, 2016 4:07 pm    Post subject: Reply with quote

Here I found some information:
Code:

[    6.633776] PM: Starting manual resume from disk
[    6.633779] PM: Hibernation image partition 8:3 present
[    6.633780] PM: Looking for hibernation image.
[    6.637190] PM: Image not found (code -22)


I don't understand why is that, resume device is /dev/sda3 which is my only swap device. Is that a problem?
Back to top
View user's profile Send private message
petan
n00b
n00b


Joined: 18 Jan 2016
Posts: 55

PostPosted: Tue Jan 19, 2016 4:35 pm    Post subject: Reply with quote

I also tried to change resume partition to UUID in kernel boot params, but UUID changes every time I reboot, so I returned /dev/sda3 there
Back to top
View user's profile Send private message
petan
n00b
n00b


Joined: 18 Jan 2016
Posts: 55

PostPosted: Tue Jan 19, 2016 5:08 pm    Post subject: Reply with quote

resolved using dracut
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