1024x600 resolution support
#1
I have Rock64 that I want to use with this HDMI display by Waveshare: https://www.waveshare.com/wiki/7inch_HDM...with_case). It has native resolution of 1024x600 and that is the main problem.
I tried latest Armbian and latest Ubuntu 18.04 Bionic by ayufan. In first case it runs only 1080p and I can't set any other resolution, and haven't found any help on their forum, with the second image I can chose between multiple standard resolutions, but there is no native one and the image looks bad (obviously).
I tried to set native resolution with xrandr:
Code:
xrandr --newmode "1024x600" 49.00 1024 1029 1042 1312 600 602 605 622 -hsync +vsync
xrandr --addmode HDMI-1 "1024x600"
xrandr --output HDMI-1 --mode "1024x600"
When I do so screen turns black and there is message in dmesg:
Code:
[  195.715484] rockchip-vop ff370000.vop: [drm:vop_crtc_enable] Update mode to 1024x600p0, type: 11
[  195.717392] dwhdmi-rockchip ff3c0000.hdmi: Rate 24000000 missing; compute N dynamically

I thought that values for video mode might be wrong, so I decoded edid from the display and took the settings I've found there. But that didn't change anything.

So I understand, that rockchip's driver doesn't have needed clock, but why can't it calculate it dynamically, if it says, it does?

I also tried recompiling u-boot for armbian with proper mode, as I read it might help, but it also did nothing and I don't know where to look now. If it's a driver in a kernel that needs patching, I would like to know which exactly, because trying to find needed information not having any prior knowledge of rockchip devices is hard.

I will be happy to get any help with this or at least if someone tells me that it can't be done, if it so for sure.
  Reply
#2
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:
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
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.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Encryption support rockfun 1 1,009 06-10-2020, 08:27 AM
Last Post: rockfun
  Installing DietPie on Rock64 and set 1280x1024 resolution Dape97 2 1,230 05-26-2020, 07:20 AM
Last Post: Dape97
  mainline kernel sound support Openwrt lucize 2 1,253 05-01-2020, 05:09 PM
Last Post: PakoSt
  5.3 kernel support? csrf 5 2,371 04-18-2020, 11:34 PM
Last Post: CameronNemo
  MSI-X support for KVM? pfworks 1 1,193 06-12-2019, 03:48 AM
Last Post: RussianNeuroMancer
  Hyperion/Ambilight support? qwasy 5 3,110 03-30-2019, 04:40 PM
Last Post: antaril
  Arch Linux minimal image w/ full HDMI output support hiccupstix 1 1,700 11-01-2018, 08:33 AM
Last Post: danboid
  Most stable Linux rom and 1080p support? Nelly 2 1,591 10-08-2018, 12:30 PM
Last Post: Nelly
  Updates on Mainline Linux Support? hnaguski 0 1,142 09-11-2018, 08:16 PM
Last Post: hnaguski
  Kodi + Docker - what are the image options for Rock64 to support this? zarusz 0 1,458 05-20-2018, 01:41 AM
Last Post: zarusz

Forum Jump:


Users browsing this thread: 1 Guest(s)