[ltp] External Monitor

Petr Ferschmann linux-thinkpad@linux-thinkpad.org
Mon, 01 Mar 2004 18:28:34 +0100


--=-4ovSpZzh7DwQlFwBth/3
Content-Type: text/plain; charset=iso-8859-2
Content-Transfer-Encoding: 8bit

Hello,

there are two options:
- both displays uses same resolution. Both can show 
        Option          "CloneDisplay"  "on"
        Option          "CloneHSync" "120"
        Option          "CloneVRefresh" "160"
        Option          "CloneMode"     "1024x768"
	Option          "PanelOff"      "off"
This options are ATI specific.
(I have X31 with internal resolution 1024x768) 
Advantage: you are not required to logout to have higher refresh rate on
external display.

- external display uses bigger resolution (not tested)
        Option          "CloneDisplay"  "on"
        Option          "CloneHSync" "120"
        Option          "CloneVRefresh" "160"
        Option          "CloneMode"     "1280x1024"
	Option          "PanelOff"      "on"

Internal display should be off.
- Xinerama - both displays show different content:
Section "Device"
        Identifier      "Internal"
        Screen          0
        BusID           "PCI:1:0:0"
        Driver          "radeon"
EndSection

Section "Device"
        Identifier      "Internal2"
        Screen          1
        BusID           "PCI:1:0:0"
        Driver          "radeon"
EndSection

...


The only problem is with XFree86 server. You can't switch this profiles
without relogin. You can use xrandr but it neither work with xinerama
nor with other options satisfiably.


