View previous topic :: View next topic |
Author |
Message |
muke n00b

Joined: 17 Feb 2019 Posts: 51
|
Posted: Mon Nov 09, 2020 5:41 pm Post subject: Failing to restore from hibernation properly |
|
|
I'm running Gentoo stable on my thinkpad x230 and have hibernation set up. It used to work fine, but one day it started restoring into a crashed environment where the screen is full of random colours and patterns (can post a picture if that helps) and I can't access a tty. I'm unsure on where to begin troubleshooting this. Does anybody have any ideas? Additional info is that I'm using full disk encryption of an LVM volume of which the swap space is a part of, and I'm building my initramfs with genkernel. I'm using a newer kernel version ( 5.8 ) but this problem has persisted for several kernel versions now. My boot loader is grub.
Thanks. |
|
Back to top |
|
 |
halcon l33t


Joined: 15 Dec 2019 Posts: 701
|
Posted: Mon Nov 09, 2020 10:45 pm Post subject: Re: Failing to restore from hibernation properly |
|
|
Hi Muke,
muke wrote: | I'm running Gentoo stable on my thinkpad x230 and have hibernation set up. It used to work fine, but one day it started restoring into a crashed environment where the screen is full of random colours and patterns (can post a picture if that helps) and I can't access a tty. I'm unsure on where to begin troubleshooting this. Does anybody have any ideas? Additional info is that I'm using full disk encryption of an LVM volume of which the swap space is a part of, and I'm building my initramfs with genkernel. I'm using a newer kernel version ( 5.8 ) but this problem has persisted for several kernel versions now. My boot loader is grub. |
Does the kernel log contain records for the moment of resuming? If yes, please post them. Or at least of hibernating.
Try to remember what changes to the system did you do before that "one day" when resuming started to fail. Look in root bash history, try to find the last record of successful resuming in rotated kernel logs. |
|
Back to top |
|
 |
muke n00b

Joined: 17 Feb 2019 Posts: 51
|
Posted: Mon Nov 09, 2020 11:26 pm Post subject: |
|
|
By kernel logs, do you mean dmesg? How can I get this for when the system crashes? |
|
Back to top |
|
 |
halcon l33t


Joined: 15 Dec 2019 Posts: 701
|
|
Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23701
|
Posted: Tue Nov 10, 2020 2:04 am Post subject: |
|
|
What graphics card do you use, and what drivers do you use for it? Do you recall if there was a specific kernel version that worked for you? |
|
Back to top |
|
 |
muke n00b

Joined: 17 Feb 2019 Posts: 51
|
Posted: Thu Nov 12, 2020 1:58 am Post subject: |
|
|
Ah ok, here's the relevant section from /var/log/syslog: https://dpaste.com/C4ZU23ZEX
I think this is everything including the failed hibernation restore attempt, it's up to the next occurrence of listing the linux command line options which I would assume was the next boot (which of course was all normal). If you'd like any more info please let me know.
Hu wrote: | What graphics card do you use, and what drivers do you use for it? Do you recall if there was a specific kernel version that worked for you? |
As I mentioned I have an x230, so I'm using the integrated graphics for the i7-3520M CPU with the appropriate Intel drivers. |
|
Back to top |
|
 |
halcon l33t


Joined: 15 Dec 2019 Posts: 701
|
Posted: Thu Nov 12, 2020 2:48 pm Post subject: |
|
|
muke wrote: | Ah ok, here's the relevant section from /var/log/syslog: https://dpaste.com/C4ZU23ZEX
I think this is everything including the failed hibernation restore attempt, it's up to the next occurrence of listing the linux command line options which I would assume was the next boot (which of course was all normal). If you'd like any more info please let me know. |
No records for resuming? Unfortunately, I don't have my laptop at hand now. And my laptop hasn't been resumed after hibernation for a long time (after suspending only) so I can make some mistake by memory. But AFAIR, when after hibernation, it starts to boot as if it was a usual booting but then founds a hibernation image and switches to it. So, maybe the logs of what you believe is a usual boot would be helpful too... |
|
Back to top |
|
 |
muke n00b

Joined: 17 Feb 2019 Posts: 51
|
Posted: Thu Nov 12, 2020 7:01 pm Post subject: |
|
|
halcon wrote: | muke wrote: | Ah ok, here's the relevant section from /var/log/syslog: https://dpaste.com/C4ZU23ZEX
I think this is everything including the failed hibernation restore attempt, it's up to the next occurrence of listing the linux command line options which I would assume was the next boot (which of course was all normal). If you'd like any more info please let me know. |
No records for resuming? Unfortunately, I don't have my laptop at hand now. And my laptop hasn't been resumed after hibernation for a long time (after suspending only) so I can make some mistake by memory. But AFAIR, when after hibernation, it starts to boot as if it was a usual booting but then founds a hibernation image and switches to it. So, maybe the logs of what you believe is a usual boot would be helpful too... |
Ah I didn't realize. Here are the logs including the next boot then: https://dpaste.com/A9DJT5J79 |
|
Back to top |
|
 |
halcon l33t


Joined: 15 Dec 2019 Posts: 701
|
Posted: Fri Nov 13, 2020 2:49 pm Post subject: |
|
|
Do you use genkernel for your initramfs? There is a bug in genkernel regarding hibernation (mentioned especially: with LUKS and without --resume-offset).
https://bugs.gentoo.org/156445#c50
https://forums.gentoo.org/viewtopic-p-7461806.html#7461806
Do you use `pm-hibernate`command for putting the machine to sleep?
Haven't you been able to recall which changes to the system you could have done before the hibernation broke? (another kernel, another initramfs etc) |
|
Back to top |
|
 |
|