Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Hibernation problems...
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
Pawel_S
n00b
n00b


Joined: 22 May 2019
Posts: 4

PostPosted: Fri May 24, 2019 8:24 pm    Post subject: Hibernation problems... Reply with quote

Is it a reason why my laptop is not waking up from hibernation, because i didn't pointed my swap partition in kernel ?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15332

PostPosted: Sat May 25, 2019 12:36 am    Post subject: Reply with quote

Maybe. How did you configure hibernation? How did you configure resume? What happens at the point that the kernel should have resumed?
Back to top
View user's profile Send private message
argen
n00b
n00b


Joined: 26 Apr 2019
Posts: 34

PostPosted: Sat May 25, 2019 3:18 am    Post subject: Reply with quote

Perhaps. You can also pass resume=/dev/(partition) in the kernel cmdline or set up initramfs that echoes the partition to /sys/power/resume.
Back to top
View user's profile Send private message
Goverp
l33t
l33t


Joined: 07 Mar 2007
Posts: 842

PostPosted: Sat May 25, 2019 9:49 am    Post subject: Re: Hibernation problems... Reply with quote

Pawel_S wrote:
Is it a reason why my laptop is not waking up from hibernation, because i didn't pointed my swap partition in kernel ?

It may be a hardware issue. My HP laptop has an integrated AMD Radeon video chip , and its driver breaks hibernate. Or at least, broke it last time I checked; sometimes there's some small bit of configuration that can solve the problem, but I couldn't find anyone getting it to work last year, and have given up searching for a fix until I get some spare time and more enthusiasm!
_________________
Greybeard
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


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

PostPosted: Sat Jun 01, 2019 1:55 am    Post subject: Reply with quote

I've found that a lot of cases, software hibernation works pretty well because it doesn't seem to depend on ACPI. ACPI S3 suspend on the other hand is dicey.

When one says it "is not waking up from hibernation" what does this mean?

When a hibernate occurs, it should have marked your swap partition that a hibernation image exists there. However the kernel should boot up just as it does from a cold boot up until the point it checks for the hibernation image, and there it will do a state restore.

So... after a hibernate and the system drops to S5 (power off, no LEDs blinking), you turn the machine back on. It should
- Normal cold boot BIOS routines
- Normal bootloader load (make sure bootloader is pointing your kernel to the restore image)
- Normal kernel initialization...mostly...
- Kernel checks for restore image (if it is pointed to the swap data from bootloader)
- Kernel reads all memory blocks from swap and restores them to memory
- kernel jumps to the hibernate image.

Note if you use initramfs to load your disk drivers, this can get a bit tricky, but it should still work. In any case, this should not be dependent upon firmware, except perhaps video bios. You *should* be able to SSH into a restored hibernate machine for the most part whether or not the video got restored properly.

Would be nice to know where exactly the hibernation resume failed.
_________________
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
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