Score:0

Ubuntu 20.04.3 LTS suspends despite my actions

ng flag

Every evening I lock my machine and when I come back the next morning it has been suspended. The only way to wake it is to do a power button kill and reboot. I have taken these steps to attempt to prevent suspesion.

$ 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)

I also uncommented some entries.

$ cat /etc/systemd/logind.conf
#  This file is part of systemd.

[Login]
HandleLidSwitch=ignore 
HandleLidSwitchDocked=ignore
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192

Any suggestions to what I might be missing?

guiverc avatar
cn flag
Have you told the desktop not to suspend? (https://manual.lubuntu.me/lts/3/3.2/3.2.12/power_management.html?highlight=suspend) as if you lock your screen, the desktop is still behind it & active as its logged in
pigfox avatar
ng flag
The suspends was set to off before I edited /etc/systemd/logind.conf Now that option does not exist.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.