Programmatically change HDMI resolution on i.MX.6Q

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Programmatically change HDMI resolution on i.MX.6Q

973 次查看
joepsycho
Contributor II

Does anyone know how to change HDMI resolution by C/C++ program?

I'd like to achieve the same result as right click on the "Windows Desktop" and adjust the resolution.

Right now I can change HDMI resolution only by setting the u-boot environment variable (bootargs_base=setenv bootargs console=ttymxc0,115200 enable_wait_mode=off video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24 dmfc=3), but I can't freely choose the resolution I want.

By using cat /sys/devices/platform/mxc_sdc_fb.0/graphics/fb0/modes , it shows

V:640x480p-60

D:1920x1080p-60

U:640x480p-60

I guess the HDMI resolution can only be changed to 640x480/1920x1080, but what does the initial V/D/U means?

Another question is how to cut the HDMI output signal on demand to achieve something like screen(energy) saving?

Can someone help me out please, thanks a lot!!

0 项奖励
回复
1 回复

520 次查看
daiane_angolini
NXP Employee
NXP Employee

I don´t think the current kernel can handle resolution change on the fly. You should implement a way to achieve that.