Inconsistent touch and pen input reactions
mpv Information
mpv v0.40.0 Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
libplacebo version: v7.351.0
FFmpeg version: 8.0
FFmpeg library versions:
libavcodec 62.11.100
libavdevice 62.1.100
libavfilter 11.4.100
libavformat 62.3.100
libavutil 60.8.100
libswresample 6.1.100
libswscale 9.1.100
Other Information
- Linux version: postmarketOS (edge)
- Kernel Version: Linux google-gru 6.12.57 #3-postmarketos-rockchip SMP PREEMPT Sat Nov 15 00:42:55 UTC 202 aarch64 GNU/Linux
- GPU Model: Mali T860MP4
- Mesa/GPU Driver Version: 3.1 Mesa 25.2.7
- Window Manager and Version: sway 1.11 (sxmo autogenerated configuration)
- Source of mpv: Alpine repository
- Latest known working version: ?? (in september this year)
- Issue started after the following happened: routine update
Reproduction Steps
Tap the OSD buttons with a touchscreen, or the menu with a stylus. As the only app in the workspace or in fullscreen (see actual behavior notes).
This is the same without configs, but just for the sake of disclosure, my config is: profile=fast hwdec=rkmpp # <-- doesn't actually do anything yet because not enabled in alpine framedrop=decoder+vo
Expected Behavior
Inputs are equivalent to mouse, or otherwise work reasonably.
Actual Behavior
For touch, it's similar to what is described in #9771: some buttons react visually but never do anything. In the menu (if opened via other means), touching entries moves the selection and touching something else closes the menu, without ever selecting the entry. For pen/stylus controls, the OSD works properly but the menu does not: same as touch except hovering over stuff also changes the visual selection.
What's even more strange is that it seems to sometimes work reliably and as intended when in a layout with another app, although the buttons are too small to be useful in this case. Sometimes because it happened only 3 times and I couldn't reproduce it.
Yes, it works fine with an external mouse.
Log File
Sample Files
No response
I carefully read all instruction and confirm that I did the following:
- [x] I tested with the latest mpv version to validate that the issue is not already fixed.
- [x] I provided all required information including system and mpv version.
- [x] I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of
--log-file=output.txt. - [x] I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
- [x] I attached the full, untruncated log file.
- [x] I attached the backtrace in the case of a crash.
hwdec=rkmpp # <-- doesn't actually do anything yet because not enabled in alpine
This will never do anything because you're on postmarketos, which uses a mainline-based kernel for this device, and Rockchip MPP is the vendor kernel interface. It's not what mainline uses for hardware decoding on RK3399.
Are you saying OSC buttons work and only the menu has issues?
Sorry if it was confusing, let me rephrase:
Stylus: OSC works, menu broken Touch: OSC and menu are both broken
Support for the tablet protocol has been added recently (https://github.com/mpv-player/mpv/pull/16276) which should improve stylus/pen handling. There was also https://github.com/mpv-player/mpv/pull/16468 for improving touch input in the meantime. Do you have a change to test the tablet/touch input with mpv from git?
both lgtm now in master!!! thx
should this be closed now or at next release?
actually that was quite a stupid question, sorry for that