You are not logged in.

#1 2020-07-25 23:12:32

lakamit
Member
Registered: 2020-04-07
Posts: 15

[SOLVED] Replace suspend with suspend-then-hibernate

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

#2 2020-07-25 23:31:41

GaKu999
Member
From: US/Eastern
Registered: 2020-06-21
Posts: 696

Re: [SOLVED] Replace suspend with suspend-then-hibernate

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)


My reposSome snippets

Heisenberg might have been here.

Offline

#3 2020-07-26 00:11:20

lakamit
Member
Registered: 2020-04-07
Posts: 15

Re: [SOLVED] Replace suspend with suspend-then-hibernate

Thank you.
Suspend is not so important for me.
I only need an option to hibernate automatically after a time of inactivity.

Offline

#4 2020-07-26 00:24:10

GaKu999
Member
From: US/Eastern
Registered: 2020-06-21
Posts: 696

Re: [SOLVED] Replace suspend with suspend-then-hibernate

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)


My reposSome snippets

Heisenberg might have been here.

Offline

#5 2020-07-26 00:43:12

lakamit
Member
Registered: 2020-04-07
Posts: 15

Re: [SOLVED] Replace suspend with suspend-then-hibernate

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

Board footer

Powered by FluxBB