Saturday, February 27, 2010

How to Solve Screen Resolution Problem in Ubuntu / Debian with Command Line Utility xrandr


X Rezise and Rotare (xrandr) is a utility available in your Linux  system for reseting and resizing your screen resolution. It is a command line utility. so if your display disapperaed ?? No problem you can do it from a Terminal (Press Ctrl+Alt+f1).

First You have to find the possible resolutions with  xrandr -q

$ xrandr -q
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 1024 x 1024
VGA connected 1024x768+0+0 (normal left inverted right x axis y axis) 270mm x 200mm
1024x768 60.0*
800x600 85.1 75.0
640x480 85.0 85.0 75.0 59.9
720x400 70.1

Now you can set your resolution with command
$ xrandr -s 1024x768

More Details
$ man xrandr

6 comments:

Unknown said...

I get a message "cannot open display". Why?

shibuvarkala said...

try xrandr -q for find possible display resolutions

shibuvarkala said...

Some old version will not support nvidia

Ihar Filipau said...

Well, if xrandr works that means you do not have any "resolution problem."

"Resolution problem" is like when xrandr shows that your 1920x1200 24" display only supports 1024x768. That's a problem. And that still happens to me occasionally.

Anonymous said...

1024X768 resolution is not detected. A higher resolution is accepted and the lower resolutions too. HELP!

xrandr command didn't work as 1024X768 wasn't found or accepted.

This didn't happen until I updated to ubuntu 10

Unknown said...

I am not getting the display..
its just starting boot and shutting down due to the high resolution settings... how to resolve