## Configuration file for XFree86 4.3.0 for an IBM X-31 laptop, Linux ## 2.6.x, by Dominique Quatravaux . I use ## XFree86-debug v. 4.3.0-0woody4++4.0pre1v3 (I've tried and failed ## with a variety of other XFree86 servers, but OTOH Xorg works fine - ## see xorg.conf in the same directory). ## This config file allows true dual-screen (showing different things ## on the laptop's LCD and the external VGA output, very useful ## e.g. for slide shows). DRI and GLX don't work, because we use ## Xinerama (if you want any kind of performance, go for Xorg). ## Client-requested vidmode changes using XF86VidMode (e.g. dosbox, ## fullscreen-aware XMMS visualization plugins) don't work either. (As ## a workaround, one of the layouts provided below can do 640x480 on ## the external VGA.) ## In order to select one of the layouts defined below, run X with ## an extra -layout command-line switch, e.g. ## /usr/X11R6/bin/XFree86-debug -layout dualhead ## This can be configured into gdm, thus also allowing run-time ## switching with gdmflexiserver. ############### Common configuration for all layouts ################## Section "ServerFlags" DontZap 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, Red Hat 6.0 and later now use a font server independent of # the X server to render fonts. RgbPath "/usr/X11R6/lib/X11/rgb" FontPath "unix/:7100" FontPath "unix/:7110" EndSection Section "Module" Load "vbe" Load "dbe" Load "ddc" Load "int10" Load "extmod" # Load "fbdevhw" Load "freetype" Load "type1" Load "v4l" Load "GLcore" Load "glx" Load "dri" Load "drm" # Load "record" EndSection 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 "keyboard" # Option "XkbRules" "xfree86" # Option "XkbModel" "pc105" # Option "XkbLayout" "fr" Option "XkbKeymap" "dom" EndSection ## This was the adequate mouse setup for Linux 2.4.x (gpm must be running) # Section "InputDevice" # Identifier "Mouse0" # Driver "mouse" # Option "Protocol" "PS/2" # Option "Device" "/dev/gpmdata" # Option "Emulate3Buttons" "no" # EndSection ## This is what it takes for 2.6. "modprobe psmouse" required at ## boot time. Section "InputDevice" Identifier "DevInputMice" Driver "mouse" Option "Protocol" "ImPS/2" Option "Device" "/dev/input/mice" Option "ZAxisMapping" "4 5" Option "Emulate3Buttons" "no" EndSection Section "Monitor" Identifier "Monitor-LCD" VendorName "IBM" ModelName "LCD Monitor" Option "dpms" EndSection Section "Monitor" Identifier "Monitor-CRT" VendorName "Depends" ModelName "External Monitor (autodetected)" Option "dpms" EndSection Section "Device" Identifier "Radeon-LCD" Driver "radeon" VendorName "Videocard vendor" BoardName "ATI Radeon Mobility M6" BusID "PCI:01:00:0" Screen 0 EndSection Section "Device" Identifier "Radeon-CRT" Driver "radeon" VendorName "Videocard vendor" BoardName "ATI Radeon Mobility M6" BusID "PCI:01:00:0" Screen 1 EndSection ################ default layout: cloned 1024x768 ################### ## The VGA output will show the same thing as the LCD panel. AFAIK ## this cannot be disabled, and it possibly wastes a minuscule amount ## of battery power when the external VGA is not in use. Section "ServerLayout" Identifier "singlescreen" Screen 0 "SingleScreen" 0 0 InputDevice "DevInputMice" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "Screen" Identifier "SingleScreen" Device "Radeon-LCD" Monitor "Monitor-LCD" DefaultDepth 16 SubSection "Display" Depth 16 Modes "1024x768" EndSubSection EndSection ################ layout: dual 1024x768 ################### ## Both the LCD and the external screen at 1024x768, the LCD sitting ## "below" the CRT in the Xinerama layout. This is the preferred mode ## for dual-screen use. Section "ServerLayout" Identifier "dualhead" Screen 0 "Xinerama-LCD" Screen 1 "Xinerama-CRT" Above "Xinerama-LCD" # Re-used # from singlehead layout above InputDevice "DevInputMice" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" Option "Xinerama" "On" EndSection Section "Screen" Identifier "Xinerama-LCD" Device "Radeon-LCD" Monitor "Monitor-LCD" DefaultDepth 16 SubSection "Display" Depth 16 Modes "1024x768" EndSubSection EndSection Section "Screen" Identifier "Xinerama-CRT" Device "Radeon-CRT" Monitor "Monitor-CRT" DefaultDepth 16 SubSection "Display" Depth 16 Modes "1024x768" EndSubSection EndSection ################ layout: 640x480-1024x768 ################### ## The LCD panel is in 1024x768 and the external screen at 640x480 ## "above" it. There is an inaccessible pixel range right of the ## external screen, but Xinerama and modern window managers handle ## that just fine. This layout is for displaying apps that prefer ## 640x480 on the external VGA output (e.g. voracious XMMS display ## plugins that would lag unacceptably in full 1024x768) Section "ServerLayout" Identifier "dualhead640" Screen 0 "Xinerama-LCD" # Re-used from dualhead layout above Screen 1 "Xinerama-CRT640" Above "Xinerama-LCD" # Re-used # from singlehead layout above InputDevice "DevInputMice" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" Option "Xinerama" "On" EndSection Section "Screen" Identifier "Xinerama-CRT640" Device "Radeon-CRT" Monitor "Monitor-CRT" DefaultDepth 16 SubSection "Display" Depth 16 Modes "640x480" EndSubSection EndSection Section "DRI" Group "video" Mode 0660 EndSection