HDMI change resolution from 1920x1080 to 1280x720 issue

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

HDMI change resolution from 1920x1080 to 1280x720 issue

5,041件の閲覧回数
wangvictor
Contributor III

Hi All,

I'm using Android 6 on i,MX6 sabresd DL.

In my kernel settings and uboot settings is 1920x1080.

Now I wanna change HDMI resolution in system from 1920x1080 to 1280x720.

I changed it by running below command.

echo "S:1280x720p-60" > /sys/class/graphics/fb0/mode

But output is not showing perfectly.

It shows like below picture

hdmi.jpg

How can I fix this problem?

ラベル(3)
タグ(2)
0 件の賞賛
返信
8 返答(返信)

3,600件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

how about changing the resolution in the kernel command line?

0 件の賞賛
返信

3,600件の閲覧回数
wangvictor
Contributor III

After I change the command line form

console=ttymxc1,115200 init=/init video=mxcfb0:dev=hdmi,1920x1080M@60,bpp=32 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off vmalloc=256M androidboot.console=ttymxc1 consoleblank=0 androidboot.hardware=FA30H_HW100 cma=384M androidboot.selinux=disabled androidboot.dm_verity=disabled androidboot.serialno=251c89d4eacb4af3

to

console=ttymxc1,115200 init=/init video=mxcfb0:dev=hdmi,1280x720M@60,bpp=32 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off vmalloc=256M androidboot.console=ttymxc1 consoleblank=0 androidboot.hardware=FA30H_HW100 cma=384M androidboot.selinux=disabled androidboot.dm_verity=disabled androidboot.serialno=251c89d4eacb4af3

And output will show like below picture.

2.jpg

It cannot show full screen and have black space on it.

Any suggestion?

0 件の賞賛
返信

3,600件の閲覧回数
jerrylain
Contributor II

It might because you change to lower resolution, so navigation bar moves.

You could try to modify /frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

// Allow the navigation bar to move on small devices (phones).
mNavigationBarCanMove = shortSizeDp < 600;

Modify 600 to smaller numbers might fix the issue.

0 件の賞賛
返信

3,600件の閲覧回数
wangvictor
Contributor III

I've tried to change it to true but still the same.

Actually customer wants to change it via command instead of changing command line.

So the issue is still here.

0 件の賞賛
返信

3,600件の閲覧回数
wangvictor
Contributor III

You mean to modify kernel driver?

Or changing it in system?

0 件の賞賛
返信

3,600件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

I mean you can modify the uboot command line, like "video=mxcfb0:dev=hdmi,
1920x1080M@60,if=RGB24", you can try to  change this resolution

0 件の賞賛
返信

3,600件の閲覧回数
deven_solanki
Contributor III

Hi Victor,

I am not expert but I can give one solution may be you can try.

This is issue with Xserver, Just try dynamic resolution change in xserver using newmode, addmode(you will easily get in google).

Regards,

Solanki Deven

0 件の賞賛
返信

3,600件の閲覧回数
wangvictor
Contributor III

Did you mean to use xrandr to dynamic resolution change?

Android busybox has no "xrandr" command to use.

0 件の賞賛
返信