There is a Flatron E2042 in the office I work in and it's having the worst [firmware] problem I've ever seen in a display: it can't always work in full resolution.
Today is the day when it worked and I'd like to get the modeline for the correct resolution. It's not in Xorg.0.log and gtf
/cvt
are for calculating a modeline. AFAIU xrandr --verbose
is showing all the needed numbers but rearranged and not readily available for later use in --newmode
. And xvidtune -show
lists only the internal display with nothing in the manual about selecting another one.
So, any other way to get the current modeline?
Update:
Script that I now use to make it work:
#!/bin/bash
modeline="flatron_e2042 108.00 1600 1624 1704 1800 900 901 904 1000 +hsync +vsync"
xrandr --newmode $modeline
modename="$(echo ${modeline%% *})"
xrandr --addmode VGA1 $modename
xrandr --output VGA1 --mode $modename