You are not logged in.
Pages: 1
Hello,
I've been using
xset dpms force off
to turn off the screen of my laptop. The problem is, I now have another monitor and I'd like my laptop's screen to shut off and not the other monitor's.
I've tried
set -display :0.0 dpms force off
but it still turns off both screens.
Is there any way to accomplish that? Even if it's not by using xset but something else?
Thank you
Offline
Just shut the lid...
Offline
or "man xrandr"
Online
Thanks for your answers,
However, I do not want to close the lid (it wouldn't work for me anyway because I got an acpi rule that tells the computer to sleep when the lid is closed.
And as for xrandr, I do not want to change the screen configuration. I want the screen to come back up as if nothing happened if It detects mouse movement on the screen.
Maybe, what I want to do is impossible. In that case, I would indeed need to reconfigure the setup with xrandr to have only the second monitor on... That'd be a hassle because, I have differents configuration on my WM if only one screen is enabled or the both of them.
Offline
`man xrandr` was probably meant to suggest you should read the man page not just use the tool in the way you've previously been aquianted. In particular, see --brightness.
EDIT: this wouldn't help with the goal of coming back on with mouse movement. But it'd be easy to toggle on and off without affecting how your WM perceives the root window size/layout. If you can configure your WM to do so, you could also react to mouse movement events to turn the brightness back up - or alternatively perhaps some wmctrl or xdotool script could do the same thing.
Last edited by Trilby (2017-11-21 20:58:50)
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
`man xrandr` was probably meant to suggest you should read the man page not just use the tool in the way you've previously been aquianted. In particular, see --brightness.
EDIT: this wouldn't help with the goal of coming back on with mouse movement. But it'd be easy to toggle on and off without affecting how your WM perceives the root window size/layout. If you can configure your WM to do so, you could also react to mouse movement events to turn the brightness back up - or alternatively perhaps some wmctrl or xdotool script could do the same thing.
Thank you!
Indeed of a simple xbacklight -set 0 (I thought it would affect both monitors but it affects only one actually).
I'll try to look into using wmctrl or xdotool, thanks for the suggestions
Offline
Pages: 1