[ltp] thinkpad with external monitor howto (2001FP)

Shaw Vrana linux-thinkpad@linux-thinkpad.org
Sun, 13 Feb 2005 22:02:49 -0800


--Boundary-00=_J8DECC9AUNy1WSz
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Sunday 13 February 2005 07:51 pm, Alex Deucher wrote:
> On Sun, 13 Feb 2005 17:45:55 -0800, Shaw <shawv@comcast.net> wrote:
> > On Sunday 13 February 2005 03:35 pm, Alex Deucher wrote:
> > > On Sun, 13 Feb 2005 14:31:05 -0800, Shaw <shawv@comcast.net> wrote:
> > > > On Sunday 13 February 2005 01:51 pm, Alex Deucher wrote:
> > > > > mergedfb is what you want.  You need to set a metamode for the set
> > > > > up you want, eg:
> > > > > Option "metamodes" "1024x768-1600x1200"
> > > > > Option "crt2position" "clone"
> > >
> > > add 1600x1200 to your screen section:
> > > even though crtc1 won't use it, mergedfb uses these modes as it's mode
> > > pool.  Also for flexability you may want to add some other modes to
> > > your metamodes.  Then you can use  xrandr to switch between then.
> >
> > I added the 1600x1200 to the front of the Modes in the screen section,
> > though I did have it there previously as the 2nd element. (see mode line
> > from above) I'm still finding that mergeFB disables itself because it
> > cannot figure out the modes and/or metamodes.
>
> you shoudl probably remove the second screen section from your
> serverlayout:
>
> Section "ServerLayout"
>  Identifier  "layout1"
>  Screen   "Screen 1"
>  Screen   "ExternalLCD"   <---  REMOVE THIS LINE
>  InputDevice "Mouse1"  "CorePointer"
>  InputDevice "Keyboard1" "CoreKeyboard"
> EndSection
>
> > I'm not sure if the order of the metamodes matters (1024x768-1600x1200 as
> > opposed to 1600x1200-1024x768), so I added the later without any success.
> > I also tried setting my monitorlayout option to lvds, crt  but as that
> > didn't help I removed it once again.
>
> The order does matter.  the first is the mode for crtc1 (LCD in this
> case) and the second is for crtc2 (vga port).
>
> > How have I manged to screw up the modes so mergeFB doesn't understand
> > them? Or is there another part of the configuration I'm missing?
>
> you might also try and set the hsync and vrefresh for crtc2:

Removing my second Screen from the ServerLayout did the trick.  Thanks for 
sticking with me through this!

I was surprised to learn the solution was to remove the Screen I had setup to 
represent the external monitor.  Perhaps that is the way to approach the dual 
head display..?  I guess here we're setting up different views of the 
framebuffer, as opposed to Screens.

In any event, it's beautiful.  Excellent work on this, Alex.

Thanks!
Shaw

I've attached the working version of my xorg.conf for those who might stumble 
across this exchange later.  I've kept the ExternalLCD Screen definition, 
though it is unused.

--Boundary-00=_J8DECC9AUNy1WSz
Content-Type: text/plain;
  charset="iso-8859-1";
  name="xorg.conf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="xorg.conf"

###############################################################################
# Xorg configuration
###############################################################################

Section "Module"
    Load 	"dbe"  	

    SubSection "extmod"
      	Option    "omit xfree86-dga"   
    EndSubSection

    Load 	"type1"
    Load 	"freetype"
    Load 	"glx"
    Load 	"dri"
EndSection

Section "Files"
   RgbPath		"/usr/lib/X11/rgb"
   FontPath 	"/usr/share/fonts/TTF"
   FontPath  	"/usr/share/fonts/Type1"
   FontPath  	"/usr/share/fonts/corefonts"
   FontPath  	"/usr/share/fonts/freefont"
   FontPath 	"/usr/share/fonts/misc"
   FontPath 	"/usr/share/fonts/terminus"
   FontPath 	"/usr/share/fonts/ttf-bitstream-vera"
   FontPath 	"/usr/share/fonts/artwiz"
EndSection

Section "ServerFlags"
	Option 		"backingstore" 	"true"
EndSection

Section "InputDevice"
    Identifier	"Keyboard1"
    Driver		"kbd"

    Option 		"AutoRepeat" 	"500 30"
    Option 		"XkbOptions"  	"ctrl:nocaps"
    Option 		"XkbModel"    	"pc101"
    Option 		"XkbLayout"   	"us"
    Option 		"XkbVariant"  	""
    Option		"XkbOptions"  	""
EndSection

Section "InputDevice"
    Identifier 	"Mouse1"
    Driver		"mouse"

    Option 		"Protocol"    	"ExplorerPS/2"
    Option 		"Device"      	"/dev/input/mice"
    Option 		"Buttons"    	"7"
    Option 		"ZAxisMapping" 	"6 7"
EndSection

Section "Monitor"
	ModelName 	"Flat Panel 1024x768"
	Identifier  "monitor1"
	HorizSync   31.5-48.5
	VertRefresh 40-70
EndSection

Section "Monitor"
	ModelName 	"Dell 2001FP (Digital)"
	Identifier 	"External"
	HorizSync 	31.0-80.0	
	VertRefresh 56.0-76.0
EndSection

Section "Device"
	Identifier	"device1"
	Driver      "radeon"
	VendorName	"ATI"
	BoardName	"ATI Radeon"

	#Option 		"MonitorLayout" "LVDS, CRT"
	Option 		"MergedFB" 		"On"
	Option 		"DPMS" 			"On"
	Option 		"MetaModes" 	"1024x768-1600x1200" 
	Option 		"CRT2Position" 	"Clone"
	Option 		"CRT2Hsync" 	"31.0-80.0" 
	Option 		"CRT2Vrefresh" 	"56.0-76.0"
EndSection

Section "Screen"
	Identifier  	"Screen 1"
	Device      	"device1"
	Monitor     	"monitor1"
	DefaultDepth 	16

	Subsection "Display"
		Depth       16
		#Modes       "1600x1200" "1024x768" "1600x1200" "800x600"
		Modes 		"1600x1200" "1280x1024" "1024x768" "800x600"
		ViewPort    0 0
	EndSubsection
EndSection

Section "Screen"
	Identifier 		"ExternalLCD"
	Device 			"device1"
	Monitor 		"External"
	Defaultdepth 	16

	Subsection "Display"
		Depth 		16
		Modes 		"1600x1200" "1280x1024" "1024x768" "800x600"
		Viewport 	0 0
	EndSubsection
EndSection

Section "ServerLayout"
	Identifier  	"layout1"
	Screen 			"Screen 1"
	#Screen 		"ExternalLCD" 
	InputDevice 	"Mouse1" 		"CorePointer"
	InputDevice 	"Keyboard1" 	"CoreKeyboard"
EndSection

Section "DRI"
	Mode 0666
EndSection

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

--Boundary-00=_J8DECC9AUNy1WSz--