Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 09-23-2005, 09:56 PM   #1
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"
HoriSync 30-92
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, 10:17 PM   #2
Stan the caddy
Registered: Dec 2003
Location: Victoria, B.C
Distribution: Slackware
Posts: 61

Rep: Reputation: 15
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, 11:08 PM   #3
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.


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

All times are GMT -5. The time now is 09:38 AM.

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