[SLUG] X Windows

Paul Teasdale pdt at rcsuk.fsnet.co.uk
Sat Mar 15 09:30:01 GMT 2003


Hi Mark,

Your XF86Config file is corrupted in some way hence the parse error "(EE) 
Problem parsing the config file" when you try and start X. Also the error 
"Fatal error: no screens found" is saying that you don't have a screen 
section in your config file and this is true looking at it.

XF86Config files are always all text and should be human readable throughout 
(even it you don't understand the contents).

As an example here is my working XF86Config file:

### FILE BEGINS

Section "ServerFlags"
	# Uncomment this to cause a core dump at the spot where a signal is
	# received.  This may leave the console in an unusable state, but may
	# provide a better stack trace in the core dump to aid in debugging
	#NoTrapSignals

	# Uncomment this to disable the <Crtl><Alt><BS> server abort sequence
	# This allows clients to receive this key event.
	#DontZap

	# Uncomment this to disable the <Crtl><Alt><KP_+>/<KP_-> mode switching
	# sequences.  This allows clients to receive these key events.
	#DontZoom

	# This  allows  the  server  to start up even if the
	# mouse device can't be opened/initialised.
	AllowMouseOpenFail
EndSection

Section "ServerLayout"
	Identifier 	"Dell Laptop"
	Screen		"FlatPanel" 	0 0
	InputDevice 	"TouchPad" 	"CorePointer"
	InputDevice 	"Keyboard" 	"CoreKeyboard"
EndSection

Section "Files"
	#FontPath	"unix/:7100"
	FontPath	"/usr/X11R6/lib/X11/fonts/TrueType"
	FontPath	"/usr/X11R6/lib/X11/fonts/truetype"
	FontPath	"/usr/X11R6/lib/X11/fonts/misc:unscaled"
	FontPath	"/usr/X11R6/lib/X11/fonts/local"
	FontPath	"/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
	FontPath	"/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
	FontPath	"/usr/X11R6/lib/X11/fonts/Type1"
	FontPath	"/usr/X11R6/lib/X11/fonts/URW"
	FontPath	"/usr/X11R6/lib/X11/fonts/PEX"
	FontPath	"/usr/X11R6/lib/X11/fonts/cyrillic"
	FontPath	"/usr/X11R6/lib/X11/fonts/latin2/misc:unscaled"
	FontPath	"/usr/X11R6/lib/X11/fonts/latin2/75dpi:unscaled"
	FontPath	"/usr/X11R6/lib/X11/fonts/latin2/100dpi:unscaled"
	FontPath	"/usr/X11R6/lib/X11/fonts/latin2/Type1"
	FontPath	"/usr/X11R6/lib/X11/fonts/latin7/75dpi:unscaled"
	FontPath	"/usr/X11R6/lib/X11/fonts/baekmuk:unscaled"
	FontPath	"/usr/X11R6/lib/X11/fonts/japanese:unscaled"
	FontPath	"/usr/X11R6/lib/X11/fonts/kwintv"
	FontPath	"/usr/X11R6/lib/X11/fonts/uni"
	FontPath	"/usr/X11R6/lib/X11/fonts/CID"
	FontPath	"/usr/X11R6/lib/X11/fonts/ucs/misc"
	FontPath	"/usr/X11R6/lib/X11/fonts/ucs/75dpi:unscaled"
	FontPath	"/usr/X11R6/lib/X11/fonts/ucs/100dpi:unscaled"
	FontPath	"/usr/X11R6/lib/X11/fonts/hellas/misc:unscaled"
	FontPath	"/usr/X11R6/lib/X11/fonts/hellas/75dpi:unscaled"
	FontPath	"/usr/X11R6/lib/X11/fonts/hellas/100dpi:unscaled"
	FontPath	"/usr/X11R6/lib/X11/fonts/hellas/Type1"
	FontPath	"/usr/X11R6/lib/X11/fonts/misc/sgi"
	FontPath	"/usr/X11R6/lib/X11/fonts/xtest
EndSection

Section "Module"
	Load  "dbe"		# Double-buffering
	Load  "glx"		# OpenGL X protocol interface
	Load  "extmod"		# Misc. required extensions
	Load  "record"		# X event recorder
	#Load  "v4l"		# Video4Linux
	#Load  "fb"		# Framebuffer
	Load  "freetype"	# TrueType font handler
	Load  "type1"		# Adobe Type 1 font handler
EndSection

Section "InputDevice"
	Identifier  	"Keyboard"
	Driver      	"keyboard"
	Option		"CoreKeyboard"
	Option          "AutoRepeat"		"250 30"
	Option          "XkbRules"		"xfree86"
	Option      	"XkbLayout"		"gb"
EndSection

Section "InputDevice"
	Identifier	"TouchPad"
	Driver		"mouse"
	Option		"Device"		"/dev/psaux"
	Option		"Protocol"		"IMPS/2"
	#Option		"Emulate3Buttons"	"yes"
	#Option		"Emulate3Timeout"       "50"
	Option          "Buttons"		"3"
	Option		"ZAxisMapping"		"4 5"
EndSection

Section "Monitor"
	Identifier	"Laptop"
	VendorName	"Dell"
	ModelName 	"1400x1050"
	Option		"dpms"
	DisplaySize     375 300
EndSection

Section "Device"
	Identifier	"NVidia GeForce 2 Go"
	Driver		"nvidia"
	VideoRAM	32768
	VendorName	"NVidia"
	BoardName	"GeForce 2 Go"
	BusID		"PCI:1:00:0"
	Option		"PageFlip" 		"on"		# default=on
	Option		"CursorShadow"		"on"		# default=on
	Option		"CursorShadowAlpha"	"32"		# 0-transparent 255-opaque
	Option		"CursorShadowXOffset"	"4"		# 0-32
	Option		"FlatPanelScalingMode"	"scaled"	# or "centered"
	Option		"HWCursor"		"on"		# default=on
	Option		"SWCursor"		"off"		# default=off
	Option		"IgnoreEDID"		"off"		# default=off
	Option		"NoRenderAccel"		"off"		# default=off
	Option		"NoLogo"		"on"		# default=off
	Option		"UseEdidFreqs"		"on"		# default=off
	Option		"NvAGP" 		"3"		# 0=no AGP, 1=Nvidia AGP, 2=AGPGART, 3=AGPGART else 
Nvidia AGP
EndSection

Section "Screen"
	Identifier	"FlatPanel"
	Device		"NVidia GeForce 2 Go"
	Monitor		"Laptop"
	DefaultDepth	24
	SubSection	"Display"
		Depth 	16
		Modes 	"1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
	Subsection 	"Display"
		Depth 	24
		Modes 	"1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "DRI"
	Mode 0666
EndSection

### FILE ENDS

This obviously won't work for your graphics card/monitor configuration but at 
least it gives you an idea of what to expect.

It may be worth trying to create your XF86Config file with the command line 
tool, namely xf86config, if you have not already tried this. Just type 
'xf86config' and answer the questions. When finished look at the resulting 
XF86Config file via a straight text editor.

Also something to watch out for with XFree86 version 4 is that it will pick a 
config file called XF86Config-4 in preference to an XF86Config if the file 
exists so beware; ensure that is not one of these laying around in your 
/etc/X11 directory.

Hope this helps,

Kind regards,

Paul.



On Friday 14 March 2003 22:39, Mark Feather wrote:
> Parse error on line 1 of section (null) in file /etc/X11/XF86Config
> "" is not a valid keyword in this section.
>
> Not sure what this is. You might want to comment this out of your config
> file then see what X spits out in the log file once its done. Usually
> there is a load of information about loading mouse and keyboard drivers.
>
> The contents of /etc/X11/XF86Config are below untouched! Can anybody read
> and understand Cantonese!?  Thought i would skip editing this file for now
> as i'm not sure just where Line 1 begins, at the very begining or where it
> reads:
>
> Monitor      "Monitor[0]"
>
> #############FILE BEGINS#################
>
>
>
>    Ü­     Ž!     ÿÀ S
>   ­’ ]  £‘ ]  £‘    ¨   }J÷XXDra½     H   .£i_XF86˜´
>     •ÃY"glulº     D   —{’ZXGetš¿     A   þ´8QglXImÌ    N   ÿÿÿÿ
> YÕâWXRecS    A   ÿÿÿÿ                |½WXvPu¿º     5   ÿÿÿÿ
> ¶FQXmbu6›     4   ÿÿÿÿ                ÿÿÿÿ                ÿÿÿÿ
> ÙRXSto£‘    :   kÈ2VXtRe‹Ã    4   ÈúãRXTex¿
>    ,   –ÔmPXtCr at .     L   Š„["glu×à    S   šûPXtCaˆ¾     =
> zQZTXtNu[¸      O   ÿÿÿÿ                LÙ™\XGetE¹     j   ÿÿÿÿ
> ÿÿÿÿ                „ùX"gluµ“     D   ~ì ]"glußÆ    A   «À‘YXShaj¼
>
> :   ø\XRemÁ    :   ÿÿÿÿ                ÿÿÿÿ                ÿÿÿÿ
>
> ÿÿÿÿ                Â]RXGetñs    0    ¹ÈXgluN5Ç    /   ÞÙ¸Y"glu…Î
> G   \r¹ViceaòE     4   ЊüTico ëK     D   ü‘^mga ^!     ,   œéÁWXIfEè°
> J   ¯>MYXtApQ¿     =   ˆ§YgluGZ|     .   ¦™Sshowu3     >   X4ZxfinÜ:
>    /   UC]xref¤N      <   ”V•YXPenÎÅ     =   ¶£Ã[MenuÉY     (   Õíß^XFT
> ‡*    8   uÍdUXtToœœ     L   攍UgluPzb     1   ›%›QXCreÉ    ,   ö”
> ¸RXSelº     :   bÊUZXSet¸     1   º;RServE¾
>    6   I4©ZDisp±+    6   ÕqÂQxev .F     4   W•C\XF86Y     G
> H«VXAut4´     U   8ïl^gluTZ"    <   <ò€RXSetÏÌ
>    @   if’UXCop¸¼
>    $   ÄêõWXtVaåÎ    :   ¤‰\RXtSe„+      0   ¤68Tgliné‘    4   ÿÿÿÿ
> KKÛYXSet²     K   ÝXr]XAddÄ
>    H   ÿÿÿÿ                ”º SXF86¼Â     D   Ýíæ_XFreL»     3
> ¶SDoes³     A   ªÖ]XLoa7t    I   ùƒÙ]DBE VÃ    1   K=xVX   e’
> F   ÿÿÿÿ                2‹uZXSet)Î    B   óÛA[XtEr‹»     2   @tWgluT;Ä
>    E   â¦öUgluB8[     9   7ñQXCreÍ™     H   2TÛZbitm;     W   ®úŽWXGet
> ’&    W   ž¸ZXDefa„Ò
>    6   #ÌNYXtIsÁ®     <   m•§XgluP*     /   ÿÿÿÿ                ÿÿÿÿ
> ¾ÂœQXSetÖ¾     0   ÿÿÿÿ                .ØoUXtApF-     ;   ÿÿÿÿ
> n¯[XFetö´
>
>    :   (Ìû_XRem‘p    4   ¨±_XSiz㶠    k   4”ÂWlbxpè9      /
>
> þþÅPXF86¼     C   ’}RXTex»     ,   NÈSXSet€Â    1   0’_XQue¢Æ
> ,   _ç³PIsMoÍ»
>    6   ÚÅVXClaýË    e   Å3¿WXtRe¢É    <   ÿÿÿÿ
> Á³)YviewdN     8   ÿÿÿÿ                ÿÿÿÿ                ·ir^XAllõ+
> 2   8 »_XrmSð    4   ]3]XrmMµ     2   ÿÿÿÿ                v`ÊQXGet§³
>    5   öG6^XSetÞÁ    1   :hXXCon:`     :   ‡ÿ[glXQ}›     3
> Ð(‚SglXG's    5   x/YProtÓÇ    6   âÿÐVWidtt/    A   -ŽPmakeãJ
>
> :   ßí»VXF86 p    C   Q:òZXPutÍÏ
>
>    )   öIYgluE6)    7   ¶RXUnmY·
>    '   ê†WXtLa"Å    >   ±‚ÙVXtMasÈ    7   xDzQchip#’    <   ’
> sTXNoE±²     F   ^ðUXvSe¶     C   öþÈ_XtAd3Â
>    @   ÿÿÿÿ                ‰l¿PXtReÍ    G   `>óSXGetâÄ
>    3   5¡²]XtCa˜·     4   nRVXcms‚q    -   ¬ Ë_encojM     "   ö\Dispk
> “     ;   É1qQXGetÜÊ    f   êNXXtLaÒÍ    >   9,WXtOw ž     -   ÿÿÿÿ
> iv[XtAp^Ë    5   ƒ$RSXFreÏ'    2   ËXxmkm°H     =   a–üQfontöM
>    "   d'6TXRaiü#
>    6   ðSXXtSc{Ÿ     B   LÎÖVXtScSÉ    >   7Tƒ_XAnyn²
>    4   ÷ô¼RXtPa²À    5   w7à_XtPo#+    &   '~"RDefa     A
> ¥-BVXSet#    k   h êUXtGe¨(     1   dŠ7\XFilÌq     <   ’øTXF86xÇ
> D   É&_XDraÒÈ
>    5   Þ¥1WXvQu[½     A
> æVglXIŠÊ    F   ¦èTXF86@‘    G   r0ZXSha à    :   cYXUng2Ï    A
> ±£]gluN¢    ?   ¹£W_XtGeÛ•     -   é5‹^rend£­
>    /   ÿÿÿÿ                ÿÿÿÿ                Ÿ~
> PXF86t    G   ¼^‘_XGet À
>    -   ÿÿÿÿ                ?>¯TDefa¾
>    6   à‡ò\XtAp¿     A   ëYXOpeV³     I   â¤ÍQXWMHgÁ     n
> fÌ\XChaò%    =   #ô9WXStoJ+     $   p%‹ZXColG±     P   §IÆ^XtMa¿/
> /   ÿÿÿÿ                _û™SXtPeË<    <   ÿÿÿÿ                ÀŒYXGrauÍ
>    A   SE[cxpmû4     H   „ÙŽXXtReôÉ    2   ½ŠYglXGöƒ    ?   ÿÿÿÿ
> 1,J_XtApÈ    /   ÿÿÿÿ                Úð"]XauDˆÅ    7   iãùPXrmQ­½
> F   Žf–TgluS²Ë    =   “>_Xdbeé³     ;   Ö1^XXFil„Ï
>    <   ŽgíZXrmU?&    4   ü# SXtSc?Ê     B   >iÆWXWinĹ     H   ä@ÑPXSav£
>
>    6   ˜¤~WXtReö"     <   ¤œ¼SXDes      Z   _I8\DispgÀ    ;
> öÊpPXDisÆ
>    I   ™è¥YXErr¦¶     1   >iyPXtOw    -                   "Screen[0]"
>   Monitor      "Monitor[0]"
> EndSection
>
>
> Section "ServerLayout"
>   Identifier   "Layout[all]"
>   InputDevice  "Keyboard[0]" "CoreKeyboard"
>   InputDevice  "Mouse[1]" "CorePointer"
>   Screen       "Screen[0]"
> EndSection
>
> Section "DRI"
>     Group      "video"
>     Mode       0660
> EndSection
>
> #############FILE ENDS#################
>
> Is it possible that i could screw up my Monitor at all?
>
> Mark





More information about the Scarborough mailing list