# laps /etc/X11/xorg.conf.laps.7.2-RELEASE
# gets manually copied to ~jhs/public_html/hardware/toshiba/satellite.s5100-603

# 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"

	# Added AutoAddDevices AllowEmptyInput for FreeBSD-7.2 2009.05.19 per
	# http://www.nabble.com/Fear-and-loathing-in-FreeBSD-7.2-(AGP-issues-and-fixes)-td23578923.html
	Option      "AllowEmptyInput" "False"
		# man 5 xorg.conf:
		# If enabled, don't add the standard keyboard and
		# mouse  drivers, if  there  are  no input devices
		# in the config file.  Enabled by default if
		# AutoAddDevices and AutoEnableDevices is enabled,
		# oth- erwise  disabled.   If  AllowEmptyInput is on,
		# devices using the kbd, mouse or vmmouse driver are
		# ignored.
		# ---------- Maybe this is for slave/ clone terminals ?

	# Option      "AutoAddDevices" "False"
		# man 5 xorg.conf:
		# If this option is disabled, then no devices will
		# be  added  from HAL events.  Enabled by default.
EndSection

Section "Files"

	# RgbPath		"/usr/local/lib/X11/rgb"
	# FreeBSD-7.2 reports: Ignoring obsolete keyword "RgbPath".
	#	(EE) Failed to load module "xtrap" (module does not exist, 0)
	#	(EE) Failed to load module "type1" (module does not exist, 0)
	#	rgb not built by default, & server runs without it,
	#	showrgb come from /usr/ports/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/diablo-jdk1.6.0/jre/lib/fonts/"
	  FontPath	"/usr/local/diablo-jdk1.6.0/jre/lib/oblique-fonts/"
	  FontPath	"/usr/local/jdk1.6.0/jre/lib/fonts/"
	  FontPath	"/usr/local/jdk1.6.0/jre/lib/oblique-fonts/"
	  FontPath	"/usr/local/lib/X11/fonts/100dpi/:unscaled"
# 100dpi/lutBS24-ISO8859-1.pcf.gz should have giant lucid font:
# -fn "-b&h-lucidatypewriter-bold-r-normal-sans-34-240-100-100-m-200-iso8859-1"
	  FontPath	"/usr/local/lib/X11/fonts/75dpi/:unscaled"
	  FontPath	"/usr/local/lib/X11/fonts/OTF/"
	  FontPath	"/usr/local/lib/X11/fonts/TTF/"
	  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/local/"
	  FontPath	"/usr/local/lib/X11/fonts/misc/"
	  FontPath	"/usr/local/lib/X11/fonts/texcm-ttf/"
	  FontPath	"/usr/local/share/apps/kformula/fonts/"
	  FontPath	"/usr/local/share/fonts/amspsfont/type1/"
	  FontPath	"/usr/local/share/fonts/cmpsfont/type1/"
	  FontPath	"/usr/local/share/ghostscript/fonts/"

	  FontPath	"/usr/local/share/fonts/cm-super/type1/"
	# 	cm-super on host=fire has 410, But I dont know where from.

	# FontPath	"/usr/local/Amaya/fonts/"
	# FontPath	"/usr/local/lib/X11/fonts/CID/"
	# FontPath	"/usr/local/lib/X11/fonts/Speedo/"

	# FontPath	"/usr/local/lib/X11/fonts/Type1/"
	#	Type1/ on host=fire has 182, But I dont know where from.

	# FontPath	"/usr/local/lib/metamail/fonts/"
	#			metamail dont know where this comes from

	# FontPath	"/usr/local/share/apps/konsole/fonts/"
	#			konsole dont know where this comes from

	# FontPath	"/usr/local/share/fonts/override/"

        # man xorg.conf:
        #   Font path elements that are found to be invalid are removed from
        #   the font path when the server starts up.

        # cd /usr/local ; find . -type f -name fonts.dir | sort
        # cd wherever ; mkfontdir ; tail /var/log/Xorg.0.log

EndSection

Section "Module"

	Load  "extmod"
	Load  "glx"
	Load  "dri"
	Load  "dbe"
	Load  "record"
	# Load  "xtrap"
	# xtrap removed for FreeBSD-7.2 as complains
	#	Load  "type1"
	# type 1 commented out as FreeBSD-7.2 complains
	#	Failed to load module "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