LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-18-2001, 05:03 PM   #1
DFrey
LQ Newbie
 
Registered: Nov 2001
Posts: 6

Rep: Reputation: 0
Question How can I set the default resolution?


I installed RH 7.1, and the video drivers from NVIDIA. So far no problems, all works well. Just one little nagging annoyance. X starts up in 640x480 and I'd like it to start in 1024x768. Now according to the man file on XF86Config, the first valid mode listed in the Display subsection is used as the default mode. Xconfigurator set it up with 640x480 as first, and 1024x768 as last. So I decided to reverse the order of the modes in order to make 1024x768 the default. I rebooted and now all the sudden, I'm getting errors with gdm. The message indicates that gdm was already running and was mysteriously killed. It tries to start 5 times, waits 3 seconds and tries again 5 times and so on. Eventually this process gets put to sleep for 5 minutes and gives me a chance to login through the console. I put back the original XF86Config file, and went into /var/run to delete gdm.pid, and then rebooted. But gdm was still failing to start. So, being a newbie I just decided to reinstall RH and the NVIDIA drivers. So I'm back to square one. How can I set the default resolution to 1024x768? Is there some command I can add to a script to change the mode?
 
Old 11-18-2001, 05:35 PM   #2
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
here is the section of Your XF86Config file you need to edit.

the DefaultDepth is the Default Depth of resolution. i have mine at 24bits (which is what you probably want). XFree will use the resolutions in that section as default starting with the first in the list. With mine this is 1024x768. just delete the ones that you don't want.

Code:
Section "Screen"
    Identifier  "Screen 1"
    Device      "GEFORCE 2 PRO"
    Monitor     "M70"
    DefaultDepth 24

    Subsection "Display"
        Depth       8
        Modes       "640x480" "800x600" "1024x768" "1280x1024"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "640x480" "800x600" "1024x768" "1280x1024"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1024x768" "1280x1024"
        ViewPort    0 0
    EndSubsection
EndSection
 
Old 11-18-2001, 06:13 PM   #3
DFrey
LQ Newbie
 
Registered: Nov 2001
Posts: 6

Original Poster
Rep: Reputation: 0
Thaks for the reply, but is there any way I can keep the 640x480 mode? I'd like to keep it for games. Perhaps there is a command to simulate a Ctrl/Alt/- ?
 
Old 11-18-2001, 07:25 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
what do you mean simulate?? you can reverse teh res order in xf86config-4 and then just restart X, shouldn't be anything else to it than that. if the res doesn't work, it should use the next one anyway.
 
Old 11-18-2001, 07:46 PM   #5
DFrey
LQ Newbie
 
Registered: Nov 2001
Posts: 6

Original Poster
Rep: Reputation: 0
Whenever I try to reverse the modes in the display subsection, X fails to start, actually gdm fails to start like I describe in the original post above. In the default config, all the modes work, I just don't like the order the modes are in. And whenever I change the order, gdm fails to start. I know that doesn't make sense, as I can't figure out what XF86Config-4 has to do with gdm starting. For example this doesn't work for me:
Code:
...
Section "Screen"
    Identifier  "Screen 1"
    Device      "NVIDIA TNT"
    Monitor     "Sony 100ES"
    DefaultDepth 24

    Subsection "Display"
        Depth       8
        Modes       "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1024x768" "800x600" "640x480"
    EndSubsection
EndSection
but of course this does (but in an order I don't like):
Code:
...
Section "Screen"
    Identifier  "Screen 1"
    Device      "NVIDIA TNT"
    Monitor     "Sony 100ES"
    DefaultDepth 24

    Subsection "Display"
        Depth       8
        Modes       "640x480" "800x600"  "1024x768"
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "640x480" "800x600"  "1024x768"
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "640x480" "800x600"  "1024x768"
    EndSubsection
EndSection
 
Old 11-19-2001, 03:33 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
you may need to change DefaultPdeth down to only 16, i'm not sure my geforce cards actually likes being in 24bpp either.

and xf86config-4 will affect gdm as gdm is an x application, so X is needed...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
default screen resolution smaller than max. resolution ?? Thoddy Linux - General 2 11-10-2005 02:33 AM
Hoary -- can't set a default vid resolution harrkev Ubuntu 3 08-21-2005 05:24 PM
X: using larger resolution for games than default desktop resolution Jamo Linux - Games 2 04-10-2005 04:16 AM
XFre86 default resolution archlyn Linux - Software 3 02-22-2004 05:21 PM
Default Resolution marlaina1 Linux - General 1 06-01-2002 02:06 PM


All times are GMT -5. The time now is 01:00 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration