Xorg on ThinkpadX24 で dual head

先日の設定修正依頼、頻繁に、LCDのカラーパレットがおかしくなっているのを
発見した。どうもCtrl+Alt+F1でテキストコンソールに戻るか、Suspendすると
パレットが変になっているらしい。いろいろ調べたがはっきりした原因がわか
らなかったが、XineramaをやめてMergedFBにしたらなぜか直った。

現在のxorg.confは以下の通り。

# X.Org X11R6.7.0 configuration generated by Xconfigurator 4.92

Section "ServerLayout"
        Identifier "XOrg Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Mouse9" "SendCoreEvents"
        InputDevice    "Keyboard0" "CoreKeyboard"
        Option          "Xinerama" "off"
        Option          "Clone" "off"
EndSection

Section "Files"
        FontPath "/usr/X11R6/lib/X11/fonts/TrueType"
        FontPath "unix/:7100"
        FontPath "/usr/X11R6/lib/X11/fonts/japanese"
        FontPath "/usr/X11R6/lib/X11/fonts/misc"
        FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
EndSection

# Module loading section

Section "Module"
        Load  "dbe"             # Double-buffering
        Load  "GLcore"          # OpenGL support
        Load  "dri"             # Direct rendering infrastructure
        Load  "glx"             # OpenGL X protocol interface
        Load  "extmod"          # Misc. required extensions
        Load  "v4l"             # Video4Linux
        # Load  "record"        # X event recorder
        # Load  "xtt"    # TrueType font handler
        Load  "type1"           # Adobe Type 1 font handler
        Load  "freetype"         # TrueType font handler
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "keyboard"
        Option      "Xkbdisable"
        Option      "XkbLayout" "jp"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Device" "/dev/mouse"
        Option      "Protocol" "PS/2"
        Option      "Emulate3Buttons" "off"
        Option      "ZAxisMapping" "4 5"
EndSection


Section "InputDevice"
        Identifier  "Mouse9"
        Driver      "mouse"
        Option      "Device" "/dev/input/mice"
        Option      "Protocol" "IMPS/2"
        Option      "ZAxisMapping" "4 5"
        Option      "AlwaysCore"
EndSection

Section "Monitor"
        Identifier "LCD Panel 1024x768"
        VendorName "Unknown"
        ModelName  "Unknown"
        HorizSync 31.5-90
        VertRefresh 60
        Option "dpms"
EndSection

Section "Monitor"
        Identifier "LCD SyncMaster 213T"
        VendorName "Unknown"
        ModelName  "Unknown"
        HorizSync 61.5-81.0
        VertRefresh 59.0-76.0
#       Option "dpms"
EndSection

Section "Monitor"
        Identifier "LCD Sony SDM-S204"
        VendorName "Sony"
        ModelName  "SDM-S204"
        Displaysize 410 310
        HorizSync 28.0-92.0
        VertRefresh 48.0-60.0
#       Option "dpms"
EndSection

Section "Device"
        Identifier "ATI Radeon Mobility M6 8MB 0"
        Driver "radeon"
        BoardName "On board"
        Screen 0
        Option "BusType" "AGP"
        Option "AGPMode" "4"
        Option "AGPFastWrite" "1"
        Option "Monitor Layout" "LVDS,CRT"
        Option "DynamicClocks" "on"
        Option "DPMS" "on"
        Option "MergedFB" "on"
        Option "CRT2Position" "RightOf"
        Option "MetaModes" "1024x768-1600x1200 1024x768-1024x768 1024x768"
        BusID "1:0:0"
EndSection

Section "Device"
        Identifier "Linux Frame Buffer"
        Driver "fbdev"
        BoardName "Unknown"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device "ATI Radeon Mobility M6 8MB 0"
        Monitor "LCD Panel 1024x768"
        DefaultDepth 16
        Subsection "Display"
                Depth 8
                Modes "1024x768"
        EndSubSection
EndSection

Section "Screen"
        Identifier "Screen1"
        Device "ATI Radeon Mobility M6 8MB 0"
#       Monitor "LCD SyncMaster 213T"
        Monitor "LCD Sony SDM-S204"
        DefaultDepth 16
        Subsection "Display"
                Depth 8
                Modes "1600x1200"
        EndSubSection
EndSection

Section "DRI"
        Mode 0666
EndSection

MergedFB は man radeon を見ながら設定しましたが、結構良さげです。1024x768のLCDの右に1600x1200の外部CRTがつくDual Headですが、
Xinerameでは、(1024+1600)x(1200)のスクリーンで、左下にアクセス
できなかったのですが、Merged Frame Bufferはできます。
LCDが縦スクロールする)

また、複数のモードすなわち、(1024x768)+(1600x1200)と
(1024x768)+(1024x768)と(1024x768)をCtrl+Alt+'+'で切り替えられる
ので、これも便利です。最初は作業用、次のがプロジェクタ接続用
(LCDとプロジェクターはべつ), 最後のがプロジェクタ接続プレゼン
用(LCDとプロジェクターは同じ出力)になります。

いままでは、せっかく大画面でPPT作っても一回Xを落とさないと
プロジェクターにつなげなかったんですが、その心配がなくなります。