Le 26/09/2013 18:36, Ludovic Rousseau a écrit : >>> You do: >>> 1. Switch off wireless (using the hardware button) >>> 2. Suspend >>> 3. Resume >>> 4. Switch on wireless >>> >>> Does pcscd uses 100% CPU at this step? >>> >>> Then you do: >>> 5. switch off radio >>> you get 4 "Device removed" messages from pcscd and then nothing more. >>> pcscd becomes quiet. >>> Exact? >> >> Exact.
Actually, I've just realized that Suspend/Resume has nothing to do in this stuff. I can reproduce by just triggering the radio switch. > So we need to instrument pcscd to get more data. > > Can you get the source code of pcsc-lite, edit the file > src/hotplug_libudev.c and change the line 33 from: > #undef DEBUG_HOTPLUG > to > #define DEBUG_HOTPLUG > > then rebuild pcsc-lite. > > You do not need to install anything. Just execute the newly build pcscd > as "./pcscd -df" > Then perform the 4 steps to repdoduce the problem and send me the pcscd > logs. If I switch on the radio, I get: > 30534400 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x413C, PID: 0x8187, path: /dev/bus/usb/001/003 > 00000019 hotplug_libudev.c:307:HPAddDevice() /dev/bus/usb/001/003 is not a > supported smart card reader > 00000014 hotplug_libudev.c:563:HPEstablishUSBNotifications() > 00000120 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x413C, PID: 0x8187, path: /dev/bus/usb/001/003 > 00000009 hotplug_libudev.c:307:HPAddDevice() /dev/bus/usb/001/003 is not a > supported smart card reader > 00000012 hotplug_libudev.c:563:HPEstablishUSBNotifications() > 00003762 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x413C, PID: 0x8187, path: /dev/bus/usb/001/003 > 00000018 hotplug_libudev.c:307:HPAddDevice() /dev/bus/usb/001/003 is not a > supported smart card reader > 00000013 hotplug_libudev.c:563:HPEstablishUSBNotifications() > 00000674 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x413C, PID: 0x8187, path: /dev/bus/usb/001/003 > 00000015 hotplug_libudev.c:307:HPAddDevice() /dev/bus/usb/001/003 is not a > supported smart card reader > 00000012 hotplug_libudev.c:563:HPEstablishUSBNotifications() If I switch off the radio, I get: > 09516162 hotplug_libudev.c:587:HPEstablishUSBNotifications() Device removed > 00000432 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001 > 00000119 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001 > 00000142 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x8087, PID: 0x0024, path: /dev/bus/usb/001/002 > 00000152 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x1D6B, PID: 0x0002, path: /dev/bus/usb/002/001 > 00000105 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x1D6B, PID: 0x0002, path: /dev/bus/usb/002/001 > 00000111 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x8087, PID: 0x0024, path: /dev/bus/usb/002/002 > 00000112 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x0A5C, PID: 0x5800, path: /dev/bus/usb/002/003 > 00000010 hotplug_libudev.c:468:HPRescanUsbBus() Found matching USB device: > /dev/bus/usb/002/003 > 00000024 hotplug_libudev.c:488:HPRescanUsbBus() Refresh USB device: > /dev/bus/usb/002/003 > 00000108 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x0A5C, PID: 0x5800, path: /dev/bus/usb/002/003 > 00000010 hotplug_libudev.c:468:HPRescanUsbBus() Found matching USB device: > /dev/bus/usb/002/003 > 00000023 hotplug_libudev.c:488:HPRescanUsbBus() Refresh USB device: > /dev/bus/usb/002/003 > 00000112 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x8087, PID: 0x0024, path: /dev/bus/usb/002/002 > 00000013 hotplug_libudev.c:563:HPEstablishUSBNotifications() > 00000028 hotplug_libudev.c:587:HPEstablishUSBNotifications() Device removed > 00000363 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001 > 00000102 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001 > 00000103 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x8087, PID: 0x0024, path: /dev/bus/usb/001/002 > 00000134 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x1D6B, PID: 0x0002, path: /dev/bus/usb/002/001 > 00000101 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x1D6B, PID: 0x0002, path: /dev/bus/usb/002/001 > 00000104 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x8087, PID: 0x0024, path: /dev/bus/usb/002/002 > 00000108 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x0A5C, PID: 0x5800, path: /dev/bus/usb/002/003 > 00000010 hotplug_libudev.c:468:HPRescanUsbBus() Found matching USB device: > /dev/bus/usb/002/003 > 00000023 hotplug_libudev.c:488:HPRescanUsbBus() Refresh USB device: > /dev/bus/usb/002/003 > 00000106 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x0A5C, PID: 0x5800, path: /dev/bus/usb/002/003 > 00000009 hotplug_libudev.c:468:HPRescanUsbBus() Found matching USB device: > /dev/bus/usb/002/003 > 00000022 hotplug_libudev.c:488:HPRescanUsbBus() Refresh USB device: > /dev/bus/usb/002/003 > 00000102 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x8087, PID: 0x0024, path: /dev/bus/usb/002/002 > 00000012 hotplug_libudev.c:563:HPEstablishUSBNotifications() > 00000024 hotplug_libudev.c:587:HPEstablishUSBNotifications() Device removed > 00000356 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001 > 00000096 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001 > 00000121 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x8087, PID: 0x0024, path: /dev/bus/usb/001/002 > 00000152 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x1D6B, PID: 0x0002, path: /dev/bus/usb/002/001 > 00000103 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x1D6B, PID: 0x0002, path: /dev/bus/usb/002/001 > 00000104 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x8087, PID: 0x0024, path: /dev/bus/usb/002/002 > 00000109 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x0A5C, PID: 0x5800, path: /dev/bus/usb/002/003 > 00000008 hotplug_libudev.c:468:HPRescanUsbBus() Found matching USB device: > /dev/bus/usb/002/003 > 00000026 hotplug_libudev.c:488:HPRescanUsbBus() Refresh USB device: > /dev/bus/usb/002/003 > 00000110 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x0A5C, PID: 0x5800, path: /dev/bus/usb/002/003 > 00000009 hotplug_libudev.c:468:HPRescanUsbBus() Found matching USB device: > /dev/bus/usb/002/003 > 00000023 hotplug_libudev.c:488:HPRescanUsbBus() Refresh USB device: > /dev/bus/usb/002/003 > 00000108 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x8087, PID: 0x0024, path: /dev/bus/usb/002/002 > 00000013 hotplug_libudev.c:563:HPEstablishUSBNotifications() > 00000024 hotplug_libudev.c:587:HPEstablishUSBNotifications() Device removed > 00000497 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001 > 00000105 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001 > 00000108 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x8087, PID: 0x0024, path: /dev/bus/usb/001/002 > 00000135 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x1D6B, PID: 0x0002, path: /dev/bus/usb/002/001 > 00000103 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x1D6B, PID: 0x0002, path: /dev/bus/usb/002/001 > 00000103 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x8087, PID: 0x0024, path: /dev/bus/usb/002/002 > 00000111 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x0A5C, PID: 0x5800, path: /dev/bus/usb/002/003 > 00000010 hotplug_libudev.c:468:HPRescanUsbBus() Found matching USB device: > /dev/bus/usb/002/003 > 00000024 hotplug_libudev.c:488:HPRescanUsbBus() Refresh USB device: > /dev/bus/usb/002/003 > 00000107 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x0A5C, PID: 0x5800, path: /dev/bus/usb/002/003 > 00000010 hotplug_libudev.c:468:HPRescanUsbBus() Found matching USB device: > /dev/bus/usb/002/003 > 00000023 hotplug_libudev.c:488:HPRescanUsbBus() Refresh USB device: > /dev/bus/usb/002/003 > 00000103 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: > 0x8087, PID: 0x0024, path: /dev/bus/usb/002/002 > 00000012 hotplug_libudev.c:563:HPEstablishUSBNotifications() These outputs are complete and happen all at once after the event, i.e. there is no looping output. For the record, here is my lsusb output: > Bus 002 Device 003: ID 0a5c:5800 Broadcom Corp. BCM5880 Secure Applications > Processor > Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub > Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub > Bus 001 Device 003: ID 413c:8187 Dell Computer Corp. DW375 Bluetooth Module > Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub > Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub The Bluetooth Module disappears when I switch off the radio. Cheers, -- Stéphane -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org