LinuxQuestions.org
Help answer threads with 0 replies.
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 01-22-2007, 12:21 PM   #1
pkluver
LQ Newbie
 
Registered: Feb 2004
Posts: 3

Rep: Reputation: 0
Display Resolution File


Can somebody clarify the following for me?

My X server has fatal errors, and the display resolution needs to be reset to the original value.

The file /etc/X11/xorg.conf therein defines the display modes for the monitor, but does not appear to determine which one of the monitor resolutions has been selected to use.

What file/path exactly determines which of the possible monitor resolutions has been selected for use?
 
Old 01-22-2007, 12:33 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
The file is /etc/X11/xorg.conf if you're using Xorg. On XFree86 it's something like /etc/X11/XF86Config or perhaps the same with -4 added to the tail. Anyway, that's the file; and as you said, the resolutions are defined there, in the form of

"1024x768" "800x600" "640x480"

and so on. There are probably multiple lines, one line per one colour depth, but you should understand that. The way those lines are read is: the selected colour depth determines which one of the lines is used. In that line the first one from the left (above it's "1024x768") is the "default" one, i.e. the one that is first tried to be used. If it cannot be used for some reason (card or driver not supporting it or something), then the next one is tried and so on until a suitable one is found or the list ends. This is what the man page says about it too, I think.

Two other important things are 1) vertical and horizontal refresh rates; these must match your screen, if defined -- wrong values may result in error or even damage something if you've got bad luck.. and 2) colour depth; use the colour depth you need, and one that is supported. All these are configured in the xorg.conf file, in the sections for Monitor, Screen and even Device (video card).

After this you may have somekind of script that is read when X starts that tries to change the resolution; that's beyond X then. You should test the resolution with
Code:
startx -e xterm
which should start just X with xterm, with the desired resolution.
 
Old 01-22-2007, 12:34 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
You should have a default mode that tells which bit to use as the default, there it should provide the different resolution modes that it uses, the first one listed in the line is the default it will use.
 
Old 01-22-2007, 02:20 PM   #4
pkluver
LQ Newbie
 
Registered: Feb 2004
Posts: 3

Original Poster
Rep: Reputation: 0
I edited the xorg.conf file until the server worked again based upon your advice. It is not clear to me why, but the error stated the refresh rates were at fault for some of the display settings. Nor was I aware that the order of the display settings established the default setting for the monitor. Anyway, everything is working perfectly now. Thanks again for the assistance.
 
  


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
Display Resolution TurboChicken Linux - Newbie 5 03-04-2006 11:06 AM
display resolution help saiz66 Slackware 10 10-20-2005 11:08 PM
display resolution dhlawrence Linux - General 2 09-16-2005 07:27 PM
Display resolution not being saved webwolf11 Linux - Hardware 1 03-29-2004 04:13 PM
display resolution Jenifer Linux - Newbie 4 04-23-2001 10:24 PM

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

All times are GMT -5. The time now is 11:03 PM.

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