LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 09-23-2005, 08:56 PM   #1
Monjawi
LQ Newbie
 
Registered: Feb 2005
Location: Denmark
Distribution: Mandriva 2006
Posts: 27

Rep: Reputation: 15
xorg.conf bad configured, how to edit


When I type startx it say:
Parse error on line 336 of section Monitor in file /etc/X11/xorg.conf
The VertRefresh keyword must be followed by list of numbers or ranges.

with less /etc/X11/xorg.conf this is what under Monitor section:
--------------------
Section "Monitor"
Identifier "philips brilliance 107p"
#Comments
HoriSync 30-92
#Comments
VertRefresh (null)
------------------
I need to know how I can edit the file from shell.
I have tried less :e /etc/X11/xorg.conf , but I can't quite figure it out.
I know I can use xorgcfg, but its confusing me, it would be easier be edit in txt mode.
 
Old 09-23-2005, 09:17 PM   #2
Stan the caddy
Member
 
Registered: Dec 2003
Location: Victoria, B.C
Distribution: Slackware
Posts: 61

Rep: Reputation: 15
Do
Code:
vi /etc/X11/xorg.conf
Vi is a great editor and it is on pretty much every system, however it can be difficult to learn. It is mode based, so to start typeing hit "i" (minus the quotes) then edit your file. when your done hit esc to get into command mode and hit :x to save and quit, :q! to quit without saving.

The problem with your xorg.conf is you dont have values for your vertical refresh. Find the specs for your monitor (in your manual or online) and enter the correct values.
 
Old 09-23-2005, 10:08 PM   #3
Monjawi
LQ Newbie
 
Registered: Feb 2005
Location: Denmark
Distribution: Mandriva 2006
Posts: 27

Original Poster
Rep: Reputation: 15
Thank you now it work.
Yeah I should look more into vi, now thats it is so universal.
 
  


Reply



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
Changing resolution in FC3. Which xorg.conf line do I edit? ColKurtz Linux - Newbie 2 02-18-2005 12:09 PM
Nvidia+FC3, system hangs when i edit xorg.conf AVD_ZM Linux - Software 3 02-06-2005 08:24 PM
Can't edit Xorg.conf pautasso Linux - Newbie 3 08-14-2004 09:27 AM
edit xorg.conf rather than XF86Config? ICO Slackware 2 07-25-2004 11:17 AM
xorg.conf > how to edit ? visvent Linux - Software 3 06-07-2004 01:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:21 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration