[ltp] T40p, K.Weidners Multihead approach

Michael Stilkerich linux-thinkpad@linux-thinkpad.org
Tue, 3 Feb 2004 20:58:11 +0100


--wRRV7LY7NUeQGEoC
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

* Chan-Wah NG <cwng@psl.com.sg> [2004-02-03 20:25]:
> Hello Michael,
> 
> Wpuld you care to post your XF86Config?  I was interested in this thread
> too... I was trying to get my T41 to display different screen on the LCD
> and the VGA port (connected to projector) but to no avail.  It was
> always the same as my LCD, and thus forcing me to use a smaller
> resolution (like 1024x768) for the LCD (which is capable of 1400x1050)
> when using the projector.
> 
> /rgds
> /cwng 
> 

Hi,

np here we go :)
Be aware that my config was actually tested on a Syncmaster 193T TFT
Display and worked on it pretty well but unfortunately it failed when
I connected it to the beamer. I then connected it to an VGA Monitor
which made the config also fail - the reason (at least I beleave!) was
that I missed adding the Refresh Rates for the external Monitor which
was no problem for the TFT, of course but for the projector. In the
attached config this thing is working at least on the VGA Monitor, I'll
take the next opportunity to test it on a projector or maybe you could
test and post the result before I blame myself again ;)
Layout indep is what you want for the 1024 Monitor, theres another
layout indep800 which does the same with an 800x600 resolution only.

start your X Server with startx -- -layout indep
to get it up.

Then open an xterm,
run the vncserver: 
vncserver -geometry 1024x768 :3

wait till it has come up and then run the
client on your LCD Display
vncclient -shared -truecolor -nocursorshape :3

and finally the fullscreen one on the projector
vncclient -shared -nocursorshape -truecolor -fullscreen -display :0.1 :3

Now close your eyes and pray to god that everythings alright when you
open them again ;)

Hope this works for you.

At this point, big thanks to Klaus Weidner for this great idea:)
(btw I'm still interested in how to prevent the Window Manager
starting on :0.1 or even in how to start a different Window Manager
on :0.1 than on :0.0 as KW states in his mailing)

Mike.


--wRRV7LY7NUeQGEoC
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=XF86Config-4


# 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.
#
# To change things within the debconf section, run the command:
#   dpkg-reconfigure xserver-xfree86
# as root.  Also see "How do I add custom sections to a dexconf-generated
# XF86Config or XF86Config-4 file?" in /usr/share/doc/xfree86-common/FAQ.gz.

Section "ServerLayout"
	Identifier     "single"
	Screen         "LCD" 0 0
	InputDevice    "TP Keyboard"
	InputDevice    "UltraNav" "CorePointer"
	InputDevice    "usbmouse"
	InputDevice    "vncMouse" "ExtraPointer"
	InputDevice    "vncKeyboard" "ExtraKeyboard"
EndSection

Section "ServerLayout"
	Identifier     "indep"
	Screen      0  "LCD" 0 0
	Screen      1  "VGA" 0 0
	InputDevice    "TP Keyboard"
	InputDevice    "UltraNav" "CorePointer"
	InputDevice    "usbmouse"
  InputDevice    "vncMouse" "ExtraPointer"
  InputDevice    "vncKeyboard" "ExtraKeyboard"
	Option	    "Xinerama" "false"
EndSection

Section "ServerLayout"
	Identifier     "indep800"
	Screen      0  "LCD" 0 0
	Screen      1  "VGA800" 0 0
	InputDevice    "TP Keyboard"
	InputDevice    "UltraNav" "CorePointer"
	InputDevice    "usbmouse"
  InputDevice    "vncMouse" "ExtraPointer"
  InputDevice    "vncKeyboard" "ExtraKeyboard"
	Option	    "Xinerama" "false"
EndSection

Section "ServerLayout"
  Identifier     "xine"
	Screen  0 "LCD" 0 0
	Screen  1 "VGA" 0 0
	InputDevice    "TP Keyboard"
	InputDevice    "UltraNav" "CorePointer"
	InputDevice    "usbmouse"
	InputDevice    "vncMouse" "ExtraPointer"
	InputDevice    "vncKeyboard" "ExtraKeyboard"
	Option      "Xinerama" "true"
EndSection

Section "Files"
	ModulePath "/usr/X11R6/lib/modules-dri-trunk"
	ModulePath "/usr/X11R6/lib/modules"
#		RgbPath "/usr/X11R6/lib/X11/rgb"
  # Added by ttf-commercial
	 # FontPath  "/usr/lib/X11/fonts/CID"
	FontPath     "/usr/lib/X11/fonts/misc"
	FontPath     "/usr/lib/X11/fonts/75dpi/:unscaled"
	FontPath     "/usr/lib/X11/fonts/100dpi/:unscaled"
	FontPath     "/usr/lib/X11/fonts/Type1"
	FontPath     "/usr/lib/X11/fonts/Speedo"
	FontPath     "/usr/lib/X11/fonts/75dpi"
	FontPath     "/usr/lib/X11/fonts/100dpi"
	FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
	FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
	FontPath     "/usr/X11R6/lib/X11/fonts/TrueType"
	FontPath     "/usr/lib/X11/fonts/cyrillic"
EndSection

Section "Module"
	Load  "ddc"
	Load  "GLcore"
	Load  "bitmap"
	Load  "dbe"
	Load  "extmod"
	SubSection "extmod"
		Option	    "omit xfree86-dga"
	EndSubSection
	Load  "glx"
	Load  "record"
	Load  "freetype"
	Load  "v4l"
	Load  "ddc"
	Load  "dri"
	Load  "speedo"
	Load  "type1"
	Load  "synaptics"
	Load  "record" # KW
	Load  "vnc"
EndSection

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

Section "InputDevice"
	Identifier  "UltraNav"
	Driver      "synaptics"
	Option	    "CorePointer"
	Option	    "Device" "/dev/psaux"
	Option	    "Protocol" "auto-dev"
	Option	    "LeftEdge" "1900"
	Option	    "RightEdge" "5400"
	Option	    "TopEdge" "1900"
	Option	    "BottomEdge" "4000"
	Option	    "FingerLow" "25"
	Option	    "FingerHigh" "30"
	Option	    "MaxTapTime" "180"
	Option	    "MaxTapMove" "220"
	Option	    "VertScrollDelta" "100"
	Option	    "MinSpeed" "0.06"
	Option	    "MaxSpeed" "0.18"
	Option	    "AccelFactor" "0.0010"
	Option	    "SHMConfig" "on"
	#  Option       "Repeater"      "/dev/ps2mouse"
EndSection

Section "InputDevice"
	Identifier  "usbmouse"
	Driver      "mouse"
	Option	    "SendCoreEvents" "true"
	Option	    "Device" "/dev/input/mice"
	Option	    "Protocol" "ImPS/2"
	Option	    "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
	Identifier  "vncMouse"
	Driver      "rfbmouse"
EndSection

Section "InputDevice"
	Identifier  "vncKeyboard"
	Driver      "rfbkeyb"
EndSection

Section "Monitor"

	#HorizSync	28-50
	#VertRefresh	60 #43-75
	Identifier   "TP LCD"
	Option	    "DPMS"
EndSection

Section "Monitor"
	Identifier   "External Monitor"
	HorizSync	30-60
	VertRefresh	43-90
	Option	    "DPMS"
EndSection

Section "Device"

	Option		"AGPMode" "1" 
	#Option		"AGPFastWrite" "true"
	#Option		"CloneVRefresh" "60-90"
	Identifier  "Radeon0"
	Driver      "radeon"
	Option	    "MonitorLayout" "LVDS, CRT"
	#Option		"PanelOff" "true"
	Option	    "CloneDisplay" "0"
	Option	    "CloneMode" "1024x768"
	#Option		"CloneHSync" "30-80"
	#Option	    "usevnc" "on"
	#Option	    "useraccept" "off"
	BusID       "PCI:1:0:0"
EndSection

Section "Device"

	#Option		"ForcePCIMode" "true" # works but crashes
	#Option		"SWcursor" "true" # paranoid mode
	Option		"AGPMode" "1"
	#Option    "AGPFastWrite" "true"
	#Option          "UseFBDev"              "true"
	#Option		"MonitorLayout" "NONE, TMDS"
	#Option		"PanelOff" "true"
	Identifier  "Radeon1"
	Driver      "radeon"
	BusID       "PCI:1:0:0"
	Screen      1
EndSection

Section "Screen"
	Identifier "LCD"
	Device     "Radeon0"
	Monitor    "TP LCD"
	DefaultDepth     24
	SubSection "Display"
		Depth     16
		Modes    "1400x1050" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     24
		Modes    "1400x1050" "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

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

Section "Screen"
	Identifier "VGA800"
	Device     "Radeon1"
	Monitor    "External Monitor"
	DefaultDepth     24
	SubSection "Display"
		Depth     24
		Modes    "800x600" "640x480"
	EndSubSection
EndSection

Section "DRI"
	Mode         0666
EndSection


--wRRV7LY7NUeQGEoC--