V Po, 01. 03. 2004 v 03:35, Daniel Jimenez píše:
> Sorry for so many questions today. I'm just trying to finish up my thinkpad!
> 
> I have an IBM Thinkpad T41p. When I come home I plug the laptop into my 
> Viewsonic P225fb monitor. This monitor obviously has a different refresh 
> rate and resolution than my laptop (Laptop is 1400x1050 LCD, desktop is 
> 1600x1200 CRT). How can I configure X to support both of these monitors 
> depending on which one is plugged in?
> 
> Right now if I plug my CRT in I get 1600x1200 but at a horrible eye 
> straining 50hz.
> 
> Here is my current XF86Config:
> 
> Code:
> 
> > Section "ServerLayout"
> >         Identifier     "single head configuration"
> >         Screen      0  "Screen0" 0 0
> >         InputDevice    "DevInputMice" "CorePointer"
> >         InputDevice    "Keyboard0" "CoreKeyboard"
> > EndSection
> > 
> > Section "Files"
> >     RgbPath      "/usr/X11R6/lib/X11/rgb"
> >     FontPath     "unix/:7100"
> >     FontPath   "/usr/X11R6/lib/X11/fonts/local/"
> >     FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
> >     FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
> >     FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
> >     FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
> >     FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
> >     FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
> >     FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"
> >     FontPath   "/usr/share/fonts/artwiz/"
> >     FontPath   "/usr/share/fonts/corefonts/"
> > EndSection
> > 
> > Section "Module"
> >         Load  "dbe"
> >         Load  "extmod"
> >         Load  "fbdevhw"
> >         Load  "glx"
> >         Load  "record"
> >         Load  "freetype"
> >         Load  "type1"
> >         Load  "dri"
> > EndSection
> > 
> > Section "InputDevice"
> >         Identifier  "Keyboard0"
> >         Driver      "keyboard"
> >         Option      "XkbRules" "xfree86"
> >         Option      "XkbModel" "pc105"
> >         Option      "XkbLayout" "en_us"
> > EndSection
> > 
> > Section "InputDevice"
> >         Identifier  "DevInputMice"
> >         Driver      "mouse"
> >         Option      "Protocol" "ExplorerPS/2"
> >         Option      "Device" "/dev/input/mice"
> >         Option      "Buttons" "7"
> >         Option      "ZAxisMapping" "6 7"
> >         Option      "Emulate3Buttons" "no"
> > EndSection
> > 
> > Section "Monitor"
> >         Identifier   "Monitor0"
> >         VendorName   "Monitor Vendor"
> >         ModelName    "LCD Panel 1400x1050"
> >         Option      "dpms"
> > 
> > EndSection
> > 
> > Section "Device"
> >         Identifier  "Videocard0"
> >         Driver      "radeon"
> >         VendorName  "ATI"
> >         BoardName   "ATI Radeon Mobility M9"
> > EndSection
> > 
> > Section "Screen"
> >         Identifier "Screen0"
> >         Device     "Videocard0"
> >         Monitor    "Monitor0"
> >         DefaultDepth     16
> >         SubSection "Display"
> >                 Depth     24
> >                 Modes    "1600x1200" "1400x1050" "768x576"
> >         EndSubSection
> >         SubSection "Display"
> >                 Depth     16
> >                 Modes    "1600x1200" "1400x1050"
> >         EndSubSection
> > EndSection
> > 
> > Section "DRI"
> >         Group        0
> >         Mode         0666
> > EndSection
> 
> Thanks!,
> Daniel
> -- 
> Daniel Jimenez <djimenez[at]pobox[dot]com>
> Tell your ISP to support SPF/SASL AUTH (http://spf.pobox.com) today!
> --------------------------------------------------------------------/

--=-4ovSpZzh7DwQlFwBth/3
Content-Disposition: attachment; filename=XF86Config-4
Content-Type: text/plain; name=XF86Config-4; charset=iso-8859-2
Content-Transfer-Encoding: 7bit

# 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 manual page.
# (Type "man XF86Config" at the shell prompt.)

Section "Files"
	# if the local font server has problems, we can fall back on these
	FontPath     	"/usr/share/fonts/truetype/"
	FontPath     	"/usr/X11R6/lib/X11/fonts/TrueType/"
	FontPath     	"/usr/lib/X11/fonts/latin2/75dpi/"
	FontPath     	"/usr/lib/X11/fonts/latin2/100dpi/"
	FontPath     	"/usr/lib/X11/fonts/latin2/Type1/"
	FontPath     	"/usr/share/fonts/truetype/openoffice/"
	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/Speedo"
	FontPath	"/usr/lib/X11/fonts/100dpi"
	FontPath	"/usr/lib/X11/fonts/75dpi"
	RgbPath      	"/usr/X11R6/lib/X11/rgb"
	ModulePath   	"/usr/X11R6/lib/modules"
EndSection

Section "ServerFlags"
	Option		"AllowMouseOpenFail"    "true"
	Option          "DontZap" "on"
	Option          "VTSysReq" "on"
	Option		"NoTrapSignal" "on"
	Option		"DontZoom" "on"
	Option          "BlankTime" "5"
	Option          "StandbyTime" "9"
	Option          "OffTime"     "10"
EndSection

Section "Module"
	Load	"ddc"
	Load	"GLcore"
	Load	"dbe"
	Load	"dri"
	Load    "drm"
	Load	"extmod"
	Load	"glx"
	Load	"fbdevhw"
	Load	"pex5"
	Load	"record"
	Load	"xie"
	Load 	"xinerama"
	Load	"bitmap"
	Load	"freetype"
	Load	"speedo"
	Load	"type1"
	Load	"vbe"
	Load	"int10"
	Load    "synaptics"
EndSection

Section "InputDevice"
	Identifier	"Internal Keyboard"
	Driver		"keyboard"
	Option		"Device"	"/dev/input/event0"
	Option		"XkbRules"	"xfree86"
	Option		"XkbModel"	"pc101"
	Option		"XkbLayout"	"us"
EndSection

Section "InputDevice"
  Driver        "synaptics"
  Identifier    "Touchpad3"
  Option        "Device"        "/dev/input/event2"
  Option        "Edges"         "1900 5400 1800 3900"
  Option        "Finger"        "21 30"
  Option        "MaxTapTime" "20"
  Option        "MaxTapMove" "220"
  Option        "VertScrollDelta" "100"
  Option        "MinSpeed"      "0.06"
  Option        "MaxSpeed"      "0.30"
  Option        "AccelFactor" "0.0020"
  Option       "SHMConfig"     "on"

	Option		"Emulate3Buttons"	"true"
	Option		"ZAxisMapping"		"4 5"
EndSection

Section "InputDevice"
	Identifier	"Internal Trackpoint"
	Driver		"mouse"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ImPS/2"
	Option		"Emulate3Buttons"	"true"
	Option		"ZAxisMapping"		"4 5"
	Option		"EmulateWheel"		"true"
	Option		"EmulateWheelButton"	"2"
	Option		"XAxisMapping"		"6 7"
	Option		"YAxisMapping"		"4 5"
EndSection

Section "InputDevice"
	Identifier	"External mouse USB"
	Driver		"mouse"
	Option		"Device"		"/dev/input/mouse1"
	Option		"Protocol"		"ImPS/2"
	Option		"Emulate3Buttons"	"true"
	Option		"ZAxisMapping"		"4 5"
EndSection

Section "Device"
	Identifier	"Internal"
	Screen		0
	BusID		"PCI:1:0:0"
	Driver		"radeon"
#	Driver		"trident"
#	Option 		"Display" "CRT"
	Option		"AGPMode" "4"
EndSection

Section "Device"
	Identifier	"Internal2"
	Screen		1
	BusID		"PCI:1:0:0"
	Driver		"radeon"
#	Option		"CyberStretch"	"false"
#	Option 		"Display"	"LCD"
	Option		"AGPMode" "4"
EndSection

Section "Monitor"
	Identifier	"LCD 1024x768"
	VendorName	"Acer"
	ModelName	"Travelmate"
	DisplaySize	263 210
	HorizSync	30-120
	VertRefresh	50-160
	Option 		"EnablePageFlip" "true"

	Option          "CloneDisplay"  "on"
	Option 		"CloneHSync" "120"
	Option 		"CloneVRefresh" "160"
	Option          "CloneMode"     "1024x768"
	Option          "PanelOff"      "off"

	Option		"DPMS"	"true"
#	ModeLine "1024x768" 65.14 1024 1032 1276 1376 768 798 808
EndSection

Section "Monitor"
	Identifier	"External Monitor"
	VendorName	"Acer"
	ModelName	"Travelmate"
	HorizSync	30-120
	VertRefresh	50-120
	Option		"DPMS"	"true"
EndSection

Section "Screen"
	Identifier	"LCD Screen"
	Device		"Internal"
	Monitor		"LCD 1024x768"
	DefaultDepth	16
	Option		"DPMS"	"true"

	SubSection "Display"
		Depth		8
		Modes		"1024x768"
	EndSubSection
	SubSection "Display"
		Depth		16
		Modes		"1024x768"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1024x768"
	EndSubSection
	SubSection "Display"
		Depth		32
		Modes		"1024x768"
	EndSubSection

EndSection

Section "Screen"
	Identifier	"Second Screen"
	Device		"Internal2"
	Monitor		"External Monitor"
	DefaultDepth	16
	Option		"DPMS"	"true"

	SubSection "Display"
		Depth		8
		Modes		"1280x1024" "1024x768" "800x600" "640x480"
	EndSubSection
	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 "ServerLayout"
	Identifier	"Default"

	Screen		"LCD Screen"
	InputDevice	"Internal Keyboard"   "CoreKeyboard"
#	InputDevice	"Touchpad3" 	      "SendCoreEvents"
#	InputDevice	"Touchpad2" 	      "SendCoreEvents"
#	InputDevice	"External Mouse USB"      "SendCoreEvents"
	InputDevice	"Internal Trackpoint" "CorePointer"
EndSection

Section "ServerLayout"
	Identifier	"DualHead"

	Option          "Xinerama" "on"
	Screen		"LCD Screen"
	Screen		"Second Screen" Above "LCD Screen"
	InputDevice	"Internal Keyboard"   "CoreKeyboard"
#	InputDevice	"Touchpad3" 	      "SendCoreEvents"
#	InputDevice	"Touchpad2" 	      "SendCoreEvents"
#	InputDevice	"External Mouse USB"      "SendCoreEvents"
	InputDevice	"Internal Trackpoint" "CorePointer"
EndSection

Section "DRI"
	Mode	0666
EndSection

# end of XF86Config

--=-4ovSpZzh7DwQlFwBth/3--