From 51b2f68ba5501bc08189f60ae0d668f61d60e607 Mon Sep 17 00:00:00 2001 From: Mahesh Asolkar Date: Sun, 14 Apr 2024 11:00:26 -0700 Subject: [PATCH] Information on using touch device id --- config.mma.def.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/config.mma.def.h b/config.mma.def.h index dfd52f7..0b723eb 100644 --- a/config.mma.def.h +++ b/config.mma.def.h @@ -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