Enter your email address:

Delivered by FeedBurner

Changing screen resolution on the fly


StumbleUpon Toolbar

If you want to change your screen resolution, while still running Linux but you are not using Gnome or KDE, which gives good options to change screen resolution, you will have to use the xrandr command

If you enter it alone:

xrandr

You will see something like this:

Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 1280 x 1024
default connected 1280x1024+0+0 0mm x 0mm
   1280x1024      60.0*    47.0     43.0  
   1024x768       85.0     75.0     72.0     70.0     60.0  
   800x600        85.0     75.0     72.0     70.0     60.0     56.0    100.0     90.0  
   640x480        85.0     75.0     72.0     60.0    120.0    100.0     90.0  
   1152x864       75.0     70.0     60.0     47.0     43.0  
   720x576        60.0  
   640x400        75.0     60.0  
   400x300        75.0     60.0  
   320x240        75.0     60.0  
   320x200        75.0     60.0  

Now to change from one resolution to the other just enter and xrandr and the resolution with the -s option, like this example:

xrandr -s 1024x768

and it will change your resolution to 1024x768 (obviously) :).

That option should be listed in your /etc/X11/xorg.conf file in order to appear as a possible option, remember that once you reboot your system you will be back to the default resolution, so if you want something permanent, you will to edit your /etc/X11/xorg.conf and put the desired resolution as the first of the list, here is my Screen section of this file.

Section "Screen"

# The Identifier, Device and Monitor lines must be present

    Identifier  "Screen 1"
    Device      "VESA"
    Monitor     "Generic Monitor"
    #Option "AddARGBGLXVisuals" "true"

# The favoured Depth and/or Bpp may be specified here

    DefaultDepth 24

    SubSection "Display"
        Depth           8
        ViewPort        0 0
        Modes "1024x768" "800x600" "640x480"
    EndSubsection

    SubSection "Display"
        Depth           16
        ViewPort        0 0
        Modes "1024x768" "800x600" "640x480"
    EndSubsection

    SubSection "Display"
        Depth           24
        ViewPort        0 0
        Modes "1280x1024" "1024x768" "800x600" "640x480"
    EndSubsection


EndSection

As you can see the defaul Depth is 24, and in that mode "1280x1024" is the first option, so it will be my startup resolution.

Trackback URL for this post:

http://www.go2linux.org/trackback/444
from ubuntu on Sun, 02/10/2008 - 18:53

Bookmarked your post over at Blog Bookmarker.com!

StumbleUpon Toolbar

 If you like this article, subscribe to our full rss

If this article was somehow useful for you, you can leave something in the tip's jar

Please post your question in our forum and use comments only to leave your comments about the article, thanks.

thanks u bro

thanks u bro

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

This site is proudly hosted at Bluefur Hosting