JuiceBlog A TFC - Internet - Debian - Juice blog. Formerly named the most famous orange juice of the world, ever!
Posts with the tag xrandr:

Multiple monitors without EDID on Linux

I’ve been wanting to make this work for a long time, but the two times I tried to configure it I gave up because I just didn’t know what else to do. This time I sat down and didn’t get up until it worked. I worked on the xorg.conf several times before, so I know my way around it. It was still quite a puzzle for me to get working. If you want to know how to configure a display without EDID on Linux, click here. First I tried using the X way. Multiple Monitors with a Screen each, using one Device, put together in a ServerLayout.

Auto-detect monitor unplug

I know of no clean way to detect an unplugged screen, so I figured I’d force re-detection with a cron job. To detect the monitors I’m using disper, you can get it from the Wheezy and Sid repositories. Let’s open up our crontab. crontab -e If you’re doing this for other users too, you may use sudo crontab -eu username Now add a new entry: 0-59 * * * * DISPLAY=:0.0 disper -ld auto > /dev/null This will automatically detect (-d auto) and list (-l) all monitors every minute. Of course, you can also use xrandr: 0-59 * * * * DISPLAY=:0.