|
Written by Bart Dorlandt
|
|
Friday, 10 November 2006 12:17 |
|
Below is the config I use on my Dell Latitude D610. My resolution on the default screen is 1400x1050 (Don't forget to use the 915resolution package). The other monitor is a TFT screen Iiyama (Prolite E431S). I have this one running with a resolution of 1280x1024.
Single Monitor Config
Dual Monitor Config
Presentation800 Monitor Config
Presentation1024 Monitor Config
Presentation1280 Monitor Config
Selection script
#!/bin/sh
rm -f /etc/X11/xorg.conf
TEMP=`mktemp choose.XXXXXXX`
dialog --backtitle "Numbers of monitors connected?" \
--radiolist "Use X configuration:" 10 60 5 \
"Single" "single monitor" ON \
"Dual" "Dual monitor" off \
"Presentatie1280" "laptop + beamer 1280" off \
"Presentatie1024" "laptop + beamer 1024" off \
"Presentatie800" "laptop + beamer 800" off 2>$TEMP
retval=$?
case $retval in
0)
echo "`cat $TEMP` chosen."
if [ `cat $TEMP` = "Dual" ]; then
ln -s /etc/X11/xorg.conf.dual /etc/X11/xorg.conf
else
if [ `cat $TEMP` = "Presentatie1280" ]; then
ln -s /etc/X11/xorg.conf.presentatie1280 /etc/X11/xorg.conf
/usr/sbin/915resolution mode 58 1280 1024
else
if [ `cat $TEMP` = "Presentatie1024" ]; then
ln -s /etc/X11/xorg.conf.presentatie1024 /etc/X11/xorg.conf
/usr/sbin/915resolution mode 45 1024 768
else
if [ `cat $TEMP` = "Presentatie800" ]; then
ln -s /etc/X11/xorg.conf.presentatie800 /etc/X11/xorg.conf
/usr/sbin/915resolution mode 43 800 600
else
ln -s /etc/X11/xorg.conf.single /etc/X11/xorg.conf
fi
fi
fi
fi;;
1)
echo "Cancel pressed. Using Single Monitor"
ln -s /etc/X11/xorg.conf.single /etc/X11/xorg.conf;;
255)
echo "ESC pressed. Using Single Monitor"
ln -s /etc/X11/xorg.conf.single /etc/X11/xorg.conf;;
esac
rm $TEMP
|
|
Last Updated on Tuesday, 17 July 2007 14:30 |