Archive for April, 2012

Temporarily switching X desktop resolution

Monday, April 16th, 2012 | Linux, Tech-savvy | No Comments

My experience with multi-monitor environments in Linux is that it can be quite tedious to set up. You may not agree and have no issues, lucky you!

Currently I have a 24″ screen as the “main” screen and right of it my laptop display, mainly for displaying logs and stuff. Anyway, every time I boot my system without the monitor everything seems fine, except my system still thinks I have the space of the non-existing monitor available. So sometimes apps open at their former location naturally being off-screen now … Alt-F7 to the rescue? Not really. I recently wanted to show some robot tests to a client that all opened and closed off-screen … well, at least they were all green 😉

Anyway, Google is my friend and told me about xrandr (the X resize, rotate and reflect extension)

Xrandr is used to set the size, orientation and/or reflection of the outputs for a screen. It can also set the screen size.

Well, every screen setup that comes with your favourite *nix flavour is able to change resolution, right? Still, xrandr became my weapon of choice because it does not touch your X config and it works on the fly, no need to restart your whole X session. Next time you fire up your system (or X respectively) everything is back to normal. Neat.

There’s even a little GUI available, just try sudo apt-get install lxrandr (developed for LXDE, works fine with GNOME 3 as well). I tried this with Mint 12 x86_64 GNOME 3. If you have similar issues and – maybe better – solutions, drop a comment. I heard a colleague of mine is using several X configs to choose from depending on the desired environment. From my perspective the whole screen setup / multi monitor / beamer handling is one thing that works a lot less painful in Windoze environments… *sigh*

Tags: , ,