Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Two ways to hibernate
Two ways to hibernate
The `sudo hibernate` command causes my PC to hang.
But in Gnome "Unlock Screen" dialog there is a hibernate button and this one does work.
How to use this hibernate functionality without locking the screen first?
But in Gnome "Unlock Screen" dialog there is a hibernate button and this one does work.
How to use this hibernate functionality without locking the screen first?
Re: Two ways to hibernate
Try `systemctl hibernate` or `pm-hibernate` from the pm-utils package.
As for auto-locking before hibernation, look in to your desktop environment power manager settings to see if there is any related options.
As for auto-locking before hibernation, look in to your desktop environment power manager settings to see if there is any related options.
Re: Two ways to hibernate
Neither `systemctl hibernate` nor `pm-hibernate` work:
The computer remains on. After forced reboot it starts a regular system boot, not awakening after hibernate.
The computer remains on. After forced reboot it starts a regular system boot, not awakening after hibernate.
Re: Two ways to hibernate
What about
Run this command as root.
Code: Select all
echo "disk" > /sys/power/state
Re: Two ways to hibernate
`echo "disk" > /sys/power/state` caused the monitor but not the computer itself to turn off. After forced reboot there was a normal boot not awakening from hibernation.
Re: Two ways to hibernate
it's possible that Gnome is not using hibernate, but rather suspend. If works then there maybe is something preventing hibernation. Do you have enough swap?
Code: Select all
sudo systemctl suspend
Re: Two ways to hibernate
Hm, it seems that I have enough swap to hibernate.
I wonder, why suspend does work, but hibernate doesn't.
Earlier I thought that the problem is with support of my video card, but as suspend works, it seems that the problem is in something other.
I wonder, why suspend does work, but hibernate doesn't.
Earlier I thought that the problem is with support of my video card, but as suspend works, it seems that the problem is in something other.
Re: Two ways to hibernate
Because suspend makes a compressed image of the system and stores it in RAM whereas hibernation does the same but stores it on the disk. The most likely reason that it is failing (as of now, given that you give so little information of the system) is that you have misconfigured the swap/disk somehow. But there could be other reasons. You should provide any information of the system and any error messages in logs.
Re: Two ways to hibernate
Currently:
Code: Select all
$ free
total used free shared buff/cache available
Mem: 4122592 1121944 1689924 94104 1310724 2517404
Swap: 3927888 0 3927888
Re: Two ways to hibernate
Are you sure this button does function as hibernate-to-disk, not suspend-to-RAM?porton wrote:But in Gnome "Unlock Screen" dialog there is a hibernate button and this one does work.
Also with pm-hibernate you can look into /var/log/pm-suspend.log (pm-hibernate.log?) for traces of error.
Re: Two ways to hibernate
I think, this button does suspend to RAM.Are you sure this button does function as hibernate-to-disk, not suspend-to-RAM?