Udev mapping of identical touch inputs

samarth_g

New Member
Joined
Feb 21, 2025
Messages
1
Reaction score
0
Credits
20
Hi,

I've two identical touch input coming from two different touch screens.
Identical as in the product attributes are same.

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 222a:0001 ILI Technology Corp. Multi-Touch Screen
Bus 001 Device 005: ID 03f0:1041 HP, Inc HP Travel USB Optical Mouse
Bus 001 Device 004: ID 222a:0001 ILI Technology Corp. Multi-Touch Screen
Bus 001 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub

I've to map the input devices to two different HDMI displays using UDEV rules.


# Associate touchscreen 1 with HDMI-A-1
SUBSYSTEM=="input", KERNEL=="event2", ENV{ID_INPUT_TOUCHSCREEN}=="1", ENV{WL_OUTPUT}="HDMI-A-1"

# Associate touchscreen 2 with HDMI-A-2
SUBSYSTEM=="input", KERNEL=="event5", ENV{ID_INPUT_TOUCHSCREEN}=="1", ENV{WL_OUTPUT}="HDMI-A-2"



Right now the above works fine sometimes but since the event ID touch input are not persistent the mapping gets swapped or doesn't work at all.


/dev/input/event2: ILITEK ILITEK-TP
/dev/input/event3: ILITEK ILITEK-TP Mouse
/dev/input/event4: PixArt HP Travel USB Optical Mouse
/dev/input/event5: ILITEK ILITEK-TP
/dev/input/event6: ILITEK ILITEK-TP Mouse

What can I do to make the usb touch input mapping persistent?

Regards
 


Staff online

Members online


Latest posts

Top