Skip to main content
Topic: why did my hibernate fail out of nowhere? (Read 845 times) previous topic - next topic
0 Members and 4 Guests are viewing this topic.

why did my hibernate fail out of nowhere?

I have artix-plasma-openrc version.

I don't really know how to troubleshoot this, so sorry if there's lack of info.

Essentially, I set it to hibernate, and the system looks like it hibernates, but then it reboots like normal.  All I did was swap my /home/ drive for a larger one, leaving / and swap alone.  Although, I think I did have to do something with grub, but I forget what I did, if I did anything at all.  I know I had to dd the /home drive because winblows was on it.  The /home drive is a separate hard drive from /.

pm-hibernate isn't available, and pacman -S pm-tools isn't available either.

Code: [Select]
swapon -s
Filename                                Type            Size    Used    Priority
/dev/sda3                               partition       12801020        0       -2

I'm coming from Slackware so I only know lilo.  I'd read how to set up grub, but my book on how to do it is in storage and i can't find it.  The guide at archlinux.org is pretty useless since it just says to add resume=UUID=blahblah, but where am I supposed to add that?  I tried a few logical places, but logic gives way to empiricism everyday of the week, and I can't find any empirical instructions how to do it.

tl;dr: How to I enable hibernate?  Where do I add resume=UUID=blahblah to kernel parameters in grub?  Is there another angle I'm missing?

Re: why did my hibernate fail out of nowhere?

Reply #1
echo "suspend" > /sys/power/disk
echo "disk" > /sys/power/state

that seems to 'sleep' the computer ie: leave RAM on, but turn the computer off.

Re: why did my hibernate fail out of nowhere?

Reply #2
After googling:

Code: [Select]
blkid
├─sda3        8:3    0  12.2G  0 part [SWAP]
echo 8:3 > /sys/power/resume

And it hibernates.  although, you're supposed to put some number in /sys/power/resume_offset, but I couldn't figure out how to divine the number so I didn't bother.

Although, I'm not 100% sure this is what solved it, as I fidgeted with the UUID in a few files, but I don't remember exactly what I did.


Re: why did my hibernate fail out of nowhere?

Reply #4
Yes.  Although, filefrag -v /swapfile doesn't work because the swap file isn't mounted anywhere.  I don't understand why it was done like that.

Now it seems to be broken again, and the contents of /sys/power/resume is 8:3 and the correct resume=UUID=blahblah is set in /etc/default/grub.  But sometimes it reboots and it has saved everything like it had hibernated, sometimes it just pauses forever at a blank screen(but doesn't lock up, I just go back to the normal desktop somehow.

Sleep works fine.

Re: why did my hibernate fail out of nowhere?

Reply #5
Hung resume state usually is caused by binary GPU^WNvidia blobs. The troubleshooting section at the Arch wiki is your best bet.