Script to Auto-Enable External Display + FGLRX + Linux
I noticed a cool feature of MacOS that automatically enables an external monitor whenever it is connected, and expands the desktop to it. I figured that this had to be possible to do with Linux as well. I'm running Fedora Core 6 on my work laptop, and I built the following brain-dead script from some stuff I found online. This script is very specific to the FGLRX driver and requires the aticonfig utility. This should be able to be adapted pretty easily to other chipsets or video utilities. It currently only works as a script running as the user, but I'm trying to make this work as a startup service as well. Hopefully someone will find this useful: #!/bin/sh # autoEnable.sh is a braindead script to autoenable and disable # the external display and properly set the resolution for an # expanded desktop. # # This script is currently tied to aticonfig, but should be able # to be modified to work with other methods to query/(dis|en)able # the external monitor # CHECK_INTERVAL i