V4L2 test function resource is occupied by system UI

cancel
Showing results for 
Search instead for 
Did you mean: 

V4L2 test function resource is occupied by system UI

142 Views
simonlin
Contributor II

Hi all

Here is my environment

HW platform: imx8-qm, tw9992

OS: Yocto Linux

I try to test TV function by unit test tool(mx8_v4l2_cap_drm.out)

My test command as below 

root@XXX/unit_tests/V4L2:./mx8_v4l2_cap_drm.out -cam 1 -d "/dev/video0" -fmt YUYV

(init_video_channel:500): init channel[0] v4l2_dev_name=/dev/video0 w/h=(1280,800)
(open_drm_device:608): Open /dev/dri/card0 success
(open_v4l2_device:641): open /dev/video0 success
========================================================
command               pid       dev    master    a     uid    magic
systemd-logind       3929   0         y            y      0      1
mx8_v4l2_cap_dr   4772   0         n            y      0      0
========================================================
Please ensure there is no other master client
========================================================

 

Terminal show mx8_v4l2_cap_dr is not master, system UI is occupied by systemd-logind(PID 3929)

But the TV function works if I kill systemd-logind then send mx8_v4l2_cap_drm command again

Is any advice for fix this issue ?

Thanks

0 Kudos
2 Replies

114 Views
simonlin
Contributor II

Hi Joanxie

What bsp version do you use?

--> Yocto Linux 4.19.35

Could you get satisfied result when you use ./mx8_v4l2_cap_drm.out ?

--> Yes, We can get satisfied TV preview

what is mx8_v4l2_cap_dr? is mx8_v4l2_cap_drm?

--> Yes

Thanks for your reply

0 Kudos

120 Views
joanxie
NXP TechSupport
NXP TechSupport

what bsp version do you use? could you get satisfied result when you use ./mx8_v4l2_cap_drm.out ? what is mx8_v4l2_cap_dr? is mx8_v4l2_cap_drm?

0 Kudos