[ltp] T40p, K.Weidners Multihead approach
Paul Kaplan
linux-thinkpad@linux-thinkpad.org
Tue, 27 Jan 2004 20:53:41 -0500
Mike,
I never got the vnc thing to work on a T40 (1024x768 internal monitor,
1280x1024 external panel), but I modified the XF86Config-4 file and got it to
work for X4.3. You can set the Xinerama false/true option to have two
independent desktops / a single virtual desktop, respectively (or you can set
up two Server Layout sections and start X with the --layout option). (You
may have to modify the resolutions for your hardware.) For my machine (stock
Mandrake 9.2), a 1024x768 projector will slave the laptop LCD display without
having to use the file below.
Paul
---------------------
***Begin XF86Config***
#### BEGIN DEBCONF SECTION
# COMMENTED LINES REMOVED
# XF86Config-4 (XFree86 server configuration file) generated by dexconf, the
# Debian X Configuration tool, using values from the debconf database.
#
# Edit this file with caution, and see the XF86Config-4 manual page.
# (Type "man XF86Config-4" at the shell prompt.)
#
# If you want your changes to this file preserved by dexconf, only make
changes
# before the "### BEGIN DEBCONF SECTION" line above, and/or after the
# "### END DEBCONF SECTION" line below.
Section "Files"
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Mandrake 6.0 and later now use a font server independent
of
# the X server to render fonts.
FontPath "unix/:-1"
EndSection
Section "ServerFlags"
AllowMouseOpenFail # allows the server to start up even if the mouse
doesn't work
#DontZoom # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching)
#DontZap # disable <Crtl><Alt><BS> (server abort)
EndSection
Section "Module"
Load "ddc"
Load "GLcore"
Load "dbe" # double buffer extension
Load "dri"
Load "extmod"
# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
SubSection "extmod"
Option "omit xfree86-dga"
EndSubSection
Load "glx"
Load "bitmap"
Load "speedo"
Load "type1"
Load "freetype"
Load "record"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "en_US"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/psaux"
Option "Protocol" "PS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons"
EndSection
Section "InputDevice"
Identifier "Generic Mouse"
Driver "mouse"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
EndSection
Section "Device"
Identifier "Radeon0"
Screen 0
Driver "radeon"
# Option "AGPMode" "1" # needs agpgart >= 2.4.21-rc1-ac2
Option "MonitorLayout" "NONE, TMDS"
Option "CloneDisplay" "0"
Option "CloneMode" "1280x1024"
# Option "CloneHSync" "30-80"
# Option "CloneVRefresh" "60-90"
Option "CloneHSync" "28-65"
Option "CloneVRefresh" "57-75"
BusID "PCI:1:0:0"
EndSection
Section "Device"
Identifier "Radeon1"
Screen 1
Driver "radeon"
# Option "AGPMode" "1" # needs agpgart >= 2.4.21-rc1-ac2
Option "MonitorLayout" "NONE, TMDS"
BusID "PCI:1:0:0"
EndSection
Section "Monitor"
Identifier "LCD"
Option "DPMS"
EndSection
Section "Monitor"
Identifier "External Monitor"
# HorizSync 30-60
# VertRefresh 43-90
HorizSync 25-65
VertRefresh 57-75
Option "DPMS"
EndSection
Section "Screen"
Identifier "LCD"
Device "Radeon0"
Monitor "LCD"
DefaultDepth 24
SubSection "Display"
Depth 16
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 32
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "Screen"
Identifier "External"
Device "Radeon1"
Monitor "External Monitor"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
#Section "Screen"
# Identifier "s1024"
# Device "Radeon0"
# Monitor "LCD"
# DefaultDepth 24
# SubSection "Display"
# Depth 8
# Modes "1024x768"
# EndSubSection
# SubSection "Display"
# Depth 16
# Modes "1024x768"
# EndSubSection
# SubSection "Display"
# Depth 24
# Modes "1024x768"
# EndSubSection
#EndSection
#Section "Screen"
# Identifier "s640"
# Device "Radeon0"
# Monitor "LCD"
# DefaultDepth 24
# SubSection "Display"
# Depth 8
# Modes "640x480"
# EndSubSection
# SubSection "Display"
# Depth 16
# Modes "640x480"
# EndSubSection
# SubSection "Display"
# Depth 24
# Modes "640x480"
# EndSubSection
#EndSection
Section "ServerLayout"
Identifier "indep"
Screen 0 "LCD"
Screen 1 "External" RightOf "LCD"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Generic Mouse"
Option "Xinerama" "false"
# Option "Xinerama" "true"
EndSection
Section "ServerLayout"
Identifier "xine"
Screen 0 "LCD"
Screen 1 "External" Above "LCD"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Generic Mouse"
Option "Xinerama" "true"
EndSection
Section "DRI"
Mode 0666
EndSection
### END DEBCONF SECTION
---------------------
On Tuesday 27 January 2004 05:55 pm, Michael Stilkerich wrote:
> Hi,
>
> basically I have the problem that I want to use the VGA out of my T40p
> to connect a beamer to it which is limited to a 1024x768 resolution.
> In the archive I found a thread which K.Weidner made an approach in
> using a second independent display and running a vnc server on it.
> [
> http://mailman.linux-thinkpad.org/pipermail/linux-thinkpad/2003-November/01
>3701.html ] This sounds like being exactly what I need to.. I tried the
> config and fizzled a bit around with it, but it doesn't work for me:
>
> The monitor does not show the gray X screen but fires up my window
> manager at 1024x768. Now when running vncserver on :3 and connecting
> it with vncclient to my :0 Display i see that there is a third X
> which is running kde in it (the VGA and LCD both are running my default
> WM enlightenment).
>
> I played around with the CloneDisplay options but it doesn't stop from
> starting the WM on the VGA.
>
> I use the XFree 4.3pre4 packages from Debian/experimental and the radeon
> driver of the DRI CVS.
>
> For reference, I attach my XF86Config in its current state; of course I
> already tried the supposed config posted by KW.
>
> Would be thankful for any hint which could help me in solving that
> problem..
>
> Mike.