Hello.
I would like know if it is possible to be able to close the lid/lock the screen without the computer going down into "sleep mode". I have tried to follow this guide
https://wiki.debian.org/Suspend
However, it seems to only be for earlier versions of debian. I have tried to modify the /etc/systemd/logind.conf file:
-----
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=ignore
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
#UserTasksMax=33%
-----
Am I missing something or have I done something wrong? I've tried to search the forums for a resolution to this. I am also kind of new to Debian so sorry if there is a thread regarding this issue.
BR.
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
Disable Suspend/Sleep/Hybernate Debian 9 stretch *Solved*
Disable Suspend/Sleep/Hybernate Debian 9 stretch *Solved*
Last edited by Derpbian on 2018-02-16 20:42, edited 1 time in total.
su
Re: Disable Suspend/Sleep/Hybernate Debian 9 stretch
Thank you very much!wizard10000 wrote:This is exactly the right syntax but the # in front of these two lines says that this is a comment and would be ignored by logind. Remove the # from these two lines and you should be golden.Code: Select all
#HandleLidSwitch=ignore #HandleLidSwitchDocked=ignore
Good luck -
su