# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen         "TV" 
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
EndSection

Section "Files"
    FontPath        "/usr/share/X11/fonts/misc"
    FontPath        "/usr/share/X11/fonts/Type1"
    FontPath        "/usr/share/X11/fonts/100dpi"
    FontPath        "/usr/share/X11/fonts/75dpi"
    FontPath        "/usr/share/X11/fonts/75dpi/:unscaled"
    FontPath        "/usr/share/X11/fonts/100dpi/:unscaled"
    #FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
    Load	"dbe"
    Load           "extmod"
    Load           "glx"
    #Load	"record"
    #Load	"v4l"
    Load	"type1"
    Load	"freetype"
    Load	"vbe"
# removed from nvidia driver:
#Load    "dri"
#Load	"GLcore"
EndSection

Section "InputDevice"
    Identifier     "Generic Keyboard"
    Driver         "kbd"
    Option         "CoreKeyboard"
    Option         "XkbRules" "xorg"
    Option         "XkbModel" "pc105"
    Option         "XkbLayout" "de"
    Option         "XkbVariant" "nodeadkeys"
EndSection

Section "InputDevice"
    Identifier     "Configured Mouse"
    Driver         "mouse"
    Option         "CorePointer"
    Option         "Device" "/dev/input/mice"
    Option         "Protocol" "ExplorerPS/2"
    Option         "ZAxisMapping" "4 5"
    Option         "Emulate3Buttons" "true"
EndSection

Section "Monitor"
#http://xtiming.sourceforge.net/cgi-bin/xtiming.pl
#http://koala.ilog.fr/cgi-bin/nph-colas-modelines
#http://zaph.com/Modeline/

	DisplaySize     495    370
	Identifier     "PAL-TV"
	HorizSync       10-40
	VertRefresh     49.9 - 50.1
	#ModeLine "720x576@50i"	14.0625 720 760 800 900 576 576 591 625 -hsync -vsync interlace
	#ModeLine "pal_720x576"	13.875  720 744 808 888 576 582 588 625 -hsync -vsync interlace # H 15625 [Hz], V 50 [Hz]
	#ModeLine "720x576PAL"	27.50   720 744 800 880 576 581 583 625 -hsync -vsync
	ModeLine "720x576PAL"	27.50   720 744 800 880 576 582 588 625 -hsync -vsync
	ModeLine "720x576@50i"	14.0625 720 760 800 900 576 582 588 625 -hsync -vsync interlace
EndSection


Section "Device"
	Identifier	"nv-tv"
	Screen		0
	Driver		"nvidia"
	BusID		"PCI:1:0:0"
	Option		"NoLogo" "on"
    Option	"RenderAccel" "true"
    Option      "XvmcUsesTextures" "false"

    #Option	"BackingStore" "true"

	#Option		"CursorShadow" "true"

	Option		"ConnectedMonitor" "TV"
	Option		"TVStandard" "PAL-B"
	Option		"TVOutFormat" "SVIDEO"

	Option		"IgnoreEDID" "true"
	#Option         "UseEDIDFreqs" "FALSE"
        #Option         "UseEDIDDpi" "FALSE"
        #Option         "ModeValidation" "NoEdidModes"

    	#Option "NVAGP" "1"
EndSection

Section "Screen"
#http://www.sorgonet.com/linux/nv-online/
    Identifier     "TV"
    Device         "nv-tv"
    Monitor        "PAL-TV"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
        Modes	    "720x576@50i"
	#Modes "720x576PAL"
    EndSubSection

EndSection
