View previous topic :: View next topic |
Author |
Message |
Pawel_S n00b
Joined: 22 May 2019 Posts: 4
|
Posted: Fri May 24, 2019 8:24 pm Post subject: Hibernation problems... |
|
|
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 |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23066
|
Posted: Sat May 25, 2019 12:36 am Post subject: |
|
|
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 |
|
|
argen n00b
Joined: 26 Apr 2019 Posts: 35
|
Posted: Sat May 25, 2019 3:18 am Post subject: |
|
|
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 |
|
|
Goverp Advocate
Joined: 07 Mar 2007 Posts: 2202
|
Posted: Sat May 25, 2019 9:49 am Post subject: Re: Hibernation problems... |
|
|
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 |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9882 Location: almost Mile High in the USA
|
Posted: Sat Jun 01, 2019 1:55 am Post subject: |
|
|
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/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
|