Szerintetek hogyan lehet megkülönböztetni és mappingolni érintőképernyős monitorokat?
Van két teljesen egyforma monitor ugyanazon a gépen. Mindkettőnek ugyanolyan USB-s touch touch-a van.
Az xinput nem lát különbséget közöttük:
xinput
⎜ ↳ USBest Technology SiS HID Touch Controller id=10 [slave pointer (2)]
⎜ ↳ USBest Technology SiS HID Touch Controller id=11 [slave pointer (2)]
A /dev/input/by-id alatt egy néven jönnek létre:
usb-USBest_Technology_SiS_HID_Touch_Controller-event-if00
A propjaik is totál azonosak:
xinput --list-props 10
Device 'USBest Technology SiS HID Touch Controller':
Device Enabled (145): 1
Coordinate Transformation Matrix (147): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
Device Accel Profile (271): 0
Device Accel Constant Deceleration (272): 1.000000
Device Accel Adaptive Deceleration (273): 1.000000
Device Accel Velocity Scaling (274): 10.000000
Device Product ID (266): 1111, 4148
Device Node (267): "/dev/input/event8"
Evdev Axis Inversion (275): 0, 0
Evdev Axis Calibration (276): <no items>
Evdev Axes Swap (277): 0
Axis Labels (278): "Abs MT Position X" (295), "Abs MT Position Y" (296), "None" (0), "None" (0)
Button Labels (279): "Button Unknown" (269), "Button Unknown" (269), "Button Unknown" (269), "Button Wheel Up" (151), "Button Wheel Down" (152)
Evdev Scrolling Distance (280): 0, 0, 0
Evdev Middle Button Emulation (281): 0
Evdev Middle Button Timeout (282): 50
Evdev Third Button Emulation (283): 0
Evdev Third Button Emulation Timeout (284): 1000
Evdev Third Button Emulation Button (285): 3
Evdev Third Button Emulation Threshold (286): 20
Evdev Wheel Emulation (287): 0
Evdev Wheel Emulation Axes (288): 0, 0, 4, 5
Evdev Wheel Emulation Inertia (289): 10
Evdev Wheel Emulation Timeout (290): 200
Evdev Wheel Emulation Button (291): 4
Evdev Drag Lock Buttons (292): 0
xinput --list-props 11
Device 'USBest Technology SiS HID Touch Controller':
Device Enabled (145): 1
Coordinate Transformation Matrix (147): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
Device Accel Profile (271): 0
Device Accel Constant Deceleration (272): 1.000000
Device Accel Adaptive Deceleration (273): 1.000000
Device Accel Velocity Scaling (274): 10.000000
Device Product ID (266): 1111, 4148
Device Node (267): "/dev/input/event9"
Evdev Axis Inversion (275): 0, 0
Evdev Axis Calibration (276): <no items>
Evdev Axes Swap (277): 0
Axis Labels (278): "Abs MT Position X" (295), "Abs MT Position Y" (296), "None" (0), "None" (0)
Button Labels (279): "Button Unknown" (269), "Button Unknown" (269), "Button Unknown" (269), "Button Wheel Up" (151), "Button Wheel Down" (152)
Evdev Scrolling Distance (280): 0, 0, 0
Evdev Middle Button Emulation (281): 0
Evdev Middle Button Timeout (282): 50
Evdev Third Button Emulation (283): 0
Evdev Third Button Emulation Timeout (284): 1000
Evdev Third Button Emulation Button (285): 3
Evdev Third Button Emulation Threshold (286): 20
Evdev Wheel Emulation (287): 0
Evdev Wheel Emulation Axes (288): 0, 0, 4, 5
Evdev Wheel Emulation Inertia (289): 10
Evdev Wheel Emulation Timeout (290): 200
Evdev Wheel Emulation Button (291): 4
Evdev Drag Lock Buttons (292): 0
Csak az event tér el.
Természetesen az ID-k nem fixek, újraindulásonként eltérnek így nem tudok állandó mappinget csinálni így:
xinput map-to-output 10 HDMI-1
xinput map-to-output 11 DVI-D-1
Van valami ötletetek erre? Esetleg udev szabály alapján meg tudom különböztetni az usb eszközöket (talán), de onnan még mindig nem tudom, hogy hogyan kapcsoljam össze őket az xinputos ID-kel.