add a new mode resolution to external monitor in Ubuntu linux
If you need to add a new mode like 1980x1080 follow me:
1- To know the modeline of the resolution:
$ cvt 1980 1080
you get two lines:
# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
2- copy the information after the word Modeline into the xrandr command:
the xrandr command is:
xrandr --newmode <ModeLine>
the new the xrandr command with the modeline is:
$
xrandr --newmode
"1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
3- know the name of the display:
Just write:
$ xrandr
For me the second or the external monitor is named: DP-1
4- the last line is to add the new mode to the external resolution list, so write:
$ xrandr --addmode DP-1 1920x1080_60.00
source: link