Add new Resolution option for Display on Ubuntu

  1. Find the monitor or display using the xrandr command
$xrandr

Here, DP-1 will be your Display / Monitor ID

2. Get the Modeline string using one of below command

cvt 1366 768

or

gtf 1920 1080 60

3. Add new mode using Modeline output

xrandr --newmode "1920x1080_60.00"  172.80  1920 2040 2248 2576  1080 1081 1084 1118  -HSync +Vsync

4. Add created new mode to desired display

xrandr --addmode DP-1 "1920x1080_60.00"

Once this is done you can see the Resolution in the Settings > Display > Resolution dropdown.

5. Add to your bash profile to make it permanent

sudo gedit ~/.profile

Add below two commands to there.

xrandr --newmode "1920x1080_60.00"  172.80  1920 2040 2248 2576  1080 1081 1084 1118  -HSync +Vsync 
xrandr --addmode DP-1 "1920x1080_60.00"

Note : Check the maximum resolution that monitor supports also otherwise it will display something like this.

References :

  • https://blog.mohessaid.com/fix-external-monitor-resolution-in-ubuntu-20-04-9c24cee65950
  • https://unix.stackexchange.com/questions/227876/how-to-set-custom-resolution-using-xrandr-when-the-resolution-is-not-available-i
  • https://askubuntu.com/questions/138408/how-to-add-display-resolution-for-an-lcd-in-ubuntu-12-04-xrandr-problem

#display, #ubuntu

Restore terminal

This happened when multiple python3 versions installed. We need to specify the exact version in that case. You can use Xterm like third party terminal for this.

sudo nano /usr/bin/gnome-terminal

Then, change:

#!/usr/bin/python3

to exact version

#!/usr/bin/python3.x

Reference :

#terminal, #ubuntu

boot repair

  1. sudo add-apt-repository ppa:yannubuntu/boot-repair
  2. sudo apt update
  3. sudo apt install boot-repair
  4. boot-repair

Repair the boot of the computer in standard way

Say No to upload the report to the paste bin

sudo reboot now

ref : https://www.youtube.com/watch?v=bzbIckBnerg&t=703s

#boot, #os, #ubuntu, #windows