Moved to https://interlaced-insanity.com/wiki/custom-resolutions-with-xrandr/
Quick how to on custom resolutions on X11/Linux with xrandr
Use gtf
to calculate modelines
Copy the modeline and add it with xrandr. You can change "1024x768_60.00"
to whatever you want, if you wish to.
xrandr --newmode "1024x768_60.00" 64.11 1024 1080 1184 1344 768 769 772 795 -HSync +Vsync
Then associate the added modeline with an output
xrandr --addmode DisplayPort-0 "1024x768_60.00"
Then change to the new mode with
xrandr --output DisplayPort-0 --mode "1024x768_60.00"
That's it! If you're on a multimonitor setup, you may also want to define the positions with flags like --left-of
, read man xrandr
.
Automation
This process can obviously be automated.
You can save this file as crtmode
, and run it with the modelines generated with GTF or some other program.
./crtmode "1024x768_60.00" 64.11 1024 1080 1184 1344 768 769 772 795 -HSync +Vsync
If you only need modelines from GTF, script below automates running gtf
too.
You can save it as gtfmode
and run ./gtfmode 1024 768 60
Overriding Nvidia mode checks
Nvidia tries to validate your modelines, which may limit your refresh rates and other such "overclocking". You'll notice this as BadMatch
errors when running xrandr --addmode
.
You can disable these checks at least when using X11, read the documentation:
https://download.nvidia.com/XFree86/Linux-x86_64/396.51/README/xconfigoptions.html
Below a minimum example config which disables every mode check.
Save it to /etc/X11/xorg.conf
or /etc/X11/xorg.conf.d/30-novideo.conf
(recommended)
Be aware out-of-spec modelines may damage monitors, but that's exceedingly rare with Multisync CRTs. But do this on your own risk.
My GPU also locks up when trying certain resolutions, so be prepared for that when stretching limits.
And before you get excited about AllowDpInterlaced
, it does not work on RTX cards. The documentation implies the lacking DP interlace support is an actual hardware limitation.
Extra
If you need to edit the timings, I wrote this handy editor https://kosshi.gitlab.io/vgatimingeditor/
Page also contains lots of extra info on timings.
t. your favorite 2hu fag