Debian: Set the Resolution by Command Line

Debian: Set the Resolution by Command Line

This weekend I ran into a trivial issue I usually ignore since I will use putty for virtually everything on a Linux virtual machine. I fired up a VM I downloaded and the resolution was 800×600 by default, which compared to the 4k landscape I have available was a little less than ideal. It was a Debian based OS, so the fix was pretty simple. Fire up the terminal and type in “xrandr”, in my case the display was “Virtual1”, it will show you a list of available resolutions. Once you find the one you want set it by using the command:
xrandr --output --mode

In my case this was:
xrandr --output Virtual1 --mode "1680x1050"

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.