Dell Inspiron 7370 running Crunchbang++ (Deb 11.1 upgraded) with Openbox
After about 5 minutes of no keyboard activity my system goes into suspend or hibernate (can't tell which) and I cannot find any means to restore it. I have to hard shut down and boot again.
However, if I select Exit from the OB menu I get what I believe is the lightdm shut down window, from which I can select the "Suspend" option. I am then able to restore by touching any key which brings up a login prompt from XScreenSaver and all is well.
Debian Wiki advises this means to disable suspend and hiberate which I have implemented - to no effect:
"A modern alternative approach for disabling suspend and hibernation is to create /etc/systemd/sleep.conf.d/nosuspend.conf as
[Sleep]
AllowSuspend=no
AllowHibernation=no
AllowSuspendThenHibernate=no
AllowHybridSleep=no
The above technique works on Debian 10 Buster and newer. See systemd-sleep.conf(5) for details."
Other sources found on the internet suggested these two possible solutions which I have tried - to no effect:
Code:
ken@cbpp:~$ sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
[sudo] password for ken:
ken@cbpp:~$ sudo systemctl status sleep.target suspend.target hibernate.target hybrid-sleep.target
● sleep.target
Loaded: masked (Reason: Unit sleep.target is masked.)
Active: inactive (dead)
● suspend.target
Loaded: masked (Reason: Unit suspend.target is masked.)
Active: inactive (dead)
● hibernate.target
Loaded: masked (Reason: Unit hibernate.target is masked.)
Active: inactive (dead)
● hybrid-sleep.target
Loaded: masked (Reason: Unit hybrid-sleep.target is masked.)
Active: inactive (dead)
ken@cbpp:~$
Someone suggested editing /etc/systemd/sleep.conf This is what mine now looks like. No effect after rebooting
[[Sleep]
AllowSuspend=no
AllowHibernation=no
AllowSuspendThenHibernate=no
AllowHybridSleep=no
#SuspendMode=
#SuspendState=mem standby freeze
#HibernateMode=platform shutdown
#HibernateState=disk
#HybridSleepMode=suspend platform shutdown
#HybridSleepState=disk
#HibernateDelaySec=180min/pre]
My system power manager is set to "never" suspend:
No solution with any of these. Suggestions?