LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   [Xwindows] Can't Switch Back to 1024x768 (http://www.linuxquestions.org/questions/linux-general-1/%5Bxwindows%5D-cant-switch-back-to-1024x768-40221/)

BxBoy 01-03-2003 06:52 PM

[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.

nxny 01-03-2003 07:46 PM

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

BxBoy 01-03-2003 08:48 PM

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.

nxny 01-03-2003 11:20 PM

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?


BxBoy 01-04-2003 12:09 AM

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.

nxny 01-04-2003 03:10 PM

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?

BxBoy 01-04-2003 06:29 PM

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


traked 01-04-2003 10:00 PM

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.

nxny 01-05-2003 03:35 PM

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.

nxny 01-05-2003 03:38 PM

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.


All times are GMT -5. The time now is 03:22 AM.