IMX6 Overlay display pictures make screen flicker

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX6 Overlay display pictures make screen flicker

1,444 Views
shawnbee
Contributor II

I executed a Qt5 Application on fb0, and I wanted to display many pictures one by one on middle of screen,

So I set

fb_var.xres = 608;
fb_var.yres = 336;

retval = ioctl(fd, FBIOPUT_VSCREENINFO, &fb_var);

pos.x = 200;
pos.y = 200;
retval = ioctl(fd, MXCFB_SET_OVERLAY_POS, &pos);

gbl_alpha.enable = 1;
gbl_alpha.alpha = 0xff;
ioctl(fd, MXCFB_SET_GBL_ALPHA, &gbl_alpha);

 

Two situation will make screen flicker :

1.  Open overlay and close overlay frequently, the Screen will flicker

2.  Open overlay and close overlay, Open CSI0 Video and close video(fb.flags = V4L2_FBUF_FLAG_OVERLAY;), repeat ... the Screen will flicker

183739_183739.jpg1080685514.jpg

 

Could you plz tell me how to solve this problem ?

 

Platform info as below:

 

Base on IMX6QD fsl-L3.14.28_1.0.0-ga Code

MACHINE=imx6qsabresd source fsl-setup-release.sh –b build-fb-qt –e fb

bitbake fsl-image-qt5


local.conf:

MACHINE ??= 'imx6qsabresd'
DISTRO ?= 'poky'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES = "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
ABORT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \
ABORT,${SSTATE_DIR},100M,1K"
PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
ASSUME_PROVIDED += "libsdl-native"
CONF_VERSION = "1"
BB_NUMBER_THREADS = '8'
PARALLEL_MAKE = '-j 8'
DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"
PREFERRED_PROVIDER_virtual/mesa = ""
DISTRO_FEATURES_remove = "x11 wayland directfb "

 

 

Here is the TestCase and TestCode, it easy to reproducing

Original Attachment has been moved to: TestCase.tar.bz2

Labels (3)
0 Kudos
2 Replies

774 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Shawn,

Looks like the cause of the issue if because you have not clear your alpha operation every time you closed the overlay, please check it if this is the reason of the issue. However Strongly recommend to upgrade your bsp to 4.1.15  lots of GPU isues been fixed since 3.14.xx 

fsl-arm-yocto-bsp.git - i.MX Linux BSP Release Yocto Project manifests 

Regards

0 Kudos

774 Views
shawnbee
Contributor II

Hi Bio,

      I found some rules,when set MXCFB_SET_OVERLAY_POS and open/closed the overlay frequently, the issue would apear,thr error log:

[  582.472754] mxc_sdc_fb fb.23: timeout when waiting for flip irq
[  583.472776] mxc_sdc_fb fb.23: MXCFB_WAIT_FOR_VSYNC: timeout 0

0 Kudos