LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-01-2002, 04:30 AM   #1
juno
Member
 
Registered: Sep 2002
Location: fdas
Posts: 100

Rep: Reputation: 15
cannot run startx


I have newly intall a linux , but when I run startx , it pop up the below message.

Parse error on line 242 of section InputDevice in file /etc/X11/XF86Config
"Device" is not a vaild keyword in this section.
(EE) Problem parsing the config file
(EE) Error from xf86HandleConfigFile()

Fatal server error:
no screens found

fatal IO error 104 (Connection reset by peer) on X server ":0.0"
after 0 requests (0 known processed) with 0 events remaining.
 
Old 10-01-2002, 06:00 AM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
X is not properly configured. what distro are you using? RH 7.3 and later uses XFree86 4.2.0 and the file in questions should be /etc/X11/XF86Config-4.
 
Old 10-01-2002, 06:45 AM   #3
juno
Member
 
Registered: Sep 2002
Location: fdas
Posts: 100

Original Poster
Rep: Reputation: 15
yes, i u se rh 7.3 , how to config /etc/X11/XF86Config-4? Thx.
 
Old 10-01-2002, 06:58 AM   #4
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
Try this first from the command line (as user 'root'):

Xconfigurator --expert

Then choose from the list. If you have one of those Nvidia cards, you need the driver from www.nvidia.com
 
Old 10-01-2002, 07:37 AM   #5
juno
Member
 
Registered: Sep 2002
Location: fdas
Posts: 100

Original Poster
Rep: Reputation: 15
there is no /etc/X11/XF86Config, should i create this file? Thx.
 
Old 10-01-2002, 08:29 AM   #6
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
use the Xconfigurator command first. The file will be created (and it is XF86Config-4).
 
Old 10-03-2002, 10:24 AM   #7
rayne
LQ Newbie
 
Registered: Sep 2002
Location: Alabama
Distribution: RedHat 7.3 (8.0 soon)
Posts: 29

Rep: Reputation: 15
My Xconfigurator says that it is saving changes to file XF86Config not XF86Config-4. I have both in /etc/X11.

Will I need to manually edit the file to get it to work?
 
Old 10-03-2002, 11:16 AM   #8
GtkUser
Member
 
Registered: Sep 2002
Location: Canada
Distribution: Redhat 9.0
Posts: 637

Rep: Reputation: 30
After you run Xconfigurator as root, than you should be able to just type startx to start one of your desktops. If it doesn't work than enter different information during Xconfigurator or else your hardware isn't compatible with Linux. I hear that NVidia is troublesome, yet my Dad has an older NVidia card and XWindows works fine. At any rate Xconfigurator utility should do the job.

If it fails than I'd check the integrety of the iso file with MD5SUM.
 
Old 10-03-2002, 02:57 PM   #9
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
I run RH 7.3 and use an NVidia card. Haven't had problems yet. The problem we have here seems to be that the config file prepared by Xconfigurator writes an XF86Config. From what I know, this file is not used by XFree86 versions newer than 3.3. The version of X you seem to be running is the latest(4.2) and that uses XF86Config-4. This file is of a different format than XF86Config, so simply renaming the file wont work.

I'm sending you my XF86Config-4. You need to back up your XF86Config-4, and come up with a new XF86Config-4 from the card and driver sections of your XF86Config using the format of my config file. See man XF86Config to learn about the sections. Once you have a simple ( low bits per pix - low resolution ) X server running, change one thing at a time ( so you know what caused the problem ) and tune it to you needs. You can use xvidtune to fine-tune x.

-----------------------------------------------------------------
# XFree86 4.2.0 configuration generated by Xconfigurator 4.10.7

Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

# Red Hat Linux 6.0 and later use the xfs font server for improved
# interactive performance

Section "Files"
FontPath "unix/:7100"
EndSection

# Module loading section

Section "Module"
Load "dbe" # Double-buffering
Load "GLcore" # OpenGL support
Load "dri" # Direct rendering infrastructure
Load "glx" # OpenGL X protocol interface
Load "extmod" # Misc. required extensions
Load "v4l" # Video4Linux
# Load "record" # X event recorder
# You only need the following two modules if you do not use xfs.
# Load "freetype" # TrueType font handler
# Load "type1" # Adobe Type 1 font handler
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Device" "/dev/mouse"
Option "Protocol" "IMPS/2"
Option "Emulate3Buttons" "on"
Option "Emulate3Timeout" "150"
Option "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
Identifier "My Monitor"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 31.5 - 82.0
VertRefresh 50-100
Modeline "1280x1024" 135.00 1280 1316 1460 1684 1024 1025 1028 106
6 +HSync +VSync
Option "dpms"
EndSection

Section "Device"
Identifier "NVIDIA GeForce 2 MX (generic)"
Driver "nv"
BoardName "Unknown"
EndSection

Section "Device"
Identifier "Linux Frame Buffer"
Driver "fbdev"
BoardName "Unknown"
EndSection

Section "Screen"
Identifier "Screen0"
Device "NVIDIA GeForce 2 MX (generic)"
Monitor "My Monitor"
DefaultDepth 24
Subsection "Display"
Depth 24
Modes "1280x1024"
EndSubSection
EndSection

Section "DRI"
Mode 0666
EndSection

-----------------------------------------------------------------------
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run 'startx' on boot? Mezza9 Slackware 16 12-02-2005 01:18 AM
can't run startx avram Debian 5 10-20-2003 04:49 PM
Can't run startx as user. ifunniest Linux - Software 5 09-19-2003 01:14 AM
install 7.3 cant run startx reaver77 Linux - Newbie 4 10-13-2002 08:15 PM
Startx cannot run twice esael Slackware 2 10-11-2002 10:06 AM


All times are GMT -5. The time now is 10:26 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration