Re: hybrid-sleep with Gnome

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/3/18 7:05 PM, Ed Greshko wrote:
On 10/4/18 5:18 AM, Samuel Sieb wrote:
My laptop sometimes doesn't turn back on after suspending, so I've decided to try
using hybrid-sleep instead.  I modified logind.conf to contain the following two
lines and restarted logind:
HandleSuspendKey=hybrid-sleep
HandlePowerKey=hybrid-sleep

What do you get for....

cat /sys/power/state

and

cat /sys/power/disk

# cat /sys/power/state
freeze mem disk
# cat /sys/power/disk
platform shutdown reboot [suspend] test_resume

Looking at https://www.kernel.org/doc/html/latest/admin-guide/pm/sleep-states.html
seems to suggest that "suspend" is actually the same as
hybrid-sleep.

hybrid-sleep is a combination of hibernation and suspend. It saves the state as if hibernating, but only goes into suspend mode. This allows it to resume almost as quickly as a suspend, but if something goes wrong, like the battery dying or resume failing, you can restart the laptop and it will resume from hibernation. It's a very safe mode.

From that document, you put "disk" in power/state which would normally be a hibernate, but if before that you put "suspend" in power/disk instead of the usual "shutdown", it will do the hybrid-sleep instead.

I have no problem with the hybrid-sleep, it works perfectly, but gsd is blocking logind from doing it and doesn't offer an option to do it itself. For now, I'm just manually running "systemctl hybrid-sleep" myself.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux