Friday, September 19, 2025

Xrandr for hd resolution - script to retain it on reboot - reduced blanking mode for higher resolutions

For display hardware which don't properly advertise their max resolutions, like a monitor connected via DisplayPort to VGA adapter or on a VM, we can find a supported mode using cvt as mentioned in a previous post, by trial and error.


This page mentions something useful - 
cvt 1920 1080 -r
The “r” option refers to a Reduced Blanking mode, which almost all newer LCD monitors are using. It provides for a lower pixel clock and timing values, which lowers video bandwidth requirements.
cvt 1920 1080
This is a standard mode used by CRT and some older LCD monitors.


Apparently xrandr stands for x resize and rotate

To make it persist on reboot, there are many methods, but finally did the script method which seemed easiest.

Example via chatgpt,
mkdir -p ~/.screenlayout
nano ~/.screenlayout/display.sh

#!/bin/bash

xrandr --newmode "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync
xrandr --addmode VGA-1 "1368x768_60.00"
xrandr --output VGA-1 --mode "1368x768_60.00"

chmod +x ~/.screenlayout/display.sh

In Linux Mint, Menu → Startup Applications,
Add, and in the command, /home/YOUR_USERNAME/.screenlayout/display.sh

Here, the name of the display is got with xrandr -q, which will show something like 
VGA-1 connected primary 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm


Other ways:

No comments:

Post a Comment