You are not logged in.

#1 2018-07-05 21:15:51

Miladdarren
Member
Registered: 2018-06-30
Posts: 2

“xset dpms force off” also logout from desktop

Hello arch family, I'm new to linux
I'm using Arch Linux with Gnome as DE and lightdm as display manager.
I have a keyboard shortcut with the

xset dpms force off

command for turning off the laptop monitor.
When I execute this command display goes off but when I press any key it turns up to the lightdm login screen
I just want to turn off the screen not log out from the desktop.
here is

~/.xscreensaver

file:

newLoginCommand: light-locker-command -l
timeout: 0:10:00
fade: True
unfade: False
fadeSeconds: 0:00:03
fadeTicks: 20
dpmsEnabled: True
dpmsStandby: 0:10:10
dpmsSuspend: 0:30:00
dpmsOff: 4:00:00

How should I configure this file to do so?
Thanks

Offline

#2 2018-07-06 06:11:09

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,843

Re: “xset dpms force off” also logout from desktop

Check your journal, this is likely a bug in gnome or lightdm.
What could happen is that the display turns off, drops power, gets unregistered, you end up with effectively a headless system and something™ cannot deal with that and crashes.
This has nothing to do with xscreensaver (unless you really just wait a long time and the foced off is insignificant) and DPMS neither somehow causes a session termination.

Offline

Board footer

Powered by FluxBB