Le 27/03/2016 16:10, Philippe Teuwen a écrit :
Hi Ludovic,
Hello,
Version 1.8.16-1 Same problem. See log.txt
Thanks Phil. Unfortunately I don't see any strange libusb log in your trace :-( Can you modify libusb again with: --- /tmp/XWDR6X_linux_udev.c 2016-03-27 20:48:26.715640742 +0200 +++ libusb/os/linux_udev.c 2016-03-27 20:47:07.223641500 +0200 @@ -186,6 +186,8 @@ static void *linux_udev_event_thread_mai udev_dev = udev_monitor_receive_device(udev_monitor); if (udev_dev) udev_hotplug_event(udev_dev); + else + usbi_err(NULL, "udev_monitor_receive_device failed"); usbi_mutex_static_unlock(&linux_hotplug_lock); } } So I can see when libusb goes wrong? Does the problem occurs when you connect the USB device VID: 0x2A70, PID: 0x9011? This is your phone? What is strange from your log are the lines: 03894669 hotplug_libudev.c:648:HPEstablishUSBNotifications() USB Device add 00000231 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x2A70, PID: 0x9011, path: /dev/bus/usb/001/019 00000369 hotplug_libudev.c:648:HPEstablishUSBNotifications() USB Device add 00000187 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x2A70, PID: 0x9011, path: /dev/bus/usb/001/019 01010014 hotplug_libudev.c:648:HPEstablishUSBNotifications() USB Device add 00000097 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x2A70, PID: 0x9011, path: /dev/bus/usb/001/019 05139524 hotplug_libudev.c:642:HPEstablishUSBNotifications() USB Device removed 00143995 hotplug_libudev.c:642:HPEstablishUSBNotifications() USB Device removed 00133774 hotplug_libudev.c:642:HPEstablishUSBNotifications() USB Device removed The first "USB Device add" is correct. You connect the USB device. But why a second "USB Device add" for the same device? And a third "USB Device add" 1 second after for again the same device? Is libudev confused? After 5 seconds you get a first "USB Device removed". OK. Then a second one 143 ms later. And a third one 133 ms later. Is you USB device a composite device with more than 1 interface? Do you have the same problem if you connect a simple CCID device instead? Thanks -- Dr. Ludovic Rousseau