Ubuntu Notes and How-Tos

Tuesday, August 16, 2005

Dual-headed Laptop


/etc/X11/xorg.conf



Section "Files"
FontPath "unix/:7100" # local font server
# if the local font server has problems, we can fall back on these
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/cyrillic"
FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/Type1"
FontPath "/usr/lib/X11/fonts/CID"
FontPath "/usr/lib/X11/fonts/100dpi"
FontPath "/usr/lib/X11/fonts/75dpi"
# paths to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
EndSection

Section "Module"
Load "bitmap"
Load "dbe"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "record"
Load "type1"
Load "vbe"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "fi"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
Option "SHMConfig" "on"
EndSection

#
# THIS SECTION IS THE MEAT OF THE MATTER
#

# VGA PORTS
#

Section "Device"
Identifier "Intel Head 1"
Driver "i810"
BusID "PCI:0:2:0"
#PREVENTS DVD PLAYER FROM CRASHING (I'M USING gxine):
Option "XaaNoOffscreenPixmaps"
#THIS WAS MY HOLY GRAIL. COUNTLESS PERMUTATIONS UNTIL I FINALLY NAILED IT
Option "MonitorLayout" "CRT,LFP"
Screen 0
EndSection
Section "Device"
Identifier "ExternalPort"
Driver "i810"
BusID "PCI:0:2:0"
Screen 1
EndSection

Section "Monitor"
Identifier "LCD"
Option "DPMS"
HorizSync 28-49
VertRefresh 43-72
Modeline "1280x768" 80.14 1280 1344 1480 1680 768 769 772 795
EndSection
Section "Monitor"
#A ONE HUMONGOUS OF A MONITOR - "NEC MultiSync 6FG"
Identifier "CRT"
Option "DPMS"
HorizSync 27-79
VertRefresh 55-90
Modeline "1280x1024" 110 1280 1328 1512 1712 1024 1025 1028 1054
EndSection


Section "Screen"
Identifier "Default Screen"
Device "Intel Head 1"
Monitor "LCD"
DefaultDepth 16

SubSection "Display"
Depth 16
Modes "1280x768"
EndSubSection
EndSection
Section "Screen"
Identifier "Second Screen"
Device "ExternalPort"
Monitor "CRT"
DefaultDepth 16

SubSection "Display"
Depth 16
Modes "1280x768"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "DualHead"

Screen 0 "Default Screen" LeftOf "Second Screen"
Screen 1 "Second Screen" 0 0

InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"

Option "Xinerama" "true"
EndSection


Section "DRI"
Mode 0666
EndSection


0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home