Member-only story
How to Set A Custom Screen Resolution in Ubuntu Desktop
2 min readDec 29, 2020
Your preferred screen resolution is not available in the Display settings?
Well, here I’m going to show you how to add a custom screen resolution in Ubuntu.
On my Ubuntu Desktop, 1360x768 (16:9) resolution is missing. So I can’t use it on my external monitor.
To add custom resolution we can use xrandr
to create new custom resolution profile.
- Open terminal via Ctrl+Alt+T or by searching for “Terminal” from dash. When it opens, run command:
xrandr
It outputs current screen resolution as well as all available solutions. ALL I need here is the display device name, in my case, it’s DP-1. - Run command to calculate VESA CVT mode lines by given resolution:
cvt 1360 768
Replace1360 768
in the command to your desired screen resolution - Copy the Modeline, and run command to add new mode:
sudo xrandr --newmode "1360x768_60.00" 84.75 1360 1432 1568 1776 768 771 781 798 -hsync +vsync
The command section after--newmode
are COPIED from previous step output.
For Ubuntu 17.10 Wayland, runxhost si:localuser:root
command first in the terminal window to avoidsudo
failure “No protocol specified Can’t open display 0:” - Now add the new created mode for your display device:
sudo xrandr --addmode DP-1 "1360x768_60.00"
…