LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   xorg.conf bad configured, how to edit (http://www.linuxquestions.org/questions/linux-general-1/xorg-conf-bad-configured-how-to-edit-366412/)

Monjawi 09-23-2005 09:56 PM

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.

Stan the caddy 09-23-2005 10:17 PM

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.

Monjawi 09-23-2005 11:08 PM

Thank you now it work.
Yeah I should look more into vi, now thats it is so universal.


All times are GMT -5. The time now is 01:52 AM.