From f40cff209d78d23c549d3188e046526c61f27f3d Mon Sep 17 00:00:00 2001 From: Werner Sembach Date: Mon, 21 Dec 2020 14:23:46 +0100 Subject: [PATCH] Be more specific in device name --- tuxedo-touchpad-switch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuxedo-touchpad-switch.cpp b/tuxedo-touchpad-switch.cpp index 078dede..8a37929 100644 --- a/tuxedo-touchpad-switch.cpp +++ b/tuxedo-touchpad-switch.cpp @@ -61,7 +61,7 @@ static int get_touchpad_hidraw_devices(std::vector *devnodes) { else { struct udev_list_entry *hidraw_device_entry; udev_list_entry_foreach(hidraw_device_entry, hidraw_devices_iterator) { - if (strstr(udev_list_entry_get_name(hidraw_device_entry), "i2c-UNIW0001")) { + if (strstr(udev_list_entry_get_name(hidraw_device_entry), "i2c-UNIW0001:00")) { struct udev_device *hidraw_device = udev_device_new_from_syspath(udev_context, udev_list_entry_get_name(hidraw_device_entry)); if (!hidraw_device) { cerr << "get_touchpad_hidraw_devices(...): udev_device_new_from_syspath(...) failed." << endl;