HowtoSetupExternalMonitorForIntel915
Hi all,BR I would like to describe how you can make your external monitor to work in Ubuntu Dapper Drake, if you have an intel 915 graphic card (witch mostly used in laptops). My desiered Resolution is 1280x800 with 60Hz for my LCD of laptop and 1024x768 with 85Hz for my CRT external monitor.BR There are two solutions for working with external monitors:BR 1. The external monitor become exactly mirror of LCD (I use "Clone Heads" for this)BR 2. The external monitor has another screen so that we can switch between screen of LCD and screen of external monitor(I use "Separate Heads" for this)BR It will be great, If there is a choice for the user to select witch solution he wants in run time. Fortunately, having multiple "ServerLayout" section in xorg.conf file and defining multiple "server" in gdm.conf file provides this flexibility.BR The only trick is if you want to stay in 85Hz in Clone mode, you should downgrade resolution of LCD to 1024x768. The reason is: for refresh rates upper than 60Hz, the resolutions of two heads must be the same.BR With respect to the discussion above, the /etc/X11/xorg.conf shoule looks like this:BR
Section "Files"BR
FontPath "/usr/share/X11/fonts/misc"BR FontPath "/usr/share/X11/fonts/cyrillic"BR FontPath "/usr/share/X11/fonts/100dpi/:unscaled"BR FontPath "/usr/share/X11/fonts/75dpi/:unscaled"BR FontPath "/usr/share/X11/fonts/Type1"BR FontPath "/usr/share/X11/fonts/100dpi"BR FontPath "/usr/share/X11/fonts/75dpi"BR # path to defoma fontsBR FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"BR
Section "Module"BR
Load "bitmap"BR Load "ddc"BR Load "dri"BR Load "extmod"BR Load "freetype"BR Load "glx"BR Load "int10"BR Load "type1"BR Load "vbe"BR
Section "InputDevice"BR
Identifier "Generic Keyboard"BR Driver "kbd"BR Option "CoreKeyboard"BR Option "XkbRules" "xorg"BR Option "XkbModel" "pc104"BR Option "XkbLayout" "us"BR
Section "InputDevice"BR
Identifier "Configured Mouse"BR Driver "mouse"BR Option "CorePointer"BR Option "Device" "/dev/input/mice"BR Option "Protocol" "ExplorerPS/2"BR Option "ZAxisMapping" "4 5"BR Option "Emulate3Buttons" "true"BR
Section "InputDevice"BR
Identifier "Synaptics Touchpad"BR Driver "synaptics"BR Option "SendCoreEvents" "true"BR Option "Device" "/dev/psaux"BR Option "Protocol" "auto-dev"BR Option "HorizScrollDelta" "0"BR
Section "Device"BR
Identifier "Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller"BR Driver "i810"BR BusID "PCI:0:2:0"BR
Section "Device"BR
Identifier "Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller for LCD of Separate"BR Driver "i810"BR BusID "PCI:0:2:0"BR Option "MonitorLayout" "CRT,LFP"BR Screen 0BR
Section "Device"BR
Identifier "Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller for CRT of Separate"BR Driver "i810"BR BusID "PCI:0:2:0"BR Screen 1BR
Section "Device"BR
Identifier "Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller for Clone"BR Driver "i810"BR BusID "PCI:0:2:0"BR Option "Clone" "true"BR Option "CloneRefresh" "85"BR Option "MonitorLayout" "CRT,LFP"BR
Section "Monitor"BR
Section "Monitor"BR
Section "Screen"BR
Identifier "Default Screen"BR Device "Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller"BR Monitor "Generic Monitor"BR DefaultDepth 24BR SubSection "Display"BR
EndSubSectionBR SubSection "Display"BR
EndSubSectionBR SubSection "Display"BR
EndSubSectionBR SubSection "Display"BR
EndSubSectionBR SubSection "Display"BR
EndSubSectionBR SubSection "Display"BR
Section "Screen"BR
Identifier "LCD Screen Of Separate"BR Device "Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller for LCD of Separate"BR Monitor "Generic Monitor"BR DefaultDepth 24BR SubSection "Display"BR
Section "Screen"BR
Identifier "CRT Screen Of Separate"BR Device "Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller for CRT of Separate"BR Monitor "External Monitor"BR DefaultDepth 24BR SubSection "Display"BR
Section "Screen"BR
Identifier "LCD Screen Of Clone"BR Device "Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller for Clone"BR Monitor "Generic Monitor"BR DefaultDepth 24BR SubSection "Display"BR
Section "Screen"BR
Identifier "CRT Screen Of Clone"BR Device "Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller for Clone"BR Monitor "External Monitor"BR DefaultDepth 24BR SubSection "Display"BR
Section "ServerLayout"BR
Identifier "DefaultLayout"BR Screen "Default Screen"BR InputDevice "Generic Keyboard"BR InputDevice "Configured Mouse"BR InputDevice "Synaptics Touchpad"BR
Section "ServerLayout"BR
Identifier "SeparateHeads"BR Screen 0 "LCD Screen Of Separate" 0 0BR Screen 1 "CRT Screen Of Separate" RightOf "LCD Screen Of Separate"BR InputDevice "Generic Keyboard"BR InputDevice "Configured Mouse"BR InputDevice "Synaptics Touchpad"BR
Section "ServerLayout"BR
Identifier "CloneHeads"BR Screen "LCD Screen Of Clone"BR Screen "CRT Screen Of Clone"BR InputDevice "Generic Keyboard"BR InputDevice "Configured Mouse"BR InputDevice "Synaptics Touchpad"BR
Section "DRI"BR
Mode 0666BR
After editing xorg.conf, it turns off gdm.conf. by default, there is one section named [server-Standard] in /etc/gdm/gdm.conf witch must be changed to:BR
[server-Standard]BR name=Standard serverBR command=/usr/bin/X -br -audit 0 -layout DefaultLayout BR flexible=trueBR
After doing that, you should add some other server sections:BR
[server-Separate]BR name=Separate HeadsBR command=/usr/bin/X -br -audit 0 -layout SeparateHeadsBR flexible=trueBR
[server-Clone]BR name=Clone HeadsBR command=/usr/bin/X -br -audit 0 -layout CloneHeadsBR flexible=trueBR
Ok, that's it. You must restart your computer and for changing mode, in gnoem-terminal, type: gdmflexiserver and see what's happen!BR
Have fun,BR Habib Seifzadeh : habibseifzadeh@yahoo.comBR