How to use real hdmi resolutions?

I did not ask about unsupported resolution. I’ll add unsupported resolution himself.

I ask about standart resolution, like 1280x720 or 720x480 or 720x576.
How to use real standart resolution?

If you choose screen resolution (1280x720 eg) in the settings menu/hdmi, you won’t get a real resolution 1280x720. The image will be stretched to 1920x1080 will be blurry!

The image is always displayed 1920x1080 regardless of the selected resolution!
You can check it with command “wm size” and “dumpsys display | grep mBaseDisplayInfo”/

I choosed screen resolution 1280x720 in the settings menu/hdmi, and this is my log:

root@Vim:/ # wm size
Physical size: 1920x1080
root@Vim:/ # dumpsys display | grep mBaseDisplayInfo
mBaseDisplayInfo=DisplayInfo{“Built-in Screen”, uniqueId “local:0”, app 1920 x 1080, real 1920 x 1080, largest app 1920 x 1080, smallest app 1920 x 1080, mode 1, defaultMode 1, modes [{id=1, width=1920, height=1080, fps=60.000004}], colorTransformId 1, defaultColorTransformId 1, supportedColorTransforms [{id=1, colorTransform=-22}], rotation 0, density 350 (159.895 x 160.421) dpi, layerStack 0, appVsyncOff -5500000, presDeadline 17666666, type BUILT_IN, state ON, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}

How to fix it and use REAL standart resolution (1280x720 or or 720x480 or 720x576)???

And what is the file ‘/system/etc/mesondisplay.cfg’?
Why is it cuts off picture?

I don’t know also, but you can create the file and add the char into it. Have a try.:grinning:

MBOX meson8m2 720

I tried it.

After that, it turns out 1920x1080 is cut off the part of the size 1280x720. In this case, the Android continues to output 1920x1080.

VIM can display only image in resolution of 19201080. It is the big problem for the small displays.
How will You solve the problem with the use of display resolutions other than 1920
1080?
How to use the native resolution for example 1280*720 or other standard resolution?

Hi,davemf
what’s it about ?

I have successfully added all the new HDMI resolution on the rockchip, but it doesn't work on amlogic.
I have try modif files like onroidC2 board, but new resolution does not added.
I found how to set any screen resolution via build.prop. You need to add two lines:

const.window.w=1280
const.window.h=800
After that the picture has resolution 1280x800 on the display is left at the top.
After that I cuts off picture with using the file '/system/etc/mesondisplay.cfg', but mesondisplay.cfg has only 720p and 1080p only. 
'mesondisplay.cfg' file is used on two files 
vendor/amlogic/frameworks/services/systemcontrol/DisplayMode.h
vendor/amlogic/frameworks/services/systemcontrol/DisplayMode.cpp
I have try modify this files for 1280x800 resolution, but but new resolution does not added.
I can sent your my modified files on your email.

PS:

const.window.w=1280
const.window.h=720

with mesondisplay.cfg

720p

works perfectly.

Yes, I did it on geekbox on rk3368. But it does not work on Vim.
mesondisplay.cfg has 1080p and 720p only…
And how to use it with standart 720480 and custom 1280800, 1024600, 800480?

We need this resolution on 7 inch displays.

Hi,davemf
We were busy in this week and will have a try for the custom resolution in next week.
Thanks

1 Like

Hello, Any update?
We have the same issue with How to use real hdmi resolutions?. Thanks!

We very need custom and native resolutions.

hi, @davemf @cobbin

Terry is working to solve the issue, and he has already done that, but we don’t have enough monitor/display for testing, so is it possible for you two to help us for testing?

Thanks!

Of course, with pleasure!
How to get new source with custom resolutions?

Just a thought, why don’t you release a preview build, there are surely people that are willing to test Ubuntu, i would like to help out but i don’t have enough of free time.

This would help you to squash bugs and iron out Ubuntu, it would make things a little easier for you, i am sure that you will have no hard time finding Vim owners willing to help.

2 Likes

How to test new resolutions?

Terry, Gouwa where are you???

Hello,

It’s been a long time since this post is inactive, but I try.
I’m having the same behaviour with the VIM3L and 2160p resolution with last android build. I’m stuck in 1920x1080 “real” resolution.

adb shell wm size
Physical size: 1920x1080

Any hint or solution ?
Thanks and regards

Hello, wm size shows the resolution of the system UI

Hello,

So System UI is in 1920x1080px resolution.
But my app seems to retain this resolution, even when the khadas is connected to 3840x2160px screen and display resolution settings is set to 2160p.
What is preventing my app to scale in full resolution then ?
Thanks and regards

Do you want to adjust the resolution of the UI to the same resolution as your monitor?

@SNY_49 If you want the HDMI resolution to be consistent with the system UI resolution, you can use the wm size xx command to achieve it.

C:\Users\25348>adb shell
* daemon not running. starting it now at tcp:5037 *
* daemon started successfully *
 $ su
 # wm size 3840x2160