Appendix D. X Config Sample (Using the XRandR Extension)

Section "ServerLayout"
       Identifier	"Default Layout"
       Screen		"Default Screen"
       InputDevice	"Mouse"
       InputDevice	"Keyboard"
EndSection

Section "InputDevice"
       Identifier	"Keyboard"
       Driver		"kbd"
       Option		"XkbRules"	"xorg"
       Option		"XkbModel"	"pc105"
       Option		"XkbLayout"	"cn"
EndSection

Section "Files"
#     RgbPath      "/usr/local/share/X11/rgb"
       ModulePath   "/usr/lib/xorg/modules"
#     FontPath     "/usr/share/fonts/X11/misc/"
#     FontPath     "/usr/share/fonts/X11/TTF/"
#     FontPath     "/usr/share/fonts/X11/OTF"
#     FontPath     "/usr/share/fonts/X11/Type1/"
#     FontPath     "/usr/share/fonts/X11/100dpi/"
#     FontPath     "/usr/share/fonts/X11/75dpi/"
EndSection

Section "InputDevice"
       Identifier	"Mouse"
       Driver		"mouse"
       Option		"CorePointer"
EndSection

Section "Device"
       Driver	"via"
       VendorName	"VIA Tech"
       BoardName	"via"
       Identifier	"Configured Video Device"
EndSection

Section "Monitor"
       Identifier	"CRT"
       Option	"Enable"	"true"
#     Option	"Rotate"	"right"                                     #   Enable rotation
       Modeline "1024x768_60.00"   63.50  1024 1072 1176 1328  768 771 775 798 -hsync +vsync
       Option	"PreferredMode"	"1024x768_60.00"
EndSection

Section "Monitor"
       Identifier	"LCD"
       Option	 "Disable"	"true"         
       Option   "DIPort"	"DFP_LOW"
#     Modeline "PanelMode"  49.00  1024 1072 1168 1312  600 603 613 624 -hsync +vsync
       Option   "PanelSize"	 "1024x600"
#     Option	 "PreferredMode" "1024x600"               # Use user specified modeline
       Option	 "MSB"           "true"
EndSection	

Section "Monitor"
       Identifier	"DVI"
       Option	"Enable"	"true"
       Option  "Type"		"External"
       Option  "DIPort"	"DVP1"
#     Option	"PreferredMode"	"1600x1200"
EndSection	

Section "Monitor"
       Identifier	"TV"
       Option  "Ignore"	"true"
EndSection	

Section "Monitor"
       Identifier	"HDMI"
       Option  "Ignore"	"true"
       Option  "Type"		"External"
       Option  "PreferredMode"	"1920x1080P"
EndSection	

Section "Monitor"
       Identifier	"CRT-2"
       Option	"Ignore"	"true"
EndSection

Section "Monitor"
       Identifier	"LCD-2"
       Option	"Ignore"	"true"
EndSection

Section "Monitor"
       Identifier	"DVI-2"
       Option	"Ignore"	"true"
EndSection

Section "Monitor"
       Identifier	"TV-2"
       Option	"Ignore"	"true"
EndSection

Section "Screen"
       DefaultDepth 16
       SubSection "Display"
              Virtual 4000 4000 
              Depth  16
       EndSubSection
       Identifier	"Default Screen"
       Device		"Configured Video Device"
EndSection

Section "Module"
#      Load  "glx"
#      Load  "dri"
#      Load  "extmod"
EndSection

Section "DRI"
       Group 0
       Mode 0666
EndSection