[ltp] external monitor Fn-F7

Giuseppe Castagna linux-thinkpad@linux-thinkpad.org
Fri, 27 May 2005 15:47:28 +0200


This is a multi-part message in MIME format.
--------------000202020204070501040506
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

James Knott wrote:

>>I have an x40 running ubuntu (hoary) with the intel i855 chipset. my
>>external monitor is a 17 inch LCD with 1280x1024 native resolution.
>>Ideally, I'd be able to switch to any external monitor (or projector.) 
>>
>>I'd also love to map Fn-F7 to toggle between laptop,external,both, (and
>>if i'm lucky, cloning or side by side)
> 

I have an X40, never used with external monitor, but I often use it with 
videoprojectors, and it does exactly what you want. I do not remember the 
solution I found since it was some time ago, but it works for me with the 
attached xorg.conf file and the experimental driver you find at

http://www.fairlite.demon.co.uk/intel.html

Hope it helps

Beppe


--------------000202020204070501040506
Content-Type: text/plain;
 name="xorg.conf"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="xorg.conf"


# XFree86 4 configuration created by pyxf86config

Section "ServerLayout"
	Identifier     "Default Layout"
	Screen	0  	"LCD" 0 0
	Screen	1 	"VGA" LeftOf "LCD" 
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "ServerFlags"
	Option "Xinerama" "true"
	Option "Clone" "true"
EndSection

Section "Files"

# RgbPath is the location of the RGB database.  Note, this is the name of the 
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
	RgbPath      "/usr/X11R6/lib/X11/rgb"
	FontPath     "unix/:7100"
EndSection

Section "Module"
	Load  "dbe"
	Load  "extmod"
	Load  "fbdevhw"
	Load  "glx"
	Load  "record"
	Load  "freetype"
	Load  "type1"
	Load  "dri"
EndSection

Section "InputDevice"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#	Option	"Xleds"		"1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
#	Option	"XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a non-U.S.
# keyboard, you will probably want to use:
#	Option	"XkbModel"	"pc102"
# If you have a US Microsoft Natural keyboard, you can use:
#	Option	"XkbModel"	"microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#	Option	"XkbLayout"	"de"
# or:
#	Option	"XkbLayout"	"de"
#	Option	"XkbVariant"	"nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
#	Option	"XkbOptions"	"ctrl:swapcaps"
# Or if you just want both to be control, use:
#	Option	"XkbOptions"	"ctrl:nocaps"
#
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option	    "XkbModel" "pc105"
	Option	    "XkbLayout" "us"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "IMPS/2"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5"
	Option	    "Emulate3Buttons" "yes"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "LCD Panel 1024x768"
	HorizSync    31.5 - 48.5
	VertRefresh  40.0 - 70.0
	Option	    "dpms"
EndSection

Section "Monitor" 
 	Identifier "External Monitor" 
 	HorizSync 31.5-64.3 
 	VertRefresh 50-70 
 	Option  "DPMS" 
EndSection 
 
Section "Device"
	Identifier  "Videocard0"
	Driver      "i810"
	VendorName  "Videocard vendor"
	BoardName   "Intel 915"
#
# These lines added for Xinerama
# till end section
#
 	Option  "VBERestore" "yes" 
 	Option  "MonitorLayout" "CRT,LFP" 
 	Option  "DevicePresence" "yes" 
# 	BusID  "PCI:0:2:0" 
 	VideoRam 128000 
 	Screen  0 
EndSection

Section "Device" 
	 Identifier "Videocard1" 
	 Driver  "i810" 
	 Option  "VBERestore" "no" 
	 Option  "MonitorLayout" "CRT,LFP" 
# Option  "DevicePresence" "yes" 
# BusID  "PCI:0:2:0" 
	 VideoRam 128000 
	 Screen  1 
EndSection 
 

Section "Screen"
	Identifier "LCD"
	Device     "Videocard0"
	Monitor    "Monitor0"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Depth     16
		Modes     "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
		Modes    "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "Screen" 
 	Identifier "VGA" 
	Device  "Videocard1" 
 	Monitor  "External Monitor" 
 	DefaultDepth 16 
 	SubSection "Display" 
  		Depth  16 
  		Modes  "1280x1024" "1024x768" "800x600" "640x480" 
 	EndSubSection 
	SubSection "Display"
		Viewport   0 0
		Depth     24
		Modes    "1280x1024" "1024x768" "800x600" "640x480"
	EndSubSection
EndSection 

#
# quello che segue serve per skippy-xd
# 
Section "Extensions"
  Option "Composite" "Enable"
EndSection


Section "DRI"
	Group        0
	Mode         0666
EndSection


--------------000202020204070501040506--