# laps /etc/X11/xorg.conf ->
# 	xorg.conf.laps.7.0-PRERELEASE-7.1-RELEASE
# gets manually copied to ~jhs/public_html/hardware/toshiba/s5100-603/XF86Config
# to rebuild use xf86cfg -textmode, then select vesa, then hand tune.
# Section		"InputDevice"
#	Identifier	"Mouse0"
#	Driver  	"mouse"
#	Option		"Protocol"	"auto"
#	Option		"Device"	"/dev/sysmouse"
# EndSection

Section "ServerLayout"
	Identifier     "Layout0"
	Screen      0  "Screen0" 0 0
	InputDevice    "Keyboard0" "CoreKeyboard"
	InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
	RgbPath		"/usr/local/lib/X11/rgb"
	ModulePath	"/usr/local/lib/xorg/modules"
	# FreeBSD-7.0: /usr/local/lib/xorg/modules/libpcidata*
	# FreeBSD-6.2: /usr/local/lib/modules/libpcidata*

 FontPath "/usr/local/lib/X11/fonts/100dpi/"		
 FontPath "/usr/local/lib/X11/fonts/75dpi/"		
 FontPath "/usr/local/lib/X11/fonts/Type1/"		
 FontPath "/usr/local/lib/X11/fonts/bitstream-vera/"	
 FontPath "/usr/local/lib/X11/fonts/cyrillic/"		
 FontPath "/usr/local/lib/X11/fonts/freefont/"		
 FontPath "/usr/local/lib/X11/fonts/misc/"		
 FontPath "/usr/local/share/ghostscript/fonts"		

# Hint: cd wherever ; mkfontdir ; tail /var/log/Xorg.0.log
EndSection

Section "Module"

	Load  "extmod"
	Load  "glx"
	Load  "dri"
	Load  "dbe"
	Load  "record"
	Load  "xtrap"
	Load  "type1"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "Auto"
	Option	    "Device" "/dev/sysmouse"

# next 2 from gary
# for the scroll wheel - 4 and 5 are virtual buttons
     Option "Buttons" "5"
# button 4 = negative movements, button 5 = positive movements
     Option "ZAxisMapping" "4 5"

EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "keyboard"
	Option	    "XkbModel" "pc101"
	Option	    "XkbLayout" "us"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Toshiba"
	ModelName    "S5100-603"
	HorizSync    31.5 - 108.0	# Toshiba User's Manual Chapter E
	VertRefresh  50.0 - 100.0	# Just a guess
        # manual quotes 15"
        #        x 2.54 = 381 mm
        #        Assume a 1024:768 ratio
        #        Use Pythagorus 3,4,5 triangle.
        #               diag^2 = 1024^2 + 768^2
        #               diag^2 = 1048576 + 589824
        #               diag^2 = 1638400
        #               diag = 1280
        #        Width  = 381 mm x 1024 / 1280 = 304.8
        #        Height = 381 mm x  768 / 1280 = 228.6
	DisplaySize	305 229
	#	xdpyinfo | grep dimension reports 306x229 mm
	# A crude ruler check suggest about: 303.5 x 228
	# Where 306 comes from I don't know.

EndSection

Section "Device"

	# VendorName	"nVidia Corporation"	# xf86cfg visualmode
	# BoardName	"NV17 [GeForce4 440 Go]"	# xf86cfg visualmode
		# xf86cfg -textmode
	# xf86cfg -textmode
	# BusID  	"PCI:1:0:0"		# xf86cfg visualmode
	Identifier  "Card0"
	Driver      "nv"
	ChipSet     "GeForce4 440 Go"
	Card        "nv GeForce4 440 Go"
EndSection

Section "Screen"

# Toshiba User's Manual Chapter E:
#	15.0" TFT LCD will do 1024x768, 1400x1050, 1600x1200
#	extern monitor will do 2048 x 1536 @ 16M colours
	# DefaultDepth	16
			# xf86cfg -textmode
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	DefaultDepth     24
	SubSection "Display"
		Depth     24
		Modes    "1600x1200" "1400x1050" "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
		## Modes    "800x600"
	EndSubSection
EndSection