[ltp] external monitor Fn-F7

Nicolas Kreft linux-thinkpad@linux-thinkpad.org
Fri, 27 May 2005 16:25:37 +0200


Hi David!

David Tansey wrote:
> Has anyone setup a thinkpad to easily switch to external monitors and
> back (both cloning, side-by-side, and one-or-the-other)?


Yes, and it was a long journey with my X40.

Using Fn-F7 through ibm-acpi gave me about 20 pixels of garbage
at the top of the screen.

Using i855crt worked, but the mouse cursor would stay fixed at
the upper left corner on the monitor output.

i810switch worked, but with very poor video quality on the
monitor output.

Then I found another xorg.conf and a script that somehow
'copies' the contents of the LCD to the external Monitor
via vnc. Worked, but awfully slow.


The following xorg.conf seems to work flawlessly: X just
clones the display on the monitor output. No need to
connect the monitor prior to starting X, no problems with
S3 Sleep and Software Suspend2 ...
The only drawback is that overlays (e.g. xine) are displayed
only on the internal LCD. Don't know how to fix this. It Would
be nice to switch the overlay from internal to external
display with some script...



----------------snip----------------------------------

Section "Files"
         FontPath        "unix/:7100"
         FontPath        "/usr/lib/X11/fonts/misc"
         FontPath        "/usr/lib/X11/fonts/cyrillic"
         FontPath        "/usr/lib/X11/fonts/100dpi/:unscaled"
         FontPath        "/usr/lib/X11/fonts/75dpi/:unscaled"
         FontPath        "/usr/lib/X11/fonts/Type1"
         FontPath        "/usr/lib/X11/fonts/CID"
         FontPath        "/usr/lib/X11/fonts/Speedo"
         FontPath        "/usr/lib/X11/fonts/100dpi"
         FontPath        "/usr/lib/X11/fonts/75dpi"
EndSection


Section "ServerFlags"
     Option "AllowMouseOpenFail"
     Option "RandR" "on"
EndSection

Section "Extensions"
     Option  "Composite"     "Enable"
EndSection



Section "Module"
         Load    "GLcore"
         Load    "v4l"
         Load    "bitmap"
         Load    "dbe"
         Load    "dri"
         Load    "extmod"
         Load    "freetype"
         Load    "glx"
         Load    "record"
         Load    "speedo"
         Load    "type1"
EndSection

Section "InputDevice"
         Identifier      "Generic Keyboard"
         Driver          "keyboard"
         Option          "CoreKeyboard"
         Option          "XkbRules"      "xfree86"
         Option          "XkbModel"      "pc102"
         Option          "XkbLayout"     "de"
         Option          "XkbVariant"    "nodeadkeys"
EndSection

Section "InputDevice"
         Identifier      "Configured Mouse"
         Driver          "mouse"
         Option          "CorePointer"
         Option          "Device"                "/dev/psaux"
         Option          "Protocol"              "ImPS/2"
         Option          "EmulateWheel"          "on"
         Option          "EmulateWheelButton"    "2"
EndSection


Section "Device"
     Identifier  "Intel0"
     Driver      "i810"
     Option      "VBERestore" "yes"
     Option      "Clone" "true"
     Option      "MonitorLayout" "CRT,LFP"
     BusID       "PCI:0:2:0"
     Screen 0
EndSection

Section "Device"
     Identifier  "Intel1"
     Driver      "i810"
     Option      "VBERestore" "no"
     Option      "Clone" "true"
     Option      "MonitorLayout" "CRT,LFP"
     BusID       "PCI:0:2:0"
     Option      "DevicePresence"        "yes"
     Screen 1
EndSection

Section "Monitor"
     Identifier  "LCD"
     HorizSync   28-49
     VertRefresh 43-72
     Option      "DPMS"
EndSection

Section "Monitor"
     Identifier  "External Monitor"
     HorizSync   31-64
     VertRefresh 56-75
     Option      "DPMS"
EndSection


Section "Screen"
     Identifier          "LCD"
     Device              "Intel0"
     Monitor             "LCD"
     DefaultDepth        24
     SubSection "Display"
         Depth 24
         Modes   "1024x768" "800x600" "640x480"
     EndSubSection
EndSection

Section "Screen"
     Identifier          "VGA"
     Device              "Intel1"
     Monitor             "External Monitor"
     DefaultDepth        24
     SubSection "Display"
         Depth 24
         Modes "1024x768" "800x600" "640x480"
     EndSubSection
EndSection


Section "ServerLayout"
     Identifier  "Default Layout"
     Screen      "LCD"
#    Screen     0       "LCD"
#    Screen     1       "VGA" RightOf "LCD"
     InputDevice "Generic Keyboard"
     InputDevice "Configured Mouse"
     Option      "Xinerama" "false"
EndSection




Section "DRI"
         Mode    0666
EndSection