Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So I'm using my linux desktop for many thing including a media center. It's a multiscreen setup with a lcd monitor and a TV. I'm looking for a way to disable just a single screen when I'm watching movies.
`xset dpms force on` does turn of both screens - maybe there is an option to disable just one?
Turning it back on is less simple, as there's no --on option. One way might be to log out, then back in, if logging out restarts X. xrandr --output HDMI-1 --auto will turn it back on, but not necessarily where you expect, which may result in it being a mirror of the other display. Something like xrandr --output HDMI-1 --auto --primary --left-of HDMI-2 should suffice. You'll probably want to set up hotkeys to run these as mini scripts, or set them up as aliases.
FWIW, I'm using arandr for this. Very simple, intuitive GUI frontend to xrandr.
It is also possible to define keyboard shortcuts that execute the appropriate xrandr commands.
The problem with the suggestions to just turn off the other monitors is that the virtual screen size is still expanded to them. So the windows, the mouse cursor, some games, login windows, etc, all tends to disappear in the extra turned-off monitors. At least, it does that on my computer. In Slackware's XFCE, I'm able to press 'Windows/Super-P' shortcut and choose the preferred monitor setup. I have a two monitors set up and I can turn on and off the second one this way.
If that shortcut doesn't works for you, try entering this in your terminal as a normal user. This is what the 'Windows/Super-P' shortcut in XFCE is mapped to.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.