How to display overlay through divice "/dev/graphics/fb1" ,without using V4L2?

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

How to display overlay through divice "/dev/graphics/fb1" ,without using V4L2?

跳至解决方案
4,421 次查看
guolei
Contributor II

Divice "/dev/graphics/fb1"  is a overlay buffer of "/dev/graphics/fb0".

I want to display a overlay image using fb1 on screen(fb0).But no matter what i write to fb1, there is no display on screen(fb0).

How to solve this problem. This bother me many day.

Thanks!

标签 (3)
1 解答
2,408 次查看
gary_bisson
Senior Contributor III

Hi,

Did you make sure to unblank the overlay framebuffer?

# echo 0 > /sys/class/graphics/fb1/blank

Regards,

Gary

在原帖中查看解决方案

0 项奖励
回复
6 回复数
2,409 次查看
gary_bisson
Senior Contributor III

Hi,

Did you make sure to unblank the overlay framebuffer?

# echo 0 > /sys/class/graphics/fb1/blank

Regards,

Gary

0 项奖励
回复
2,408 次查看
guolei
Contributor II

Thanks a lot .

I use ioctl api to unblank the overlay framebuffer and it works.

But why should I blank the buffer.

0 项奖励
回复
2,408 次查看
gary_bisson
Senior Contributor III

Well it is a choice made in the driver, by default overlays are blanked:

linux-imx6/mxc_ipuv3_fb.c at boundary-imx_3.14.28_1.0.0_ga · boundarydevices/linux-imx6 · GitHub

You can modify the driver to unblank it by default by I would personally just keep the ioctl call from the user-space.

Regards,

Gary

2,408 次查看
guolei
Contributor II

Get it!And thanks a lot for your patience!

0 项奖励
回复
2,408 次查看
joanxie
NXP TechSupport
NXP TechSupport

how did you test? could you share the command? I tested on the mx6q board, it's successful, I use ./mxc_vpu_test.out to test on the fb0 and fb1

0 项奖励
回复
2,408 次查看
gary_bisson
Senior Contributor III

Hi,

Well I tried it using gstreamer and the gstreamer-imx plugin:

# echo 0 > /sys/class/graphics/fb1/blank

# gst-launch-1.0 filesrc location=/root/tears_of_steel_1080p.webm ! matroskademux ! imxvpudec ! imxipuvideosink framebuffer=/dev/fb1

Also you can try writing to the framebuffer directly

# cat /dev/urandom > /dev/fb1

Regards,

Gary

0 项奖励
回复