-   Linux - Newbie (
-   -   I Messed Up Screen Resolution (

krissly1 12-05-2003 11:22 PM

I Messed Up Screen Resolution
I had my system up and working most of the way. I had my resolution running at 1280x1024. My monitor is rated optimal at 1600x1200 so I set the resolution at this setting, but the icons were to small. I set the resolution one setting below that, between the 1280x1024 and 1600x1200 and logged out and then logged in for the settings to take affect. Now my monitor shows a worning message H. V FREQUENCY OVER RANGE. How do I reset the setting to the 1280x1024 without the use of my screen using Redhat 9.0?

ter_roshak 12-05-2003 11:32 PM

When your system starts up, push the following sequence of buttons, ctl-alt-F1, and this will take you to a text-login that will allow you to change your settings [hopefully].

From there, login and change your settings.


krissly1 12-05-2003 11:48 PM

Okay, I've logged in. How do I change the settings to 1280x1024?

ter_roshak 12-06-2003 12:15 AM

One way to change it is to go to the following directory:
...and change the XF86Config file. There is a setting for screen resolution down in the "Screen" section, take out the one that won't work with your monitor and then restart and try to login.

You can also run the following command from the command line:


mary 12-06-2003 12:20 AM

I've been there, done that... glad to know I'm not the only one that has set their screen res to something they can't display, and not known how to fix it, either. :)

So you are at a console? Login as root by doing:

su <enter>
It will prompt you for your root password.
Password: <type password> <hit enter> (The line will not move when you are typing. It took me ages to figure out where to type the password, due to that... LOL)

Now you should be root.

Make sure you are at the root of the filesytem (/), then

cd etc <enter>
cd X11 <enter>

vim XF86Config-4 <enter>(if vim doesn't work, try vi)

Use the arrow keys to get around in the file.

Find the section somewhat like this:

Section "Screen"
Identifier "screen1"
Device "device1"
Monitor "monitor1"
DefaultColorDepth 24

Subsection "Display"
Depth 8
Virtual 1024 768

Anyway, something like that... might be different for you.
Place the resolution you would like to use first in the list, in all the sections where you find the wrong res..

When you are done, hit escape and then type :wq to write to the file and then quit.

Reboot. Everything should work.

You probably knew how to do most of that, sorry if it sounded a bit too easy. :)

krissly1 12-06-2003 12:33 AM

Sorry, but what do you mean by this?
Make sure you are at the root of the filesytem (/), then

mary 12-06-2003 11:50 AM


cd ..

until your prompt's current working directory is just a /.

[root@localhost /] #

Your prompt may look different, but make sure it has that slash in it.
Else you will be in the wrong directory to cd to etc.

ter_roshak 12-06-2003 11:56 AM

A faster way to get to / is to type:

cd /

which will take you directly to the root. Or you can type the absolute path of your destination, which is:

cd /etc/X11

And you will be in the correct directory no matter where you began.


mary 12-06-2003 12:07 PM

Ah, I'm still a newbie myself. Much easier that way, I forgot that there was another way to do it. :)

ter_roshak 12-06-2003 12:17 PM

Still, do not forget, the easiest way to perform this action is to run the configuration script by Red Hat, which is redhat-config-xfree86. With this, all you have to do is login as root and type ./redhat-config-xfree86 on the command line without changing directories or anything else.



MasterC 12-06-2003 05:12 PM

Thanks, I can see again. You can't fix it if you don't break it.

krissly1 12-06-2003 05:16 PM

Sorry, that last post was me. Forgot to log MasterC out.

mary 12-06-2003 06:24 PM

Glad you got it fixed. :)

All times are GMT -5. The time now is 02:28 PM.