Hand Notes: Add a custom resolution in Ubuntu 20.04 (Gnome DE)

A lifelong learner. Love to travel. Listen to music.
Search for a command to run...

A lifelong learner. Love to travel. Listen to music.
No comments yet. Be the first to comment.
Best Practices for Path Structure, Versioning, and Error Handling

Understanding the Performance Implications of async and defer Attributes

Overview static: Default position. It does not allow setting properties like top, bottom, left, right, z-index relative: Acts the same as static. but allows positioning it relatively by putting properties like top, bottom, left, right, z-index absolu...

Overview When an element in the browser has a conflict of styles, the browser uses a set of rules to determine which style should be rendered. This set of rules is defined as CSS Selector Specificity. For instance, for an element, if we have the foll...

Master block, inline, flex, and grid to build better web layouts

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
~/.profilegedit ~/.profile
~/.profilexrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode DP-1 "1920x1080_60.00"
Now you should get your custom desktop environment in the display section.
Leave a comment for any query or suggations.