Comment 60 for bug 1630063

Revision history for this message
KES (kes-kes-j) wrote :

Randomly (once a day, none or ten times in an hour) I got this:
Oct 13 11:19:55 work mtp-probe: checking bus 1, device 27: "/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4"
Oct 13 11:19:55 work mtp-probe: bus: 1, device: 27 was not an MTP device
Oct 13 11:20:44 work kernel: [ 6972.357596] usb 1-1-port4: disabled by hub (EMI?), re-enabling...
Oct 13 11:20:44 work kernel: [ 6972.357732] usb 1-1.4: USB disconnect, device number 27
Oct 13 11:20:45 work kernel: [ 6972.590461] usb 1-1.4: new low-speed USB device number 28 using ehci-pci
Oct 13 11:20:45 work kernel: [ 6972.686106] usb 1-1.4: New USB device found, idVendor=093a, idProduct=2516
Oct 13 11:20:45 work kernel: [ 6972.686112] usb 1-1.4: New USB device strings: Mfr=0, Product=2, SerialNumber=0
Oct 13 11:20:45 work kernel: [ 6972.686115] usb 1-1.4: Product: USB OPTICAL MOUSE
Oct 13 11:20:45 work kernel: [ 6972.690293] input: USB OPTICAL MOUSE as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.0/0003:093A:2516.001D/input/input44
Oct 13 11:20:45 work kernel: [ 6972.690562] hid-generic 0003:093A:2516.001D: input,hidraw1: USB HID v1.11 Mouse [USB OPTICAL MOUSE] on usb-0000:00:1a.0-1.4/input0
Oct 13 11:20:45 work mtp-probe: checking bus 1, device 28: "/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4"
Oct 13 11:20:45 work mtp-probe: bus: 1, device: 28 was not an MTP device

The mouse stops to work until physically reconnect.

The mouse:
Bus 001 Device 023: ID 093a:2516 Pixart Imaging, Inc.
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 1.10
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 8
  idVendor 0x093a Pixart Imaging, Inc.
  idProduct 0x2516
  bcdDevice 1.00
  iManufacturer 0
  iProduct 2
  iSerial 0
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 34
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 4
    bmAttributes 0xa0
      (Bus Powered)
      Remote Wakeup
    bmAttributes 0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower 100mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 1
      bInterfaceClass 3 Human Interface Device
      bInterfaceSubClass 1 Boot Interface Subclass
      bInterfaceProtocol 2 Mouse
      iInterface 0
        HID Device Descriptor:
          bLength 9
          bDescriptorType 33
          bcdHID 1.11
          bCountryCode 0 Not supported
          bNumDescriptors 1
          bDescriptorType 34 Report
          wDescriptorLength 79
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x81 EP 1 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0008 1x 8 bytes
        bInterval 10

when mouse is disappeared:

$ lsusb
Bus 002 Device 003: ID 05e3:0723 Genesys Logic, Inc. GL827L SD/MMC/MS Flash Card Reader
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 047f:c010 Plantronics, Inc.
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

After reconnect:
$ lsusb
Bus 002 Device 003: ID 05e3:0723 Genesys Logic, Inc. GL827L SD/MMC/MS Flash Card Reader
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 028: ID 093a:2516 Pixart Imaging, Inc.
Bus 001 Device 003: ID 047f:c010 Plantronics, Inc.
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I found this: https://www.raspberrypi.org/forums/viewtopic.php?p=864077 which is similar to my problem

$ apt list --installed | grep mtp

libmtp-common/xenial,xenial,now 1.1.10-2ubuntu1 all [installed]
libmtp-runtime/xenial,now 1.1.10-2ubuntu1 amd64 [installed]
libmtp9/xenial,now 1.1.10-2ubuntu1 amd64 [installed]
libnet-smtp-ssl-perl/xenial,xenial,now 1.03-1 all [installed]

It seems MTP is devil here:
https://sourceforge.net/p/libmtp/bugs/435/

How this is resolved:
https://bbs.archlinux.org/viewtopic.php?pid=1015265#p1015265

But commenting out that will ignore MTP devices.

I found [this](https://askubuntu.com/a/506504/405408) which suggests to put my device into `69-libmtp.rules`

Please exclude my device from MTP probe