dual head config problem
Rapael Morcha
raphael.morcha at gmail.com
Fri Nov 16 00:47:11 UTC 2007
On Thu, Nov 15, 2007 at 10:26:57PM +0000, pkaplan1 at comcast.net wrote:
> I'm running Gutsy on a Thinkpad T43 (intel 915 video card and 1024x768 panel) and a Sony X-95 external monitor (1280x1024) with the xorg.conf file shown at the end of this message.
>
> When X first starts, a 1280x1024 desktop appears on the external monitor and a mirrored 1024x768 desktop appears both on the internal monitor and placed on top and at the upper right of the external monitor. The output of xrandr is:
>
> --------------------------
> $ xrandr
> Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 2304 x 1024
> VGA connected 1280x1024+0+0 (normal left inverted right) 376mm x 301mm
> 1280x1024 60.0*+ 75.0 59.9
> 1280x960 59.9
> 1024x768 75.1 70.1 60.0
> 800x600 72.2 75.0 60.3
> 640x480 75.0 72.8 60.0
> 720x400 70.1
> LVDS connected 1024x768+0+0 (normal left inverted right) 0mm x 0mm
> 1024x768 57.6*+ 85.0 75.0 70.1 60.0
> 832x624 74.6
> 800x600 85.1 72.2 75.0 60.3 56.2
> 640x480 85.0 72.8 75.0 59.9
> 720x400 85.0
> 640x400 85.1
> 640x350 85.1
> TV disconnected (normal left inverted right)
> $
> ----------------------------------
>
> Even though I have the line:
>
> Option "LeftOf" "Monitor-LVDS"
See below.
>
> in the monitor stanza for the external monitor (see below), I have to manually execute:
>
> xrandr --output VGA --left-of LVDS
>
> to get a full 2304x1024 virtual desktop with the external monitor to the left of the internal monitor.
>
> How can I hard code this into the xorg.conf file so I don't have to execute everytime I boot the machine with the external monitor?
See below.
> TIA
> Paul
>
> xorg.conf:
> --------------------------------------
> Section "Files"
> EndSection
>
> Section "InputDevice"
> Identifier "Generic Keyboard"
> Driver "kbd"
> Option "CoreKeyboard"
> Option "XkbRules" "xorg"
> Option "XkbModel" "pc105"
> Option "XkbLayout" "us"
> EndSection
>
> Section "InputDevice"
> Identifier "Configured Mouse"
> Driver "mouse"
> Option "CorePointer"
> Option "Device" "/dev/input/mice"
> Option "Protocol" "ImPS/2"
> Option "ZAxisMapping" "4 5"
> Option "Emulate3Buttons" "true"
> EndSection
>
> Section "InputDevice"
> Identifier "Synaptics Touchpad"
> Driver "synaptics"
> Option "SendCoreEvents" "true"
> Option "Device" "/dev/psaux"
> Option "Protocol" "auto-dev"
> Option "HorizEdgeScroll" "0"
> EndSection
>
> Section "Device"
> Identifier "Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller"
> Driver "intel"
> Option "Monitor-LVDS"
> Option "Monitor-VGA"
> EndSection
You need another Device section for another display.
Something like this -
Section "Device"
Identifier "0"
Driver "nvidia"
BusID "PCI:0:1:0"
VideoRam 16384
Option "VBERestore" "true"
Option "UseFBDev" "true"
Option "MonitorLayout" "CRT,LFP"
Screen 0
EndSection
Section "Device"
Identifier "1"
Driver "nvidia"
BusID "PCI:0:1:0"
VideoRam 16384
Option "UseFBDev" "true"
Option "Display" "CRT"
Option "MonitorLayout" "CRT,LFP" # put crt on pipe A
Screen 1
EndSection
>
> Section "Monitor"
> Identifier "Monitor-LVDS"
> EndSection
>
> Section "Monitor"
> Identifier "Monitor-VGA"
> Option "LeftOf" "Monitor-LVDS"
Try getting rid of the previous line.
Something like this -
Section "Monitor"
Identifier "LCD"
Option "DPMS"
HorizSync 30.0-71.0
VertRefresh 50-160
EndSection
Section "Monitor"
Identifier "Second display"
VendorName "Sony"
ModelName "211sxp"
Option "DPMS"
HorizSync 30.0-70.0
VertRefresh 50-160
EndSection
> EndSection
>
> Section "Screen"
> Identifier "Default Screen"
> Device "Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller"
> Monitor "Monitor-LVDS"
> DefaultDepth 24
> SubSection "Display"
> Depth 24
> Virtual 2304 1024
> EndSubSection
> EndSection
Where's your another Screen section?
Add something like this -
Section "Screen"
Identifier "External Display"
Device "1"
Monitor "Sony"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x800"
EndSubSection
EndSection
> Section "ServerLayout"
> Identifier "Default Layout"
> Screen "Default Screen"
> InputDevice "Generic Keyboard"
> InputDevice "Configured Mouse"
> EndSection
> --------------------------------------
Change your ServerLayout to something like this -
Section "ServerLayout"
Identifier "Dual Head Layout"
Screen 0 "Local LCD"
# comment out the next line to stop using two monitors,
Screen 1 "External Display" LeftOf "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
EndSection
Section "ServerFlags"
# comment out next line to stop using dual-head
Option "Xinerama" "true"
EndSection
HTH
--
Cheers,
Raphael.
More information about the ubuntu-users
mailing list