Information on using touch device id

This commit is contained in:
Mahesh Asolkar 2024-04-14 11:00:26 -07:00
parent 460a6b8905
commit 51b2f68ba5

View File

@ -95,9 +95,13 @@ LIBINPUT_CONFIG_SEND_EVENTS_DISABLED_ON_EXTERNAL_MOUSE
static const uint32_t send_events_mode = LIBINPUT_CONFIG_SEND_EVENTS_ENABLED;
/* Touch device information to filter touch events
* Use udevadm info --tree to obtain info */
static const uint32_t touch_device_vendor_id = 0x6cb;
static const uint32_t touch_device_product_id = 0x0;
* Use something like this to obtain info:
*
* root@host $ udevadm info --tree | grep -a5 Synaptic | grep -E "PRODUCT|NAME"
* E: PRODUCT=11/2(vendor)/7(product)/1b1
* E: NAME="SynPS/2 Synaptics TouchPad" */
static const uint32_t touch_device_vendor_id = 0x2;
static const uint32_t touch_device_product_id = 0x7;
/* You can choose between:
LIBINPUT_CONFIG_ACCEL_PROFILE_FLAT