# /etc/X11/xorg.conf (xorg X Window System server configuration file) # # This file was generated by dexconf, the Debian X Configuration tool, using # values from the debconf database. # # Edit this file with caution, and see the /etc/X11/xorg.conf manual page. # (Type "man /etc/X11/xorg.conf" at the shell prompt.) # # This file is automatically updated on xserver-xorg package upgrades *only* # if it has not been modified since the last upgrade of the xserver-xorg # package. # # If you have edited this file but would like it to be automatically updated # again, run the following commands: # # cp /etc/X11/xorg.conf /etc/X11/xorg.conf.custom # sudo sh -c 'md5sum /etc/X11/xorg.conf >/var/lib/xfree86/xorg.conf.md5sum' # sudo dpkg-reconfigure xserver-xorg ####################################################################### ## REFERENCE: # # This is based on http://mg.pov.lt/xorg.conf # # This is the original explanation of each layout, geometry changed, # but the concepts are still the same): # # mg: I have edited this file manually: # # * I enabled DynamicClocks to provide some power savings # LATER: disablet to see if crashes disappear (freedesktop bug #uhh..) # EVEN LATER: reenabled, because disabling it didn't make the crashes # go away # # * I added a couple of ServerLayout sections to play with dual-head # support # # startx -- -layout MergedFBLayout # Starts in MergedFB mode. Single large virtual desktop # (2048x768), the LCD sees the left half, the external monitor # sees the right half. Ctrl+Alt+[+/-] switches to clone mode # where you have a large virtual desktop with just one viewport # and can scroll horizontally. xrandr switches to clone mode # where the desktop is just 1280x768 with no scrolling. # # MergedFB supports 3D accel and video overlays on both heads. # MergedFB supports some Xinerama-style hints that let GNOME # maximize windows on only one head. Sadly, workspaces are linked # -- you can't switch workspaces on the left head independently # from the right head. # # MergedFB does not let me have a non-rectangular virtual desktop, # so if I configure a 1280x768 + 1280x1024 setup, the smaller one # will scroll inside a bigger a virtual desktop (only vertically, # also, when scrolling down the mouse cursor casts strange green # bars all the way to the top). Try it with # startx -- -layout MergedFB2Layout # Actually, there is an option to disable the vertical scrolling # and set xinerama hints appropriately. It needs a newer version # of the radeon driver (from Xorg 6.9): # Option "MergedNonRectangular" "true" # # xrandr works and gives me an opportunity to switch between # dualhead and clone! (If there are windows on the second head # when I switch to clone, they're moved so that part of them # is visible; when I switch back, metacity doesn't repaint half # of the titlebar ;) # # If the second display is not connected during X startup, # MergedFB gets totally disabled, and nothing will bring it back # (xrandr shows only one mode). In this mode Firefox breaks # totally and never shows any windows on the screen. The good # news is that if I specify CRT2HSync/CRT2VSync, then MergedFB # does not get disabled, and Firefox works fine. # # xv: works when mplayer is fully on head 1 or head 2; doesn't # work when mplayer overlaps both heads. Switching to # full-screen and back always puts mplayer on the top-left # corner of the first head; strange. Totem doesn't do this. # # DRI: works on both heads, also overlapped. # # http://bugs.xfree86.org/show_bug.cgi?id=276 is very informative # # startx -- -layout XineramaLayout # Starts in Xinerama mode. Two heads -- 1280x768 and 1280x1024. # You can move windows between them, like in MergedFB mode. The # smaller head doesn't scroll in a bigger virtual space, an # improvement over MergedFB. Workspaces are linked, like in # MergedFB. # # If the second display is not connected during X startup, # Xinerama gets totally disabled, and nothing will bring it back # (except server restart). To avoid this, I have hardcoded the # CRT2 hsync/vsync ranges in this config file. This prevents # Xinerama/mergedfb from being disabled. # # xv: works on both heads, and also partially when mplayer # overlaps them (but video is shown only on one head). # mplayer's full-screen doesn't work on second head (it displays # only 1280x768 image). # # DRI doesn't work at all. # # Xrandr doesn't work at all. There's no way to tell the PC I do # not have the second head -- if I unplug the monitor, half of # the windows aren't accessible. # # startx -- -layout TwoHeadLayout # No Xinerama, just two screens -- :0.0 and :0.1. You can move # the mouse between them, but you cannot move windows. Two # completely independent desktops, except for a bunch of GNOME # bugs -- e.g. window list applet breaks in the other head, etc. # You have independent workspaces OTOH, but the inability to move # windows arbitrarily is a killer :( Section "Files" FontPath "/usr/share/X11/fonts/misc" ## FontPath "/usr/share/X11/fonts/cyrillic" FontPath "/usr/share/X11/fonts/100dpi/:unscaled" FontPath "/usr/share/X11/fonts/75dpi/:unscaled" FontPath "/usr/share/X11/fonts/Type1" ## FontPath "/usr/share/X11/fonts/CID" FontPath "/usr/share/X11/fonts/100dpi" FontPath "/usr/share/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 "ddc" Load "dri" Load "extmod" Load "freetype" Load "glx" Load "int10" Load "type1" Load "vbe" # https://help.ubuntu.com/community/CompositeManager/AIGLXOnEdgy: for AIGLX # I need dri, dbe and glx. I wonder what dbe is? Load "dbe" EndSection Section "InputDevice" Identifier "Generic Keyboard" Driver "kbd" Option "CoreKeyboard" Option "XkbRules" "xorg" Option "XkbModel" "pc105" Option "XkbLayout" "us" 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" EndSection Section "Modes" Identifier "WXGA Modes" # Mode line for my Sony Bravia 40 inches (1360x768 and 1280x768 at 60Hz) # generated with: get-edid | parse-edid Mode "WXGA_1360x768" # vfreq 60.015Hz, hfreq 47.712kHz DotClock 85.500000 HTimings 1360 1424 1536 1792 VTimings 768 771 777 795 Flags "+HSync" "+VSync" EndMode Mode "WXGA_1280x768" # vfreq 59.870Hz, hfreq 47.776kHz DotClock 79.500000 HTimings 1280 1344 1472 1664 VTimings 768 771 778 798 Flags "+HSync" "-VSync" EndMode EndSection Section "Device" Identifier "ATI Radeon Mobility 9000" Driver "radeon" BusID "PCI:1:0:0" Option "DynamicClocks" "on" ## Option "backingstore" "on" Option "BIOSHotkeys" "on" Option "MergedFB" "false" # EXA replaces XAA, but seems to be slower ## Option "AccelMethod" "EXA" Option "XAANoOffscreenPixmaps" "true" # required for AIGLX EndSection Section "Device" Identifier "MergedFB ATI Radeon Mobility 9000" Driver "radeon" BusID "PCI:1:0:0" Option "DynamicClocks" "on" ## Option "backingstore" "on" Option "BIOSHotkeys" "on" Option "MergedFB" "true" Option "CRT2Position" "RightOf" # Got this with "get-edid | parse-edid" (HorizSync and VertRefresh) Option "CRT2HSync" "30-49" Option "CRT2VRefresh" "57-63" # This is a hack for radeon, behaves like Display subsection of Screen section. Option "MetaModes" "1400x1050-WXGA_1360x768 1360x768-WXGA_1360x768 1280x768-WXGA_1280x768 800x600 640x480" # EXA replaces XAA, but seems to be slower ## Option "AccelMethod" "EXA" Option "XAANoOffscreenPixmaps" "true" # required for AIGLX EndSection Section "Device" Identifier "MergedFB2 ATI Radeon Mobility 9000" Driver "radeon" BusID "PCI:1:0:0" Option "DynamicClocks" "on" ## Option "backingstore" "on" Option "BIOSHotkeys" "on" Option "MergedFB" "true" Option "CRT2Position" "RightOf" # Got this with "get-edid | parse-edid" (HorizSync and VertRefresh) Option "CRT2HSync" "30-49" Option "CRT2VRefresh" "57-63" # This is a hack for radeon, behaves like Display subsection of Screen section. Option "MetaModes" "1400x1050-WXGA_1360x768 1360x768-WXGA_1360x768 1280x768-WXGA_1280x768 800x600 640x480" # Disable scrolling for the smaller screen, if there is one Option "MergedNonRectangular" "true" # EXA replaces XAA, but seems to be slower ## Option "AccelMethod" "EXA" Option "XAANoOffscreenPixmaps" "true" # required for AIGLX EndSection Section "Device" Identifier "Screen0 of ATI Radeon Mobility 9000" Driver "radeon" BusID "PCI:1:0:0" Option "DynamicClocks" "on" ## Option "backingstore" "on" Option "BIOSHotkeys" "on" Option "MergedFB" "false" Screen 0 EndSection Section "Device" Identifier "Screen1 of ATI Radeon Mobility 9000" Driver "radeon" BusID "PCI:1:0:0" Option "DynamicClocks" "on" ## Option "backingstore" "on" Option "BIOSHotkeys" "on" Option "MergedFB" "false" Screen 1 EndSection Section "Monitor" Identifier "IBM Thinkpad T41 LCD" UseModes "WXGA Modes" # Need to get radeon's hacks (MetaModes) working Option "DPMS" EndSection Section "Monitor" Identifier "Sony Bravia 40in." VendorName "Sony" ModelName "Bravia 40 inches" UseModes "WXGA Modes" Option "DPMS" HorizSync 30-49 VertRefresh 57-63 EndSection Section "Screen" Identifier "Default Screen" Device "ATI Radeon Mobility 9000" Monitor "IBM Thinkpad T41 LCD" DefaultDepth 24 SubSection "Display" Depth 24 Modes "WXGA_1360x768" "1400x1050" "WXGA_1280x768" "800x600" "640x480" EndSubSection EndSection Section "Screen" Identifier "MergedFB Screen" Device "MergedFB ATI Radeon Mobility 9000" Monitor "IBM Thinkpad T41 LCD" DefaultDepth 24 SubSection "Display" Depth 24 Modes "WXGA_1360x768" EndSubSection EndSection Section "Screen" Identifier "MergedFB2 Screen" Device "MergedFB2 ATI Radeon Mobility 9000" Monitor "IBM Thinkpad T41 LCD" DefaultDepth 24 SubSection "Display" Depth 24 Modes "WXGA_1360x768" EndSubSection EndSection Section "Screen" Identifier "Screen0" Device "Screen0 of ATI Radeon Mobility 9000" Monitor "IBM Thinkpad T41 LCD" DefaultDepth 24 SubSection "Display" Depth 24 Modes "1400x1050" EndSubSection EndSection Section "Screen" Identifier "Screen1" Device "Screen1 of ATI Radeon Mobility 9000" Monitor "Sony Bravia 40in." DefaultDepth 24 SubSection "Display" Depth 24 Modes "WXGA_1360x768" EndSubSection EndSection Section "ServerLayout" Identifier "DefaultLayout" Screen "Default Screen" InputDevice "Generic Keyboard" InputDevice "Configured Mouse" InputDevice "Synaptics Touchpad" Option "AIGLX" "false" EndSection Section "ServerLayout" Identifier "AiglxLayout" Screen "Default Screen" InputDevice "Generic Keyboard" InputDevice "Configured Mouse" InputDevice "Synaptics Touchpad" Option "AIGLX" "true" EndSection Section "ServerLayout" Identifier "MergedFBLayout" Screen "MergedFB Screen" InputDevice "Generic Keyboard" InputDevice "Configured Mouse" InputDevice "Synaptics Touchpad" Option "AIGLX" "false" EndSection Section "ServerLayout" Identifier "MergedFB2Layout" Screen "MergedFB2 Screen" InputDevice "Generic Keyboard" InputDevice "Configured Mouse" InputDevice "Synaptics Touchpad" Option "AIGLX" "false" EndSection Section "ServerLayout" Identifier "XineramaLayout" Screen "Screen0" Screen "Screen1" RightOf "Screen0" InputDevice "Generic Keyboard" InputDevice "Configured Mouse" InputDevice "Synaptics Touchpad" Option "Xinerama" "true" Option "AIGLX" "false" EndSection Section "ServerLayout" Identifier "TwoHeadLayout" Screen "Screen0" Screen "Screen1" RightOf "Screen0" InputDevice "Generic Keyboard" InputDevice "Configured Mouse" InputDevice "Synaptics Touchpad" EndSection Section "DRI" Mode 0666 EndSection Section "ServerFlags" Option "DefaultServerLayout" "MergedFB2Layout" EndSection Section "Extensions" # Option "Composite" "Enable" Option "RENDER" "Enable" EndSection