Change the screen resolution thru commandline, using xrandr

Once I changed my screen's resolution to a very small value and as a result I wasn't able to see the drop down box of the GUI application to change it back. This was when I came to know about Xrandr, a great command line application to configure X11 server. Well, there are a lot of things it can do but if you ever want to change the resolution, use this command.

[shredder12]$ xrandr -s widthxheight,

to change the resolution into 1024x768 replace widthxheight with 1024x768 and it will change it in a moment.

2 Comments

Alan Pope (not verified)
November 22nd, 2009 10:10 pm
Unless you're using the binary nVidia driver, which doesn't support xrandr :(
FarJumper (not verified)
December 19th, 2009 04:15 pm
Nvidia blobs support xrandr from 2008. What driver version do you have?

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <img> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <h1> <h2> <h3> <h4> <h5> <h6> <p> <br>
  • Image links with 'rel="lightbox"' in the <a> tag will appear in a Lightbox when clicked on.
  • Search Engines will index and follow ONLY links to allowed domains.

More information about formatting options

Mollom CAPTCHA (play audio CAPTCHA)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.