Tuesday, August 30, 2011

Resolution configaration using xrandr - Ubuntu

I was recently solving a problem with my secondary monitor screen resolution. I have 24'' 16:9 widescreen LCD monitor but the maximum resolution available in GUI monitor config tool was only 1680x1050. What I needed was 1920x1080 to make my monitor even sharper.

After some googling I have found this Ubuntu Wiki page which describes many possible display configurations using the xrandr command line tools.

Xrandr enables you to add new resolution mode for your monitor. To add new mode use this command:
xrandr --newmode "1920x1080_60.00"  172.80  1920 2040 2248 2576  1080 1081 1084 1118  -HSync +Vsync
xrandr --addmode VGA-0 1920x1080_60.00

After that, you can easily set the new resolution mode for your output device (in this case name of the device is VGA-0)
xrandr --output VGA-0 --mode 1920x1080_60.00
You can do also other stuff with xrandr command line tool (such as setting primary monitor xrandr --output VGA-0 --primary)
I would recommend to use this command line tool instead of GUI config tool.

No comments: