Blender ignores touch input under wayland session. #121449
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#121449
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Linux-6.4.15-200.fc38.x86_64-x86_64-with-glibc2.37 64 Bits, WAYLAND UI
Graphics card: AMD Radeon Graphics (renoir, LLVM 16.0.6, DRM 3.52, 6.4.15-200.fc38.x86_64) AMD 4.6 (Core Profile) Mesa 23.1.9
Blender Version
Broken: version: version: 4.1.1, branch: blender-v4.1-release, commit date: 2024-04-15 15:11, hash:
e1743a0317bc
Worked: None
Tested: 3.6.11 from fedora 4.1.1 from flathub, 4.1.1 in kernel 6.8
Short description of error
Touch input is ignored by blender in wayland system in touchscreen. It works as expected in touchpad. Pen input also works. Other programs work fine, the issue is blender specific. Using evtest, the ignored device is:
The Pen input works as expected, and shows up as:
The touch works as expected under X11 (although there's room for improvement, hehe).
Exact steps for others to reproduce the error
Start Blender under a wayland session
Try to interact with menus using a touchscreen and finger
Hi, thanks for the report. I'm not aware of the touchscreen support on wayland. Didn't see any reference in #76428
cc @ideasman42
This is probably not difficult to support, I just don't have any input devices that generate these kind of touch events.
Is it that the cursor doesn't move at all when touching? Or that tapping is ignored?
Could you run Blender with
WAYLAND_DEBUG=1
? this generates a large log which would be best to upload instead of paste inline.Here's the log file. Touch gestures are identified, but go ignored. I have moved my finger around the screen, tapped with one finger, pinched and used three-finger swipes as well, before I used the touchpad to quit.
@Henrique-Alves thanks for the info, some remaining notes.
Could you please include:
Supporting this might involve using an exact compositor & hardware combination, I have 3 (wacom-intuos-4, apple-trackpad & laptop-style trackpad) and none use the
wl_touch
interface.I've also asked on the wayland-developer mailing list to see if there are ways to simulate wl_touch.
I don't think I'll be able to work on this near term, so if someone else wants to check on supporting
wl_touch
check:./intern/ghost/intern/GHOST_SystemWayland.cc
(touch_seat_handle_down
and related functions).pointer_handle_frame
as a reference.Otherwise I could try implement this without access to the hardware at some point and check it works using test-builds.
Hello. Thank you for taking the time to look into this.
The screen I'm using is from the lenovo yoga notebook, model 13ABR8, but it is a Wacom HID 52FA which I believe it's exclusive to this laptop model. The vendor and product ids are on my first post. The compositor is mutter 44.9 from gnome, but I have also tested it in KDE6 (kwin) from a fedora live image.
Let me know if there's anything else I can help you with.
Update: it seems it's possible to record and reply events from libinput, Peter Hutterer kindly recorded touch input (see the attached YAML file).
I've attached the email as well for reference, so besides having to check on how to replay events, this may be all I need to add support for touch devices.
https://lists.freedesktop.org/archives/wayland-devel/2024-May/043608.html