You are not logged in.
Hello,
is it possible to replace the suspend function with suspend-then-hibernate?
I am using Gnome and it does not have an option for suspend-then-hibernate. There is only an option for suspend.
I have tried some configs in /etc/systemd/sleep.conf, which did not work:
[Sleep]
AllowSuspend=yes
AllowHibernate=yes
AllowSuspendThenHibernate=yes
SuspendMode=suspend-then-hibernate
HibernateDelaySec=1min
This gives me a blackscreen, when I try to wake up my laptop.
I have tried replacing the 4th line with these, but this also did not work:
suspend=suspend-then-hibernate
SuspendState=disk
Thank you for your help.
Last edited by lakamit (2020-07-26 00:43:28)
Offline
Maybe relevant info on the wiki:
https://wiki.archlinux.org/index.php/GNOME#Power
Outdated info I found...
It seems that GNOME overrides the systemd suspend behavior, causing your issue...
They attempted to make it work at this commit:
https://gitlab.gnome.org/GNOME/gnome-se … e8e6af61eb
But they reverted that change:
https://gitlab.gnome.org/GNOME/gnome-se … aed4492da2
This is outdated, I may be wrong...
Nope, they got stuck there:
https://gitlab.gnome.org/GNOME/gnome-se … -manager.c
https://gitlab.gnome.org/GNOME/gnome-se … -manager.c
They still haven’t done anything about it yet...
You may need to look for alternatives or use systemctl directly if the wiki does not cover that...
Last edited by GaKu999 (2020-07-25 23:58:38)
Offline
Thank you.
Suspend is not so important for me.
I only need an option to hibernate automatically after a time of inactivity.
Offline
This issue is similar to this 1 year old one:
https://bbs.archlinux.org/viewtopic.php?id=243536
There’s also a talk on the wiki about this:
https://wiki.archlinux.org/index.php/Ta … _hibernate
I recommend reverting your changes and then proceed to read and test the recommendations until you find the one you need...
EDIT: why gnome why....
The more I read the more hopeless it looks...
I have found no successful attempt at this!
Last edited by GaKu999 (2020-07-26 00:28:06)
Offline
I have found a solution:
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type hibernate
https://askubuntu.com/questions/651414/ … -5-minutes
Last edited by lakamit (2020-07-26 00:45:15)
Offline