Created
January 2, 2013 20:35
-
-
Save cdarne/4437733 to your computer and use it in GitHub Desktop.
Automaticaly use the external display on boot for Ubuntu (12.10)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Put in /etc/X11/Xsession.d/45custom_randr-settings | |
EXTERNAL_OUTPUT="VGA1" | |
INTERNAL_OUTPUT="LVDS1" | |
xrandr |grep $EXTERNAL_OUTPUT | grep " connected " | |
if [ $? -eq 0 ]; then | |
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --auto | |
else | |
xrandr --output $INTERNAL_OUTPUT --auto --output $EXTERNAL_OUTPUT --off | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use it for proper external display configuration on my EeePC for XBMCbuntu.
Full credits to vbat99 (http://forum.xbmc.org/showthread.php?tid=93249)