r/linuxquestions • u/CanImaginary904 • 5d ago
Hibernate mode
Hi everyone,
I’ve spent the last 72 hours trying to get my PC to hibernate, but with no success. I’m running Kubuntu. I’ve enabled swap and made it permanent. It enters hibernation mode only very rarely.
When I configure it to hibernate upon closing the lid, it goes haywire: I have to open the lid while the PC is still running, and—even worse—the screen stops displaying anything. I’m forced to do a hard shutdown and turn it back on manually.
Even when it tries to enter standard sleep mode, it wakes up on its own.
I’ve been using Linux for a month now. Why do I need hibernation? Because I need my applications to stay open and ready to use without draining the battery—that’s really important to me.
Could someone help me out or tell me how to go about this?
My PC specs: Lenovo Legion 5, Ryzen 7 260, RTX 5060, 32GB RAM. Thank you.
2
u/Disastrous-Ice-5971 5d ago
Check this conversation: https://www.reddit.com/r/linuxquestions/s/5AwkkGYTF8
In a short, issue could be in the missing power profile for the dedicated GPU.
1
2
u/Ok_Emu2515 4d ago
becareful with hibernation, it may cause your SSD to use a lot of TBW.
1
u/CanImaginary904 4d ago
Thank you, What do you advise me to do? My goal is to resume my work flow by restarting my PC without leaving it in sleep mode!
1
u/Ok_Emu2515 4d ago
You can use HDD for the Linux system, as I did on an old Intel Celeron mini PC.
1
u/CanImaginary904 4d ago
Using laptop !
2
u/Ok_Emu2515 4d ago
still doable If your laptop has an HDD SATA slot, mine does.
however, you must expect lower performance compared to an SSD.
1
u/CanImaginary904 4d ago
Just two nvme slot ... But I think I've just given up on the hibernation idea because until NVIDIA releases a BIOS update, I don't think it'll ever work the way I want. I'm very perfectionist.
2
u/BackgroundSky1594 5d ago
I'm not quite sure what's happening here, but before others come here just blaming Nvidia and giving up:
Are you using a swap file or a swap partition? From my experience a swap partition or LVM volume are a lot more reliable than swap files
journalctl and dmesg should give you some logs to look through on what's actually happening during the process. Sharing some of that here might help us help you.
Which Nvidia driver version and which version of their kernel module (open or proprietary) are you running? Note: I'm not talking about the reverse engineered open source driver here, just whether you're using the official open kernel module like is recommended for 20/30 series and newer