xrand in KDM's Xsetup
I have two monitors 19' (on my left) 24' (on the right)
Having configure in my xorg.conf a virtual area (3400,1900) i've managed to
find the xrand commands to adjust the dual mode to my like.
I tested the while logged in.
But to automate the procedure i put them in /etc/kde4/kdm/Xsetup :
#! /bin/sh
# Xsetup - run as root before the login dialog appears
#xconsole -geometry 480x130-0-0 -notify -verbose -fn fixed -exitOnFail -file
/dev/xconsole &
xrandr --output DFP2 --mode 1920x1200
xrandr --output CRT2 --mode 1360x768
xrandr --output CRT2 --left-of DFP2
xrandr --output CRT2 --pos 0x432
But after reboot (and whlle i get a hint by the position of the login screen -
elevated in the 19' screen) that perhaps they xrand sequence was executed when
i log in i get:
$ xrandr
Screen 0: minimum 320 x 200, current 3280 x 1200, maximum 3400 x 1200
DFP1 disconnected (normal left inverted right x axis y axis)
DFP2 connected 1920x1200+1360+0 (normal left inverted right x axis y axis)
519mm x 324mm
1920x1200 60.0*+
1920x1080 60.0
1600x1200 60.0
1680x1050 60.0
1400x1050 60.0
1280x1024 75.0
1440x900 75.0 59.9
1280x960 60.0
1280x800 60.0
1152x864 60.0
1280x768 60.0
1280x720 60.0
1024x768 75.0 70.1 60.0
800x600 72.2 75.0 60.3 56.2
640x480 75.0 72.8 67.0 59.9
DFP3 disconnected (normal left inverted right x axis y axis)
CRT1 disconnected (normal left inverted right x axis y axis)
CRT2 connected 1280x960+0+0 (normal left inverted right x axis y axis) 410mm x
230mm
1366x768 59.8 +
1280x1024 75.0 60.0
1280x960 75.0 60.0*
1368x768 75.0 75.0
1360x768 59.8
1280x768 75.0 60.0
1280x720 75.0 60.0
1024x768 75.0 70.1 60.0
800x600 72.2 75.0 60.3 56.2
640x480 75.0 72.8 67.0 59.9
Thus, i get resolution closed but not exactly what i wanted. and CRT2 left oF
DFP2 BUT the position are not what i wanted. Is there is an explation why the
same commands will not work from Xsetup ?
alex.
Reply to: