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-03-2003, 06:52 PM   #1
BxBoy
Member
 
Registered: Oct 2002
Location: New York City (nYc)
Distribution: Red Hat Enterprise 3
Posts: 93

Rep: Reputation: 15
[Xwindows] Can't Switch Back to 1024x768


Help, I was messing with the display settings (trying another similar card on the list) and now I can't switch back to 1024x768 resolution (it is grey'ed out in the System Settings --> Display). Now it only gives me the choice of "640x480" and "800x600".

I had 1024x768 prior to choosing a different card, and now when I switch back to that card on the list, it's gone.

Is there anyway to get that resolution back? I forgot to backup the original /etc/X11/XF86Config before messing with the changes.

Please Help.

My distribution is Red Hat 8.
 
Old 01-03-2003, 07:46 PM   #2
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
try Ctrl + Alt + (Numpad-) to see if you can zoom out. If not edit your XF86Config to put the resolution you want as the first one in the Screen section. Restart X

Mine is 1600x1200 as shown below.

Section "Screen"
Identifier "Screen0"
Device "NVIDIA GeForce 2 MX (generic)"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1600x1200" "1400x1050" "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
 
Old 01-03-2003, 08:48 PM   #3
BxBoy
Member
 
Registered: Oct 2002
Location: New York City (nYc)
Distribution: Red Hat Enterprise 3
Posts: 93

Original Poster
Rep: Reputation: 15
Still Didn't Work, I added the 1024x768 entry..

Quote:
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Modes "1024x768" "800x600"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "800x600" "640x480"
EndSubSection
EndSection
Note, X seemed to have removed the "1024x768" entry (upon startup) in the Depth 24 Display section.
 
Old 01-03-2003, 11:20 PM   #4
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
The 3rd line from the bottom is the only place that needed it. And that's what's lacking it. You mean it disappeared?

Did you edit this file as root? Who are you running the server as? Are you sure the file was saved properly?


Last edited by nxny; 01-03-2003 at 11:23 PM.
 
Old 01-04-2003, 12:09 AM   #5
BxBoy
Member
 
Registered: Oct 2002
Location: New York City (nYc)
Distribution: Red Hat Enterprise 3
Posts: 93

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by nxny
The 3rd line from the bottom is the only place that needed it. And that's what's lacking it. You mean it disappeared?

Did you edit this file as root? Who are you running the server as? Are you sure the file was saved properly?
Yes, I edited it with "1024x768" on that line.
I started X and it still went into "800x600" mode.
I exit X to check the file and the "1024x768" entry was removed.

Yep, as Root. Yes, I'm sure it's saved properly.
 
Old 01-04-2003, 03:10 PM   #6
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
1)What runlevel are you at ?
2)Repeat, who are you running the server as?
(XFree86 is a suid binary, so it always run as root, but who's running startx and hence xinit?)
3)Do you happen to have file named XF86Config-4 next to the XF86Config?
4)What does XFree86 -version say?
 
Old 01-04-2003, 06:29 PM   #7
BxBoy
Member
 
Registered: Oct 2002
Location: New York City (nYc)
Distribution: Red Hat Enterprise 3
Posts: 93

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by nxny
1)What runlevel are you at ?
2)Repeat, who are you running the server as?
(XFree86 is a suid binary, so it always run as root, but who's running startx and hence xinit?)
3)Do you happen to have file named XF86Config-4 next to the XF86Config?
4)What does XFree86 -version say?
1) 5 (default)
2) 'root'. same thing happens as user
3) nope.
4)
Code:
XFree86 Version 4.2.0 (Red Hat Linux release: 4.2.0-72) / X Window System
(protocol Version 11, revision 0, vendor release 6600)
Release Date: 23 January 2002
        If the server is older than 6-12 months, or if your card is
        newer than the above date, look for a newer version before
        reporting problems.  (See http://www.XFree86.Org/)
Build Operating System: Linux 2.4.18-11smp i686 [ELF]
Build Host: daffy.perf.redhat.com

Module Loader present
OS Kernel: Linux version 2.4.18-19.8.0 (bhcompile@tweety.devel.redhat.com) (gcc
version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)) #1 Thu Dec 12 04:37:40 EST 2002
 
Old 01-04-2003, 10:00 PM   #8
traked
LQ Newbie
 
Registered: Jan 2003
Location: Ontario, Canada
Distribution: RedHat 8.0
Posts: 12

Rep: Reputation: 0
Quote:
Originally posted by BxBoy
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Modes "1024x768" "800x600"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "800x600" "640x480"
EndSubSection
EndSection
Dude, you have the default depth set to 24, and the Section for Depth 24 only has 800x600 and 640x480.

The very last Modes line is the one you may want to try adding 1024x768 to.
 
Old 01-05-2003, 03:35 PM   #9
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Quote:
Originally posted by BxBoy
1) 5 (default)
2) 'root'. same thing happens as user
3) nope.
4)
Code:
XFree86 Version 4.2.0 (Red Hat Linux release: 4.2.0-72) / X Window System
(protocol Version 11, revision 0, vendor release 6600)
Release Date: 23 January 2002
        If the server is older than 6-12 months, or if your card is
        newer than the above date, look for a newer version before
        reporting problems.  (See http://www.XFree86.Org/)
Build Operating System: Linux 2.4.18-11smp i686 [ELF]
Build Host: daffy.perf.redhat.com

Module Loader present
OS Kernel: Linux version 2.4.18-19.8.0 (bhcompile@tweety.devel.redhat.com) (gcc
version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)) #1 Thu Dec 12 04:37:40 EST 2002
Here are some things to think about.

a) The fact that you're starting X as root seems to indicate that you are using the root login where is not exactly needed. You should never login as root for day-to-day use ( for this - if you didnt create another login during the install process - you may do an adduser bxboy followed by a passwd bxboy to create the new user bxboy and set his passwd. Or redhat-config-users if you enjoy the GUI toolset). Login as bxboy, for config edits and stuff, you may temporarily become root using su - and logout to reurn to the bxboy shell. root is an all too powerful login and doesnt take much effort to misuse. One mistake as root maybe prove too expensive!
b) do an init 3 as root. This should present you with a text login prompt. login as bxboy, become root by supplying the root password at the su - prompt, edit XF86Config to add the 1024x768, save the file and exit from the su ( root) shell. now start an X session with startx and let's see what happens.
 
Old 01-05-2003, 03:38 PM   #10
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Quote:
Originally posted by traked
Dude, you have the default depth set to 24, and the Section for Depth 24 only has 800x600 and 640x480.

The very last Modes line is the one you may want to try adding 1024x768 to.
traked, that was definitely the right thing to say ( if the post you were commenting on was the last one in the thread ). But things had progressed quite a bit from that point. Please make sure that you read thru the following posts to see where its at before you post your comment.
 
  


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
Xwindows kicks back to login when left alone Wolfy Linux - Newbie 1 07-03-2004 04:58 AM
How to shell out of and back into xwindows? SharpyWarpy Linux - General 2 05-19-2004 05:26 PM
Sax2 trouble; please help me get back the 1024x768 resolution! J_Szucs Linux - Software 2 03-27-2004 09:11 PM
How to get back (RH 7.2) XWindows task bar kmw Linux - Newbie 3 05-23-2002 03:07 PM
Back 2 XWindows abndaddy00 Linux - Newbie 4 01-10-2001 04:32 PM

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

All times are GMT -5. The time now is 06:47 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