公司产品医疗电子行业,linux4.1.15+qt系统,需要屏幕lvds主显和hdmi线接出屏同时显示一个应用程序的输出
目前我们的uboot设置如下
root@Summer:~# fw_printenv mmcroot
mmcroot=/dev/mmcblk3p2 rootwait rw
root@Summer:~# fw_printenv mxcfb0
mxcfb0=video=mxcfb0:dev=ldb,1920x1080@60,if=RGB888,bpp=16
root@Summer:~# fw_printenv mxcfb1
mxcfb1=video=mxcfb1:dev=hdmi,1920x1080@60,if=RGB24,bpp=24
root@Summer:~# fw_printenv mxcfb2
mxcfb2=video=mxcfb2:off
root@Summer:~# fw_printenv mxcfb3
mxcfb3=video=mxcfb3:off
经查,这样设置没有效果,主要主屏输出lvds,hdmi不输出;
设置fb0为hdmi,fb1为lvds,则主要输出在hdmi,lvds没有输出;
设置fb0为lvds,fb2为hdmi,则默认只输出lvds(因为qt程序默认用的fb0输出)
开启两个进程分别输出到fb0和fb2,则两个屏幕都能输出但是不是同一个内容;
请教下是否有解决方案
你好
我现在也遇到了这个问题 我的是lcd+hdmi,你的问题解决了吗?
我的hdmi是fb1,
谢谢啦
linux+ qt
uboot para:
1.
fw_setenv mmcroot '/dev/mmcblk3p2 video=mxcfb0:dev=ldb,1280x800M@60,if=RGB666,bpp=32 video=mxcfb1:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32 video=mxcfb2:off video=mxcfb3:off ldb=dul1 rootwait rw'
We could get lvds output, but hdmi does't output.
2.
fw_setenv mmcroot '/dev/mmcblk3p2 video=mxcfb1:dev=ldb,1280x800M@60,if=RGB666,bpp=32 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32 video=mxcfb2:off video=mxcfb3:off ldb=dul1 rootwait rw'
We could get hdmi output, lvds does't output.
3.
fw_setenv mmcroot '/dev/mmcblk3p2 video=mxcfb0:dev=ldb,1280x800M@60,if=RGB666,bpp=32 video=mxcfb2:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32 video=mxcfb1:off video=mxcfb3:off ldb=dul1 rootwait rw'
We could get hdmi output and lvds output by two different qt process seperately.
So how can i get both lvds and hdmi output at the same time by one process?
did you check your ipu_id and disp_id in your source code? try not to set them in the same ipu, and could you give me the log file of command 1 and command 2?
1.how to check this,driver code or dtsi?
2.which log do you want?kernel startup log?
pls refer to the topic :
it is same setting for Android like ubuntu,is right?
hi 俊凯 文:
i had the same problem, how did you solved it in the end?