Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-10-08 10:38:52

Xfcelan06
Member
Registered: 2021-09-26
Posts: 12

How to turn off screen with command line?

I use this command "xset dpms force off" but turn of screen and lock too.
I want to turn off screen whitout lock screen with command line, when move mouse turn on screen.
Thanks.

Offline

#2 2021-10-08 13:06:56

almahdi
Member
Registered: 2020-07-04
Posts: 125

Re: How to turn off screen with command line?

Depends on init system Xfce is on
In mine systemd use:
xset dpms force off
without lock at all (mouse move will turn it on)

Last edited by almahdi (2021-10-08 13:11:49)

Offline

#3 2021-10-08 16:20:38

Xfcelan06
Member
Registered: 2021-09-26
Posts: 12

Re: How to turn off screen with command line?

Is there a command line for black screen ?

Offline

#4 2021-10-08 18:44:14

alcornoqui
Member
Registered: 2014-07-28
Posts: 832

Re: How to turn off screen with command line?

I use that command too, in my case binded to a keyboard shortcut, and with a 1 second delay, namely:

sh -c "sleep 1; xset dpms force off"

I think your problem might be related to the Power Manager/Screen Lock settings. What do you use to lock the screen? Light Locker maybe?

I have it set to never lock the screen automatically, so I don't have that problem... look in Xfce Power Manager > Security and/or Light Locker Settings (or other screenlocker).

There's an interesting document in the Xfce Wiki on power display management that "describes the use-cases for user switching, session locking and power management. A describtion of these use-cases is given using xflock + xfpm + light-locker + lightdm. This page should help understand what is happening in which cases and what alternative there are to improve the situation."

Hope it helps smile

Offline

#5 2021-10-09 04:32:14

Xfcelan06
Member
Registered: 2021-09-26
Posts: 12

Re: How to turn off screen with command line?

@alcornoqui
Thank you very much for your help

Solved.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.009 seconds, 8 queries executed - Memory usage: 554.28 KiB (Peak: 585.04 KiB) ]