Jump to content

Raspberry Pi 4, Touchscreen not working while video is playing


TaTranky
Go to solution Solved by TaTranky,

Recommended Posts

TaTranky

Hi All,

I'm trying to setup a Raspberry pi with a touch screen (HDMI & USB, Waveshare 15,6") for kid entertainment in my car.

I'm all good on emby server and Emby Theater app, but I can't figure out why my touchscreen events stop while playing videos...
I get events (and the touchscreen works) while browsing the menus etc. but as soon as I play a video, the touchscreen stops responding. As soon as i press esc to exit the video, the touchscreen is working again. This is true when running the emby theater linux app, and also when watching through a browser (chromium).
I know this is not directly an Emby issue, as the same issue exists on youtube.com

I verify the input events from the touchscreen using this command (I'm remote accessing though ssh)

DISPLAY=:0 libinput debug-events &

here's the event log:

 event5   TOUCH_FRAME             +128.019s
 event5   TOUCH_MOTION            +128.032s     0 (0) 84.77/67.79 (262.08/118.16mm)
 event5   TOUCH_MOTION            +1803.834s    0 (0) 84.77/67.79 (262.08/118.16mm)
 event5   TOUCH_FRAME             +128.032s
 event5   TOUCH_FRAME             +1803.834s
 event5   TOUCH_UP                +128.048s     0 (0)
 event5   TOUCH_UP                +1803.850s    0 (0)
 event5   TOUCH_FRAME             +128.048s
 event5   TOUCH_FRAME             +1803.850s
 event5   TOUCH_DOWN              +1805.482s    0 (0) 13.42/58.62 (41.49/102.18mm)
 event5   TOUCH_DOWN              +129.680s     0 (0) 13.42/58.62 (41.49/102.18mm)
 event5   TOUCH_FRAME             +1805.482s
 event5   TOUCH_FRAME             +129.680s
 event5   TOUCH_MOTION            +129.759s     0 (0) 13.40/58.69 (41.43/102.30mm)
 event5   TOUCH_MOTION            +1805.561s    0 (0) 13.40/58.69 (41.43/102.30mm)
 event5   TOUCH_FRAME             +129.759s
 event5   TOUCH_FRAME             +1805.561s
 event5   TOUCH_UP                +1805.571s    0 (0)
 event5   TOUCH_FRAME             +1805.571s
 event5   TOUCH_UP                +129.769s     0 (0)
 event5   TOUCH_FRAME             +129.769s
-event2   KEYBOARD_KEY            +152.493s     *** (-1) pressed
-event2   KEYBOARD_KEY            +1828.295s    *** (-1) pressed
 event2   KEYBOARD_KEY            +1828.415s    *** (-1) released
 event2   KEYBOARD_KEY            +152.613s     *** (-1) released
-event5   TOUCH_DOWN              +1833.327s    0 (0) 75.52/59.96 (233.47/104.52mm)
-event5   TOUCH_DOWN              +157.525s     0 (0) 75.52/59.96 (233.47/104.52mm)
 event5   TOUCH_FRAME             +1833.327s
 event5   TOUCH_FRAME             +157.525s
 event5   TOUCH_UP                +157.526s     0 (0)
 event5   TOUCH_FRAME             +157.526s
 event5   TOUCH_UP                +1833.328s    0 (0)
 event5   TOUCH_FRAME             +1833.328s
 event5   TOUCH_DOWN              +157.527s     0 (0) 76.42/48.73 (236.26/84.94mm)

Here, I'm tabing a movie and  starting it, but haivng to press the ESC key on a keyboard to exit the movie and gain control with the touchscreen again...

I hope some of you can help with solutions or maybe suggestions on where to look / how to proceed?
 

Thanks!

Link to comment
Share on other sites

TaTranky

Update, I can see that events from the touchscreen is comming into the /dev/input/event5 file while playing video. However the libinput is not registerign the events...
 

Tested it with VLC media player, to verify that it wasn't a web-based issue... But can't use my touchscreen after starting a video on VLC either...
 

What am i missing...?

Link to comment
Share on other sites

  • 4 weeks later...
Baenwort

Did you try asking on the Raspberry Pi forums?

Which Raspberry Pi OS and version are you running? 

I ask as I'm not seeing this with my Pi 5 and Bookworm and I wonder if it is a Pi 4 problem (I don't have one to test) or a OS problem?

Link to comment
Share on other sites

  • 1 month later...
  • Solution
TaTranky

Somehow, It's working now... So, i guess working on another project for a bit of time helped :D Have no idea on what changed...

  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...