How To Change Screen Resolution Size on Droplet?

Hi. I installed Ubuntu 20.04 on my droplet. I was following through with this blog.

It is working now for me, but my problem is Screen Resolution. Resolution support only 1364x768(16:9) I want to change it to 1920x1080 I am not sure how can I change it. I am connecting it via Teamviewer now. Please help me. Thanks.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Site Moderator
Site Moderator badge
May 31, 2023


In order to change the screen resolution on your Ubuntu 20.04 droplet, follow these steps.

  1. Open the terminal and run this command to identify your display:

    1. xrandr

You’ll see an output with your display name (e.g., eDP-1, DP-1 etc.).

  1. Add the new 1920x1080 resolution with the following command, replacing YOURDISPLAY with your display name from the previous step:

    1. xrandr --newmode "1920x1080" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync && xrandr --addmode YOURDISPLAY "1920x1080"
  2. Finally, change the resolution by executing this command and replacing YOURDISPLAY again:

    1. xrandr --output YOURDISPLAY --mode "1920x1080"

If this works, you can add the commands from step 2 and 3 to the /etc/rc.local file to persist the changes across reboots.

For more information on resizing your droplet’s screen resolution, please refer to our Resize Droplet Guide.

Hope that this helps!

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.