03-14-2021, 11:32 PM
So I have found some kind of a solution. I looked at all available video modes and the clock settings they have. This way I knew what clocks are supported in the kernel. Then I chose the one that was close to desired value and constructed the modeline with cvt.
To anyone who may look for a solution, as I did, here are my final settings:
This only works in ayufan's build, Armbians with new mainline kernel aren't good in terms of graphics support. The reason I've made two resolutions is that though native resolution is stated to be 1024x600 and it seems to be correct, the image is not square with this resolution, it looks squashed a little. 1024x576 seems to be correct geometrically, but is little blurrier (I wonder if this panel has not square pixels), so you can try and choose the one you like more. Anyway both of this resolutions give much better image then the standard and the screen works as it supposed.
I would like to have better solution, because now if you disconnect/reconnect the display it sets random resolution and you have to set it again manually. Also console resolution is wrong still, but it may be fixed with fbset, but I didn't test it.
To anyone who may look for a solution, as I did, here are my final settings:
Code:
xrandr --newmode 1024x600 49.50 1024 1029 1042 1312 600 602 605 622 -hsync +vsync
xrandr --addmode HDMI-1 1024x600
xrandr --newmode 1024x576 49.50 1024 1072 1168 1312 576 579 584 600 -hsync +vsync
xrandr --addmode HDMI-1 1024x576
I would like to have better solution, because now if you disconnect/reconnect the display it sets random resolution and you have to set it again manually. Also console resolution is wrong still, but it may be fixed with fbset, but I didn't test it.