hectorcanto
3/27/2018 - 8:32 AM

How to create and persist a custom resolution in Ubuntu 16.

How to create and persist a custom resolution in Ubuntu 16.

# Based on http://ubuntuhandbook.org/index.php/2017/04/custom-screen-resolution-ubuntu-desktop/
xrandr
# eDP-1, take note of the device you want to modify

cvt 1408x792 # True 16:9 resolution: https://pacoup.com/2011/06/12/list-of-true-169-resolutions/
# Modeline "1408x792_60.00"   90.75  1408 1480 1624 1840  792 795 800 823 -hsync +vsync

sudo xrandr --newmode "1408x792_60.00"   90.75  1408 1480 1624 1840  792 795 800 823 -hsync +vsync
sudo xrandr --addmode eDP-1 "1408x792_60.00"
echo  xrandr --newmode "1408x792_60.00"   90.75  1408 1480 1624 1840  792 795 800 823 -hsync +vsync >> ~/.profile 
echo xrandr --addmode eDP-1 "1408x792_60.00" >> ~/.profile 

# Open Displays and choose the new custom resolution