Wednesday, October 29, 2008

A working xorg.conf for dual head monitor

  • Laptop: DELL vostro 1400 extended with bigger Dell monitor to the top.
  • On ubuntu 8.04.1, kernel 2.6.24-21-generic
  • Driver: 01:00.0 VGA compatible controller: nVidia Corporation GeForce 8400M GS (rev a1)

An issue I recently faced> When I upgraded the kernel from 2.6.24-19-generic to 2.6.24-21-generic, linux-restricted-modules also got upgraded (to 2.6.22-15 ).
But, it did not detect the settings properly. If you face the same issue, try removing and re-installing linux-restricted-modules-2.6.22-15-generic. That worked for me.

xorg.conf:
=========
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen" 0 0
InputDevice "Generic Keyboard" "CoreKeyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
EndSection

Section "Module"
Load "glx"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
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 "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Device"
Identifier "Configured Video Device"
Driver "nvidia"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Configured Video Device"
Monitor "Configured Monitor"
DefaultDepth 24
Option "NoLogo" "True"
Option "RenderAccel" "true"
Option "TwinView"
Option "MetaModes" "1280×1024 1280×1024"
Option "TwinViewOrientation" "Below"
SubSection "Display"
Depth 24
Modes "nvidia-auto-select"
EndSubSection
EndSection
=========