Dva monitory na kartě ATI.
Do /etc/X11/Xsession.d/45custom_xrandr-settings:
EXTERNAL_OUTPUT="VGA-0"
INTERNAL_OUTPUT="DVI-0"
EXTERNAL_LOCATION="right"
case "$EXTERNAL_LOCATION" in
left|LEFT)
EXTERNAL_LOCATION="--left-of $INTERNAL_OUTPUT"
;;
right|RIGHT)
EXTERNAL_LOCATION="--right-of $INTERNAL_OUTPUT"
;;
top|TOP|above|ABOVE)
EXTERNAL_LOCATION="--above $INTERNAL_OUTPUT"
;;
bottom|BOTTOM|below|BELOW)
EXTERNAL_LOCATION="--below $INTERNAL_OUTPUT"
;;
*)
EXTERNAL_LOCATION="--left-of $INTERNAL_OUTPUT"
;;
esac
xrandr |grep $EXTERNAL_OUTPUT | grep " connected "
if [ $? -eq 0 ]; then
xrandr --output $INTERNAL_OUTPUT --auto --output $EXTERNAL_OUTPUT --auto $EXTERNAL_LOCATION
else
xrandr --output $INTERNAL_OUTPUT --auto --output $EXTERNAL_OUTPUT --off
fi
Do /etc/X11/xorg.conf:
Section "Device"
Identifier "ATI Technologies, Inc. RV280 [Radeon 9200 SE]"
Driver "ati"
BusID "PCI:1:0:0"
Option "Monitor-VGA-0" "TV"
Option "Monitor-DVI-0" "Acer"
Option "Monitor-S-video" "Svideo"
Option "RROutputOrder" "DVI-0"
EndSection
Section "Monitor"
Identifier "Acer"
Option "PreferredMode" "1280x1024"
Option "DPMS"
EndSection
Section "Monitor"
Identifier "TV"
Option "PreferredMode" "1360x768"
DisplaySize 400 226
Option "DPMS"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "ATI Technologies, Inc. RV280 [Radeon 9200 SE]"
Monitor "Acer"
DefaultDepth 24
SubSection "Display"
Depth 24
Virtual 2640 1024
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection
Pár tipů k nastavení xorg.
0 komentářů k “Dva monitory”
Pošlete komentář