Quickly configuring modelines?
Quickly configuring modelines?
Something hopefully no one should ever have to do in the far distant future, but since I insist on using old-hardware till it drops, it still comes up.
Working from an SSH console on an XBMC box, I was trying to tune in an elusive 1366x768 modeline for an old plasma TV.
The best way to do it is with xrandr these days in a ~/.xprofile
script which
is loaded on boot up.
To quickly go through modelines I used the following shell script:
#!/bin/bash
xrandr -d :0 --output VGA-0 --mode "1024x768"
xrandr -d :0 --delmode VGA-0 "1360x768"
xrandr -d :0 --rmmode "1360x768"
xrandr -d :0 --newmode "1360x768" $@
xrandr -d :0 --addmode VGA-0 "1360x768"
xrandr -d :0 --output VGA-0 --mode "1360x768"
Simply passing in a modeline when running it causes that modeline to be set and applied to the relevant output (VGA-0) in my case.
i.e. ./tryout 84.750 1366 1480 1568 1800 768 769 776 800 -hsync +vsync