[ltp] Last desperate attempt to show off my Debian Thinkpad at aconference

Carl-Fredrik Enell linux-thinkpad@linux-thinkpad.org
Fri, 25 Feb 2005 13:25:54 +0200


Hi,


>>>>> "Uwe" == Uwe Brauer <oub@mat.ucm.es> writes:
    Uwe> Thanks for the script.


    Carl-Fredrik> #!/bin/sh
    Carl-Fredrik> #VNCSRV=":3" VNCGEO="1024x768" EXTDSP=":0.1" Moved
    Carl-Fredrik> #to file ./config
    Carl-Fredrik> . config

The file config is in the same directory as the scripts (hence
./config) and contains the lines
VNCSRV=":3"
VNCGEO="1024x768"
EXTDSP=":0.1"

This is just to avoid editing both the up and down scripts if the
Xserver configuration should change (not that I think it will).

I don't use Xinerama but a real two-screen xserver setup. My XF86Config was
found on the URL mentioned here earlier. I include it below. Note the
no-cloning option.

Regards
Carl-Fredrik

# XF86Config-4 (XFree86 server configuration file) generated by Dexconf, the
# Debian X Configuration tool, using values from the debconf database.
#
Section "ServerFlags"
	Option "AllowDeactivateGrabs" "true"
	Option "AllowClosedownGrabs" "true"
EndSection

Section "ServerLayout"
	Identifier	"T41p"
	Screen		0 "Internal" 0 0
	Screen		1 "External" 0 0
	InputDevice	"Keyboard"
	InputDevice	"Touchpad"
	InputDevice	"Trackpoint"
	#InputDevice	"USBmouse"
	Option "BlankTime"      "2"  
	Option "StandbyTime"    "5"  
	Option "SuspendTime"    "10" 
	Option "OffTime"        "15" 
	Option "Xinerama"       "false"
EndSection

Section "Files"
#	FontPath	"unix/:7100"# local font server
	# if the local font server has problems, we can fall back on these
	FontPath	"/usr/lib/X11/fonts/misc/:unscaled"
	FontPath	"/usr/lib/X11/fonts/cyrillic/:unscaled"
	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"
EndSection

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

Section "InputDevice"
	Identifier	"Keyboard"
	Driver		"keyboard"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xfree86"
	Option		"XkbModel"	"pc102"
	Option		"XkbLayout"	"se"
	Option		"XkbOptions"    "ctrl:nocaps"
EndSection

Section "InputDevice"
	Identifier    	"Touchpad"
	Driver        	"synaptics"
	Option		"AlwaysCore"	"true"
	Option        	"Device"        "/dev/input/event0"
	Option		"Protocol"	"auto-dev"
	Option		"LeftEdge"	"1900"
	Option		"RightEdge"	"5400"
	Option		"TopEdge"	"1900"
	Option		"BottomEdge"	"4000"
	Option		"FingerLow"	"25"
	Option		"FingerHigh"	"30"
	Option		"MaxTapTime"	"150"
 	Option        	"MaxTapMove" 	"220"
 	Option        	"VertScrollDelta"	"150"
	Option		"HorizScrollDelta"	"150"
	Option		"EdgeMotionSpeed"	"0.10"
 	Option        	"MinSpeed"      	"0.02"
 	Option        	"MaxSpeed"      	"0.18"
 	Option        	"AccelFactor" 	"0.0010"
 	Option       	"SHMConfig"     "on"
	Option		"TapButton1"	"1"
	Option		"TapButton2"	"2"
	Option		"TapButton3"	"3"
	Option		"EmulateMidButtonTime"	"75"
EndSection

Section "InputDevice"
	Identifier	"Trackpoint"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/psaux"
	Option		"Protocol"		"ImPS/2"
	Option		"AlwaysCore"		"true"
	#Option		"ZAxisMapping"		"4 5"
	#Option		"Emulate3Buttons"	"true"
	#Option		"EmulateWheel"		"true"
	#Option		"EmulateWheelButton"	"2"
EndSection

Section "InputDevice"
	Identifier	"USBmouse"
	Driver		"mouse"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ImPS/2"
	Option		"AlwaysCore"		"true"
	Option		"ZAxisMapping"		"4 5"
#	Option		"Emulate3Buttons"	"true"
#	Option		"EmulateWheel"		"true"
#	Option		"EmulateWheelButton"	"2"
EndSection

Section "Device"
	Identifier	"ATI0"
	Driver		"radeon"
	VendorName  	"ATI Technologies Inc"
	BoardName   	"Unknown Board"
	BusID       	"PCI:1:0:0"
	Screen      	0
	Option         "CloneDisplay"  "0"
EndSection

Section "Device"
	Identifier	"ATI1"
	Driver		"radeon"
	VendorName  	"ATI Technologies Inc"
	BoardName   	"Unknown Board"
	BusID       	"PCI:1:0:0"
	Screen      	1
EndSection


Section "Monitor"
	Identifier	"LCD"
	VendorName   	"LCD"
	ModelName    	"IBM Internal"	
	Option		"DPMS"
EndSection

Section "Monitor"
	Identifier   "SVGA"
	VendorName   "External Monitor"
	ModelName    "Standard SVGA 1024x768x60"
	HorizSync    30-60
	VertRefresh  43-90 
	Option       "DMPS"
EndSection


Section "Screen"
	Identifier	"Internal"
	Device		"ATI0"
	Monitor		"LCD"
	DefaultDepth	24
	SubSection "Display"
		Depth		1
		Modes		"1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		4
		Modes		"1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		8
		Modes		"1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		15
		Modes		"1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		16
		Modes		"1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "Screen"
	Identifier "External"
	Device     "ATI1"
	Monitor    "SVGA"
	DefaultDepth 24	
	SubSection "Display"
		Viewport   0 0
		Depth     24
		Modes     "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
		Modes     "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
		Modes     "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "DRI"
	Mode	0666
EndSection

# end of XF86Config


-- 
==================================================
Carl-Fredrik Enell
Sodankylä Geophysical Observatory
Tähteläntie 62
FIN-99600 Sodankylä, Finland

http://www.sgo.fi/~fredrik
Telephone (work):	(+358) (0)16  619826 
Mobile phone (private): (+358) (0)400 820037