[BUG] Not able to log back in after restore from hibernation
Describe the bug The other day I sent my system into hibernation, 'cause I wanted to have some sleep. The system went into hibernation fine, but when I tried to restore it in the morning, the system started back up but hang on the lockscreen. I was unable to type in my password, or move my mouse, even trying to switch to another tty didn't succeed.
Prerequirements A system set up for hibernation, that is: having a swap partition (no swap file) greater or equal to the size of your system's total ram capacity.
Steps To Reproduce 0. Have a system set up for hibernation, as mentioned
- Click on the Power Menu
- Click on the Hibernate option
- Wait until the system is fully off, may take some 30 seconds
- Turn the system back on again via power switch
- Wait until booted up
- A hanged system
Steps 1 and 2 can also be done by opening a terminal and executing: systemctl hibernate.
Expected behavior
- Click on a hibernation option in a power menu
- The system firstly activates a screenlocker, waits until compleet, then executes the systemctl hibernate command.
- When powering on the system, being greeted by a lockscreen, which was restored from the hibernate-image.
- Entering in your password and volla, back into bizness.
Distribution (please complete the following information):
- Linux: 6.12.1-arch1-1
- EndeavourOS
- Hyprland: 0.45.2
- ml4w-hyprland: 2.9.7.0-1
Posible Fix Making sure that the screenlocker is fully active before executing the systemctl hibernate command.
Kind Regards, Feike D.
By the way, nice project, I would NOT have done the effort of setting up such a system my self, let alone made a system around it to make it distributable. Frankly, you are a distromaintainer. :-)
By the way, nice project, I would NOT have done the effort of setting up such a system my self, let alone made a system around it to make it distributable. Frankly, you are a distromaintainer. :-)
Thank you. This is how the project has evolved over the last months.
Just read about hibernation on Arch Linux. It is very individual and depends on the setup. I will remove Hibernation from the Power Menu with 2.9.7.1 and leave it on user side to implement it individually.
Great, thank you! There are indeed many moving parts to hibernation!
I can share you my inplanmentation
If you can tell me how to do a merge request, I can maybe contribute to your project
How does the Lock and Suspend work; 'cause that's the way the hibernation should work to.
Just read about hibernation on Arch Linux. It is very individual and depends on the setup. I will remove Hibernation from the Power Menu with 2.9.7.1 and leave it on user side to implement it individually.
If the user hasn't setup the hibernate, systemctl hibernate will return an error.
How does the Lock and Suspend work; 'cause that's the way the hibernation should work to.
https://github.com/mylinuxforwork/dotfiles/blob/main/share/dotfiles/.config/hypr/scripts/power.sh This is my implementation.
Just like my implementation:
suspend #!/bin/bash
swaylock -fFke & sleep 1 systemctl suspend
hibernate #!/bin/bash swaylock -fFke & sleep 1 systemctl hibernate
So I am not sure if it actually is a mylinuxforwork-problem, mayby this is a EndeavourOS-problem. How do I determine?
Because if I execute the standard command for this: systemctl hibernate, it should work!
How is it going with your project? Happy new year, btw
Hi, having this exact same issue here. EndevaourOS. using hibernate works but waiting on idle to hibernate with hyprland breaks the system.
Hi. Please see https://wiki.hyprland.org/Hypr-Ecosystem/hypridle/
Hypridle requires an individual configuration.
Just curious: did you add the functionality or did you think it is not needed/won't fix? (I'm not using hyprland anymore, use cosmic instead)