FreeBSD Xorg Configuration

Nikolas Britton freebsd at nbritton.org
Tue Feb 8 03:31:02 PST 2005


Joaquin Menchaca wrote:

> Hi,
>
> I tried the default X configuration, and it works.  It's not pretty 
> but it works.
>
> I ran the utility that people suggestion, but backed out.  It's 
> getting way too complicated with vertical and horizontal refresh 
> rates, etc. How, can I just start configuring it, without all the 
> manual configurations for refresh rates and stuff?
>
>  - joaquin


It's simple... run "Xorg -configure" then test the new xorg.conf file 
following the instructions given by "Xorg -configure". if all that works 
but the screen resolution is to high (say for example 1600x1200) then 
you'll have to edit the xorg.conf file.... what your looking for is this 
part all the way at the end of the file:
---------------------------------------------------
Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth    24

[sniped]

        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes     "1280x1024"
        EndSubSection
EndSection
-------------------------------------------------
See the parts about DefaultDepth and Modes? put the mode(s) and default 
color depth (you'll have to add the DefaultDepth line, it won't in 
there) you want to run at. Now you need to test it again, do the same 
thing as before, and after you have every thing working copy the 
xorg.conf file to /etc/X11/
Now you have to install your desktop env. (KDE, Gnome, Xfce, etc) and 
edit the xinit file.
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x11-wm.html
-----------------------------------------------------------------------
Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        #Option     "Device" "/dev/ums0"
        Option      "Device" "/dev/sysmouse"
        Option      "ZAxisMapping" "4 5"
EndSection
--------------------------------------------------------------------
Note the "ZAxisMapping" "4 5" for mouses with a scroll wheel. Attached 
is a copy of my xorg.conf file.



-------------- next part --------------
Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	RgbPath      "/usr/X11R6/lib/X11/rgb"
	ModulePath   "/usr/X11R6/lib/modules"
	FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
	FontPath     "/usr/X11R6/lib/X11/fonts/TTF/"
	FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
	FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
	FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
	FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
	Load  "extmod"
	Load  "glx"
	Load  "dri"
	Load  "dbe"
	Load  "record"
	Load  "xtrap"
	Load  "type1"
	Load  "freetype"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	#Option	    "Device" "/dev/ums0"
	Option	    "Device" "/dev/sysmouse"
	Option	    "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
	#DisplaySize	  350   260	# mm
	Identifier   "Monitor0"
	VendorName   "Samsung"
	ModelName    "SyncMaster 997DF"
 ### Uncomment if you don't want to default to DDC:
#	HorizSync    30.0 - 96.0
#	HorizSync    13873.0 - 0.0
#	VertRefresh  50.0 - 160.0
	Option	    "DPMS"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"            	# [<bool>]
        #Option     "SWcursor"           	# [<bool>]
        #Option     "Dac6Bit"            	# [<bool>]
        #Option     "Dac8Bit"            	# [<bool>]
        #Option     "DMAForXv"           	# [<bool>]
        #Option     "ForcePCIMode"       	# [<bool>]
        #Option     "CCEPIOMode"         	# [<bool>]
        #Option     "CCENoSecurity"      	# [<bool>]
        #Option     "CCEusecTimeout"     	# <i>
        #Option     "AGPMode"            	# <i>
        #Option     "AGPSize"            	# <i>
        #Option     "RingSize"           	# <i>
        #Option     "BufferSize"         	# <i>
        #Option     "EnablePageFlip"     	# [<bool>]
        #Option     "Display"            	# <str>
        #Option     "PanelWidth"         	# <i>
        #Option     "PanelHeight"        	# <i>
        #Option     "ProgramFPRegs"      	# [<bool>]
        #Option     "UseFBDev"           	# [<bool>]
        #Option     "VideoKey"           	# <i>
        #Option     "ShowCache"          	# [<bool>]
	Identifier  "Card0"
	Driver      "ati"
	VendorName  "ATI Technologies Inc"
	BoardName   "Rage 128 PF/PRO AGP 4x TMDS"
	BusID       "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	DefaultDepth	24
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
		Modes	  "1280x1024"
	EndSubSection
EndSection



More information about the freebsd-newbies mailing list