*A LED TV I own does horrible overscan and there is no setting to disable it.
Thus, I’m forced to correct the overscan on the OS side.
xrandr does not longer work for adding custom screen resolution.
Find Device Display Name(s)
Issue this single command below. Copy and paste it in your terminal.
for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n "${con#*/card?-}: "; cat $p; done
My output is
HDMI-A-1: connected HDMI-A-2: connected
because I have two monitors connected. In my case, I need a custom resolution for monitor 1, thus I use HDMI-A-1 from now on.
Edit Grub Configuration to Introduce new Video Mode Kernel Parameter
In terminal, open a text editor (leafpad, mousepad, nano, gedit etc.) as sudoer opening the grub configuration file
sudo gedit /etc/default/grub
I want a resolution of 1800x1012
and 60 Hz.
To accomplish
that, I add video= :1800x1012@60
at
the end of the line starting with
“GRUB_CMDLINE_LINUX_DEFAULT”
in
the grub configuration file.
☝ ️
NOTE:
Make sure you don’t accidentally delete the quotations marks at the end.
HDMI-A-1 is the display name we got in our first command.
1800x1012 is my resolution to fix my overscan issue. Replace it with your own values.
60 is the refresh rate. You can omit it (video=HDMI-A-1:1800x1012) but if you know your monitor’s maximum refresh rate in Hz, it’s best to include it, so you can be certain the system uses the monitor’s highest refresh rate.
Now save changes to your grub configuration file and close it.
Apply Changes
To apply the changes done to grub, execute this command
sudo update-grub
and then reboot to see your new custom resolution.
Setting Resolutions for Multiple Monitors
Omit the device name if you want all monitors to have the same resolution.
Example: video=1800x1012@60
If you have two or more monitors, you can add custom resolutions as shown before in the grub configuration file by adding them each on the same line
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_iommu=on,igfx_off video=HDMI-A-1:1800x1012@60 HDMI-A-2:1980x1080@60"