Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Failing to restore from hibernation properly
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
muke
n00b
n00b


Joined: 17 Feb 2019
Posts: 51

PostPosted: Mon Nov 09, 2020 5:41 pm    Post subject: Failing to restore from hibernation properly Reply with quote

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
View user's profile Send private message
halcon
l33t
l33t


Joined: 15 Dec 2019
Posts: 701

PostPosted: Mon Nov 09, 2020 10:45 pm    Post subject: Re: Failing to restore from hibernation properly Reply with quote

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
View user's profile Send private message
muke
n00b
n00b


Joined: 17 Feb 2019
Posts: 51

PostPosted: Mon Nov 09, 2020 11:26 pm    Post subject: Reply with quote

By kernel logs, do you mean dmesg? How can I get this for when the system crashes?
Back to top
View user's profile Send private message
halcon
l33t
l33t


Joined: 15 Dec 2019
Posts: 701

PostPosted: Mon Nov 09, 2020 11:47 pm    Post subject: Reply with quote

muke wrote:
By kernel logs, do you mean dmesg? How can I get this for when the system crashes?

No, I mean system logs from "kernel" facility.
https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Tools#System_logger
https://wiki.gentoo.org/wiki/Security_Handbook/Logging
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23701

PostPosted: Tue Nov 10, 2020 2:04 am    Post subject: Reply with quote

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
View user's profile Send private message
muke
n00b
n00b


Joined: 17 Feb 2019
Posts: 51

PostPosted: Thu Nov 12, 2020 1:58 am    Post subject: Reply with quote

halcon wrote:
muke wrote:
By kernel logs, do you mean dmesg? How can I get this for when the system crashes?

No, I mean system logs from "kernel" facility.
https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Tools#System_logger
https://wiki.gentoo.org/wiki/Security_Handbook/Logging


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
View user's profile Send private message
halcon
l33t
l33t


Joined: 15 Dec 2019
Posts: 701

PostPosted: Thu Nov 12, 2020 2:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
muke
n00b
n00b


Joined: 17 Feb 2019
Posts: 51

PostPosted: Thu Nov 12, 2020 7:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
halcon
l33t
l33t


Joined: 15 Dec 2019
Posts: 701

PostPosted: Fri Nov 13, 2020 2:49 pm    Post subject: Reply with quote

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
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