# X.org server configuration - Hand Tuned by Michael J. Hammel # ********************************************************************** # ServerLayout Sections # Any number of ServerLayout sections may be present. Each describes # the way multiple screens are organised. A specific ServerLayout # section may be specified from the X server command line with the # "-layout" option. In the absence of this, the first section is used. # When now ServerLayout section is present, the first Screen section # is used alone. # To add the drawing tablets to any server layout: # Drawing tablet: Aiptek # InputDevice "astylus" "AlwaysCore" # InputDevice "acursor" "AlwaysCore" # InputDevice "aeraser" "AlwaysCore" # Drawing tablet: Wacom # InputDevice "wstylus" "AlwaysCore" # InputDevice "wcursor" "AlwaysCore" # InputDevice "weraser" "AlwaysCore" # NOTE: The first ServerLayout definition gets used - is there some way to # dynamically switch between them, perhaps with GDM? # The LFP and the CRT at the same time, but as one giant desktop. # This works with MythTV - just go into Setup->Appearance and set the # Xinerama screen to 1 (instead of 0). That will put the MythTV on the # CRT. However, if you change workspaces on the LCD then the CRT changes with # you. # The default server layout where we just have the 1 LCD screen. # The LFP and the TV at the same time. # The LFP and the CRT at the same time but with different desktops. # This doesn't seem to work real well because the panels under GNOME # keep crashing if I try to edit them on the CRT (re: the second desktop). # ********************************************************************** # Files # ********************************************************************** # Server Extensions # Composite is not available on older X releases. # Render might not work either, but is more common. # ********************************************************************** # Input Devices # ********************************************************************** # Synaptics Input Device # ********************************************************************** # Aiptek Drawing Tablet # ********************************************************************** # Wacom Drawing Tablet # ********************************************************************** # Monitors # Valid monitors are CRT, LFP, DFP, TV, CRT2, LFP2, DFP2, TV2 and NONE. # ********************************************************************** # Devices - re: video cards # There is only one, but we can use it to drive the following types of # Monitors: CRT, LFP, DFP, TV, CRT2, LFP2, DFP2, TV2 and NONE. # # This puts the same video out on both the LCD and VGA port # Option "MonitorLayout" "LFP+CRT,NONE" # Option "DevicePresence" "true" # This should get the LCD and S-Video TV out sync'd and clone it to the # the VGA output. But the LCD probably needs to be reset to 1024x768 for this # to work right. # Option "MonitorLayout" "LFP+TV,CRT" # Option "MonitorLayout" "CRT,LFP+TV" # Option "Clone" "true" # Option "DevicePresence" "true" # Only one of the following two options should be used. # Enable the desktop to span both displays # Option "Xinerama" "true" # Cause the display to be identical on both screens # Option "Clone" "true" # This give thes the LCD and CRT different outputs, which allows me to set # them up as Xinerama configurations with different screen sizes, etc. # Option "MonitorLayout" "LFP,CRT" # Option "DevicePresence" "true" # Also see: # http://www.internet-milano.it/antonio/cdc6034dw/xorg.conf.txt # http://filebox.vt.edu/users/jlido/linux/xorg.conf.fancy # http://lists.debian.org/debian-laptop/2005/09/msg00008.html # man i810 # google: i810 monitorlayout # X.org R6.9 or R7.0 has real i915 support included: see # http://www.linux-laptop.net/hosted/fs215e-slackware.html # This is the default configuration # One video pipe for each of the LFP (ie LCD) and the CRT # One video pipe for each of the LFP (ie LCD) and the TV output # ********************************************************************** # Screens - These let us put different screens on different output devices. # Any number of screen sections may be present. Each describes # the configuration of a single screen. A single specific screen section # may be specified from the X server command line with the "-screen" # option. # This is the default screen when we're just using the LCD display. # ********************************************************************** # Two displays: LCD and VGA @ 1024x768 # Important: Don't hook up second display until after the X server has # started! Section "ServerLayout" Identifier "BigDesktop" Screen 0 "LFP with CRT" 0 0 Screen 1 "CRT Screen" RightOf "LFP with CRT" InputDevice "Mouse0" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Synaptics" "CorePointer" Option "Xinerama" "true" Option "Clone" "on" EndSection # Single display - the LCD Section "ServerLayout" Identifier "Default Layout" Screen 0 "LFP Screen" 0 0 InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Synaptics" "CorePointer" InputDevice "Mouse0" "AlwaysCore" EndSection # Two displays: LCD and TV Section "ServerLayout" Identifier "LFPandTV" Screen 0 "LFP with TV" 0 0 Screen 1 "TV Screen" RightOf "LFP with TV" InputDevice "Mouse0" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" Option "Xinerama" "true" Option "Clone" "off" EndSection # Doesn't work w/GNOME: LCD and VGA but using two different desktops. Section "ServerLayout" Identifier "LFPandCRT" Screen 0 "LFP with CRT" 0 0 Screen 1 "CRT Screen" RightOf "LFP with CRT" InputDevice "Mouse0" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" EndSection # XFree86 4 configuration created by pyxf86config Section "ServerLayout" Identifier "Orig Default Layout" Screen 0 "Screen0" 0 0 InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Synaptics" "CorePointer" InputDevice "Mouse0" "AlwaysCore" EndSection Section "Files" # RgbPath is the location of the RGB database. Note, this is the name of the # file minus the extension (like ".txt" or ".db"). There is normally # no need to change the default. # Multiple FontPath entries are allowed (they are concatenated together) # By default, a font server independent of the X server is # used to render fonts. FontPath "unix/:7100" EndSection Section "Module" Load "dbe" Load "extmod" Load "fbdevhw" Load "glx" Load "record" Load "freetype" Load "type1" Load "synaptics" Load "dri" EndSection # ********************************************************************** # INPUT DEVICES # ********************************************************************** Section "InputDevice" # Specify which keyboard LEDs can be user-controlled (eg, with xset(1)) # Option "Xleds" "1 2 3" # To disable the XKEYBOARD extension, uncomment XkbDisable. # Option "XkbDisable" # To customise the XKB settings to suit your keyboard, modify the # lines below (which are the defaults). For example, for a non-U.S. # keyboard, you will probably want to use: # Option "XkbModel" "pc102" # If you have a US Microsoft Natural keyboard, you can use: # Option "XkbModel" "microsoft" # # Then to change the language, change the Layout setting. # For example, a german layout can be obtained with: # Option "XkbLayout" "de" # or: # Option "XkbLayout" "de" # Option "XkbVariant" "nodeadkeys" # # If you'd like to switch the positions of your capslock and # control keys, use: # Option "XkbOptions" "ctrl:swapcaps" # Or if you just want both to be control, use: # Option "XkbOptions" "ctrl:nocaps" # Identifier "Keyboard0" Driver "kbd" Option "XkbModel" "pc105" Option "XkbLayout" "us" EndSection # ------------------------------------- # USB Mouse Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "IMPS/2" Option "Device" "/dev/input/mice" Option "ZAxisMapping" "4 5" Option "Emulate3Buttons" "yes" EndSection # ------------------------------------- # Synaptics mouse pad Section "InputDevice" Identifier "Synaptics" Driver "synaptics" Option "Device" "/dev/input/mice" Option "Protocol" "auto-dev" Option "Emulate3Buttons" "yes" Option "SHMConfig" "on" Option "FingerHigh" "255" EndSection # ------------------------------------- # Aiptek drawing tablet Section "InputDevice" Identifier "astylus" Driver "aiptek" Option "Device" "/dev/input/aiptekTablet" Option "Type" "stylus" Option "Mode" "absolute" Option "PressCurve" "0,5,95,100" Option "KeepShape" "on" Option "zMin" "0" Option "zMax" "512" Option "USB" "on" Option "Cursor" "stylus" Option "debuglevel" "0" EndSection Section "InputDevice" Identifier "acursor" Driver "aiptek" Option "Device" "/dev/input/aiptekTablet" Option "Type" "cursor" Option "Mode" "absolute" Option "PressCurve" "0,5,95,100" Option "KeepShape" "on" Option "zMin" "0" Option "zMax" "512" Option "USB" "on" Option "Cursor" "puck" Option "debuglevel" "0" EndSection Section "InputDevice" Identifier "aeraser" Driver "aiptek" Option "Device" "/dev/input/aiptekTablet" Option "Type" "eraser" Option "Mode" "absolute" Option "PressCurve" "0,5,95,100" Option "KeepShape" "on" Option "zMin" "0" Option "zMax" "512" Option "USB" "on" Option "Cursor" "stylus" Option "debuglevel" "0" EndSection # ------------------------------------- # Wacom Drawing Tablet Section "InputDevice" Identifier "wstylus" Driver "wacom" Option "Device" "/dev/input/wacom" # USB ONLY Option "Type" "stylus" Option "USB" "on" # USB ONLY Option "BottomX" "2540" Option "BottomY" "2540" Option "AlwaysCore" "on" Option "Tilt" "on" Option "KeepShape" "on" EndSection Section "InputDevice" Identifier "weraser" Driver "wacom" Option "Device" "/dev/input/wacom" # USB ONLY Option "Type" "eraser" Option "USB" "on" # USB ONLY Option "BottomX" "2540" Option "BottomY" "2540" Option "AlwaysCore" "on" Option "Tilt" "on" Option "KeepShape" "on" EndSection Section "InputDevice" Identifier "wcursor" Driver "wacom" Option "Device" "/dev/input/wacom" # USB ONLY Option "Type" "cursor" Option "USB" "on" # USB ONLY Option "BottomX" "2540" Option "BottomY" "2540" Option "AlwaysCore" "on" Option "Tilt" "on" Option "KeepShape" "on" EndSection # ********************************************************************** # MONITORS # ********************************************************************** # ------------------------------------- # Generic LCD Monitor setting Section "Monitor" ### Comment all HorizSync and VertSync values to use DDC: Identifier "Monitor0" VendorName "Monitor Vendor" ModelName "LCD Panel 1280x800" ### Comment all HorizSync and VertSync values to use DDC: HorizSync 31.5 - 90.0 VertRefresh 60.0 - 60.0 Option "dpms" EndSection # ------------------------------------- # Acer Aspire LCD Monitor setting Section "Monitor" Identifier "Acer Aspire LFP" VendorName "Acer" ModelName "LCD Panel 1280x800" HorizSync 31.5 - 90.0 VertRefresh 60.0 - 60.0 ModeLine "1280x800_70.00" 98.9 1280 1352 1488 1696 800 801 804 833 -hsync +vsync Option "dpms" EndSection # ------------------------------------- # TV Out Section "Monitor" Identifier "Television" HorizSync 30.0 - 50.0 VertRefresh 59.9 - 59.9 EndSection # ------------------------------------- # CRT Out Section "Monitor" Identifier "CRT" # HorizSync 30-95 # VertRefresh 50-100 Option "DPMS" EndSection # ********************************************************************** # VIDEO DEVICES # These define the video hardware configuration when using one # or more video monitors. # ********************************************************************** Section "Device" Identifier "Videocard0" Driver "i810" VendorName "Videocard vendor" BoardName "Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller" EndSection Section "Device" Identifier "AcerLFP" Driver "i810" VendorName "Intel" BoardName "Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller" EndSection Section "Device" Identifier "i915B" Driver "i810" Option "MonitorLayout" "CRT,LFP" BusID "PCI:0:2:0" EndSection Section "Device" Identifier "i915A" Driver "i810" Option "MonitorLayout" "CRT,LFP" Option "DevicePresence" "true" BusID "PCI:0:2:0" Screen 1 EndSection Section "Device" Identifier "i810 TV-B" Driver "i810" Option "MonitorLayout" "TV,LFP" Option "DevicePresence" "true" BusID "PCI:0:2:0" EndSection Section "Device" Identifier "i810 TV-A" Driver "i810" Option "MonitorLayout" "TV,LFP" Option "DevicePresence" "true" BusID "PCI:0:2:0" Screen 1 EndSection # ********************************************************************** # SCREENS # These define the logical layout for the window manager to deal with. # ********************************************************************** Section "Screen" Identifier "Screen0" Device "Videocard0" Monitor "Monitor0" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 16 Modes "800x600" "640x480" EndSubSection SubSection "Display" Viewport 0 0 Depth 24 Modes "1280x800" EndSubSection EndSection Section "Screen" Identifier "LFP Screen" Device "AcerLFP" Monitor "Acer Aspire LFP" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 16 Modes "800x600" "640x480" EndSubSection SubSection "Display" Viewport 0 0 Depth 24 Modes "1280x800" "1024x768" "800x600" "640x480" EndSubSection EndSection Section "Screen" Identifier "LFP with TV" Device "i810 TV-B" Monitor "Acer Aspire LFP" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 24 Modes "1280x800" "1024x768" "800x600" "640x480" EndSubSection EndSection Section "Screen" Identifier "LFP with CRT" Device "i915B" Monitor "Acer Aspire LFP" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 24 Modes "1280x800" "1024x768" "800x600" "640x480" # Modes "1024x768" EndSubSection EndSection Section "Screen" Identifier "TV Screen" Device "i810 TV-A" Monitor "Television" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 24 Modes "1024x768" "800x600" "640x480" EndSubSection EndSection Section "Screen" Identifier "CRT Screen" Device "i915A" Monitor "CRT" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 24 Modes "1024x768" EndSubSection EndSection # ********************************************************************** # EXTENSIONS # ********************************************************************** Section "DRI" Group 0 Mode 0666 EndSection Section "Extensions" #Option "Composite" "enable" Option "RENDER" "enable" EndSection