Table of contents
No headings in the article.
This article implementation is applicable for Ubuntu 20.04 with Gnome Desktop Environment
Last week I installed ubuntu on my desktop machine. My monitor can handle a resolution of 1920x1080 with a 60hz refresh rate.
After installing the distro, I checked the display section, and the resolution for 1920x1080 is not listed in the drop-down list.
So I follow the following steps.
Step 1: Created a new resolution mode using
cvt 1920 1080
This calculates the resolution which is required for creating a new resolution mode. You can use the refresh rate as the 3rd parameter.
Step 2: Create a resolution mode
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
“1920x1080_60.00” 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
is the output from the previous command.
Step 3: Now it’s time to add this new mode to the system
xrandr --addmode DP-1 "1920x1080_60.00"
1920x1080_60.00 is the output from the step 1 execution.
This DP
can be VGA
according to the connection you are using like HDMI connection or VGA connection. Also, the suffix number varies by the number of connected monitors.
Now the new resolution is should be added to the display section.
To persist these changes follow the last step.
Step 4: Persisting these changes during machine start
- Edit the
~/.profile
gedit ~/.profile
- Add the step 2 and step 3 commands at the last of the
~/.profile
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode DP-1 "1920x1080_60.00"
- Save and exit from the program.
Now you should get your custom desktop environment in the display section.
Leave a comment for any query or suggations.