## Configuration file for Xorg 6.8.2 for an IBM X-31 laptop, Linux ## 2.6.x, by Dominique Quatravaux . See also ## XF86Config-4 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 work OK in all layouts, but ## client-requested vidmode changes using XF86VidMode (e.g. dosbox, ## fullscreen-aware XMMS visualization plugins) don't. (As a ## workaround, there is a dual 640x480 layout provided below.) ## Xinerama extension is faked by the driver (see radeon(4)), not ## provided by the X core; that's why things will work just fine, ## despite there being no mention of Xinerama in this configuration ## file. ## In order to select one of the layouts defined below, run X with ## an extra -layout command-line switch, e.g. ## /usr/X11R6/bin/Xorg -layout dualhead -terminate ## (note that -terminate is required for Debian's X.org 6.8.2, as ## the X server fails to properly restore it's XKb state at reset) ## The layout switching can be configured into gdm, thus also allowing ## run-time selection with gdmflexiserver - but be warned that when ## multiple X servers run on the same hardware, DRI and GLX will only ## work on the first of them. ############### Common configuration for all layouts ################## # De-activate Ctrl-Alt-Backspace (matter of personal taste): 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 ## This describes the laptop's own LCD panel. Section "Monitor" Identifier "MonitorLCD" VendorName "IBM" ModelName "LCD Monitor" Option "dpms" EndSection ################ default layout: single 1024x768 ################### ## To be used when the external VGA output is not in use. If a VGA ## device is detected at server startup time, the LCD won't be used; ## but if you plug it in later, the display will be identical on both ## viewports. Section "ServerLayout" Identifier "singlescreen" Screen "SingleScreen" InputDevice "DevInputMice" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "Screen" Identifier "SingleScreen" Device "Radeon-SingleScreen" Monitor "MonitorLCD" DefaultDepth 16 SubSection "Display" Depth 16 Modes "1024x768" EndSubSection EndSection Section "Device" Identifier "Radeon-SingleScreen" Driver "radeon" VendorName "Radeon" BoardName "ATI Radeon Mobility M6" BusID "PCI:01:00:0" EndSection ################ Layout: dual 1024x768 ######################## ## Both the LCD and the 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 "DualScreen" InputDevice "DevInputMice" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "Screen" Identifier "DualScreen" Device "Radeon-DualScreen" Monitor "MonitorLCD" DefaultDepth 16 SubSection "Display" Depth 16 ViewPort 0 0 # Enough room in framebuffer for the two screens, but # no more so that no spurious scrolling around occurs: Virtual 1024 1536 EndSubSection EndSection Section "Device" Identifier "Radeon-DualScreen" Driver "radeon" VendorName "Radeon" BoardName "ATI Radeon Mobility M6" BusID "PCI:01:00:0" Option "MergedFB" "true" Option "MonitorLayout" "LVDS, CRT" Option "CRT2Position" "Above" Option "CRT2HSync" "30.0-100.0" Option "CRT2VRefresh" "50.0-100.0" Option "MetaModes" "1024x768-1024x768" EndSection ################ layout: cloned 1024x768 ###################### ## Both screens are showing the same 1024x768 display regardless ## of whether an external screen is plugged in at server startup ## time. This possibly wastes a minuscule amount of power when ## the VGA output is not connected, so better use the default ## layout instead. Section "ServerLayout" Identifier "cloned" Screen "ClonedScreen" InputDevice "DevInputMice" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "Screen" Identifier "ClonedScreen" Device "Radeon-ClonedScreen" Monitor "MonitorLCD" DefaultDepth 16 SubSection "Display" Depth 16 Modes "1024x768" EndSubSection EndSection Section "Device" Identifier "Radeon-ClonedScreen" Driver "radeon" VendorName "Radeon" BoardName "ATI Radeon Mobility M6" BusID "PCI:01:00:0" Option "MergedFB" "true" Option "MonitorLayout" "LVDS, CRT" Option "CRT2Position" "Clone" Option "CRT2HSync" "30.0-100.0" Option "CRT2VRefresh" "50.0-100.0" Option "MetaModes" "1024x768-1024x768" EndSection ################ Layout: dual 640x480 ############################# ## This 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). Unfortunately this cannot be done ## in Xorg 6.8.2, while keeping the laptop screen in 1024x768 (see ## radeon(4)). This used to work in XFree86, so see also the ## X86Config-4 file in the same directory. Section "ServerLayout" Identifier "dualhead640" Screen "DualScreen640" InputDevice "DevInputMice" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "Device" Identifier "Radeon-DualScreen640" Driver "radeon" VendorName "Radeon" BoardName "ATI Radeon Mobility M6" BusID "PCI:01:00:0" Option "MergedFB" "true" Option "MonitorLayout" "LVDS, CRT" Option "CRT2Position" "Above" Option "CRT2HSync" "30.0-100.0" Option "CRT2VRefresh" "50.0-100.0" Option "MetaModes" "640x480-640x480" EndSection Section "Screen" Identifier "DualScreen640" Device "Radeon-DualScreen640" Monitor "MonitorLCD" DefaultDepth 16 SubSection "Display" Depth 16 ViewPort 0 0 Virtual 640 960 Modes "640x480" EndSubSection EndSection Section "DRI" Group "video" Mode 0660 EndSection