With terminal: Change monitor resolution

Changing the resolution of the monitor through a terminal is quite simple, and faster than using any graphic tool.

We open a terminal and put:

$ xrandr

That will return a list more or less similar to this:

Screen 0: minimum 320 x 200, current 1024 x 768, maximum 4096 x 4096
VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 310mm x 230mm
1024x768       85.0*+   75.1     70.1     60.0
1280x1024      60.0
1152x864       75.0
832x624        74.6
800x600        85.1     72.2     75.0     60.3     56.2
640x480        85.0     72.8     75.0     66.7     60.0
720x400        87.8     70.1

Now we just have to simply write:
$ xrandr -s [Nro]

Where [] It is the number of the line where the resolution that we are going to put is found, starting from line 0 (Zero).

The content of the article adheres to our principles of editorial ethics. To report an error click here.

7 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *



  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   oleksis said

    Wow! great tips, long ago I was looking for something easier for Debian than dpkg-reconfigure xserver-xorg

    It works correctly .. Thanks!

    1.    elav <° Linux said

      We are glad that it has served you 😀

  2.   F.Glez said

    I have Ubuntu 11.04.

    How to put one by default and, in case it is not the way I want, how and where (editing which file) I can add it.

    Before there was the xorg.conf which was very easy, but now, where is the configuration menu?

    Thanks a lot and good job…

  3.   Luis said

    I have the debian squeeze but when I put xrandr in the terminal it displays the list with only 3 options:

    1024 × 600 60.0 * +
    800 × 600 60.3 56.2
    640 × 480 59.9
    and I want the one of 1152 × 864

    1.    Juan said

      If you only have € 3 you cannot spend 10. 😉

  4.   juan carlos said

    How do I enter console mode ??? when debian starts it only shows me certain options but none say console mode.

  5.   humberto porras said

    Thank you very much I could not change from configuration because it stayed in 640 × 480 and it does not come out to apply accept