[Errno 19] No such device (it may have been disconnected)


#1

Hi,

I have a ubuntu LXC on a QNAP Nas and I can’t seem to make blinkstick to work :frowning:

Does anyone knows what’s missing to make this work ?

root@localhost:~# lsusb
Bus 002 Device 003: ID 1c04:0013 QNAP System Inc.
Bus 002 Device 002: ID 1c05:3074
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 1005:b155 Apacer Technology, Inc.
Bus 001 Device 010: ID 20a0:41e5 Clay Logic
Bus 001 Device 002: ID 1c05:2074
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

root@localhost:~# dmesg -wH | grep -i usb | tail
[ +27.284599] usb 1-2: new low-speed USB device number 9 using xhci_hcd
[  +0.180841] usb 1-2: ep 0x81 - rounding interval to 512 microframes, ep desc says 800 microframes
[  +0.037834] hid-generic 0003:20A0:41E5.0004: hiddev0: USB HID v1.01 Device [Agile Innovative Ltd BlinkStick] on usb-0000:00:14.0-2/input0
[  +0.035146] [usb.001.009] /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2 added.
[Feb 2 12:56] usb 1-2: USB disconnect, device number 9
[  +0.051216] [usb.001.009] /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2 removed.
[Feb 3 00:26] usb 1-2: new low-speed USB device number 10 using xhci_hcd
[  +0.185276] usb 1-2: ep 0x81 - rounding interval to 512 microframes, ep desc says 800 microframes
[  +0.037076] hid-generic 0003:20A0:41E5.0005: hiddev0: USB HID v1.01 Device [Agile Innovative Ltd BlinkStick] on usb-0000:00:14.0-2/input0
[  +0.034645] [usb.001.010] /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2 added.

root@localhost:~# blinkstick --info
Traceback (most recent call last):
  File "/usr/local/bin/blinkstick", line 324, in <module>
    sys.exit(main())
  File "/usr/local/bin/blinkstick", line 213, in main
    sticks = blinkstick.find_all()
  File "/usr/local/lib/python2.7/dist-packages/blinkstick/blinkstick.py", line 1497, in find_all
    result.extend([BlinkStick(device=d)])
  File "/usr/local/lib/python2.7/dist-packages/blinkstick/blinkstick.py", line 207, in __init__
    self.open_device(device)
  File "/usr/local/lib/python2.7/dist-packages/blinkstick/blinkstick.py", line 750, in open_device
    if self.device.is_kernel_driver_active(0):
  File "/usr/local/lib/python2.7/dist-packages/usb/core.py", line 719, in is_kernel_driver_active
    self._ctx.managed_open()
  File "/usr/local/lib/python2.7/dist-packages/usb/core.py", line 70, in managed_open
    self.handle = self.backend.open_device(self.dev)
  File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb1.py", line 733, in open_device
    return _DeviceHandle(dev)
  File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb1.py", line 618, in __init__
    _check(_lib.libusb_open(self.devid, byref(self.handle)))
  File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb1.py", line 571, in _check
    raise USBError(_str_error[ret], ret, _libusb_errno[ret])
usb.core.USBError: [Errno 19] No such device (it may have been disconnected)