StreamDeck.Transport.Transport.TransportError: Could not open HID device.

Bug #1991542 reported by Alan Pope 🍺🐧🐱 🦄
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
streamdeck-ui (Ubuntu)
New
Undecided
Unassigned

Bug Description

Installed streamdeck-ui from the 22.04 repo, then launched streamdeck from the terminal with my StreamDeck Mini attached.

Expectation

* Streamdeck UI launches

Actual

* Streamdeck UI doesn't launch.

$  streamdeck
Traceback (most recent call last):
  File "/usr/bin/streamdeck", line 33, in <module>
    sys.exit(load_entry_point('streamdeck-ui==1.1.2', 'console_scripts', 'streamdeck')())
  File "/usr/lib/python3/dist-packages/streamdeck_ui/gui.py", line 634, in start
    items = api.open_decks().items()
  File "/usr/lib/python3/dist-packages/streamdeck_ui/api.py", line 105, in open_decks
    deck.open()
  File "/usr/lib/python3/dist-packages/StreamDeck/Devices/StreamDeck.py", line 153, in open
    self.device.open()
  File "/usr/lib/python3/dist-packages/StreamDeck/Transport/LibUSBHIDAPI.py", line 352, in open
    self.device_handle = self.hidapi.open_device(self.device_info['path'])
  File "/usr/lib/python3/dist-packages/StreamDeck/Transport/LibUSBHIDAPI.py", line 181, in open_device
    raise TransportError("Could not open HID device.")
StreamDeck.Transport.Transport.TransportError: Could not open HID device.

Device is attached:

[Mon Oct 3 15:01:59 2022] usb 3-7.3.2: new high-speed USB device number 46 using xhci_hcd
[Mon Oct 3 15:01:59 2022] usb 3-7.3.2: New USB device found, idVendor=0fd9, idProduct=0063, bcdDevice= 2.00
[Mon Oct 3 15:01:59 2022] usb 3-7.3.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[Mon Oct 3 15:01:59 2022] usb 3-7.3.2: Product: Stream Deck Mini
[Mon Oct 3 15:01:59 2022] usb 3-7.3.2: Manufacturer: Elgato Systems
[Mon Oct 3 15:01:59 2022] usb 3-7.3.2: SerialNumber: BL44H1B12352
[Mon Oct 3 15:01:59 2022] input: Elgato Systems Stream Deck Mini as /devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7.3/3-7.3.2/3-7.3.2:1.0/0003:0FD9:0063.0034/input/input134
[Mon Oct 3 15:01:59 2022] hid-generic 0003:0FD9:0063.0034: input,hidraw9: USB HID v1.10 Device [Elgato Systems Stream Deck Mini] on usb-0000:00:14.0-7.3.2/input0

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: streamdeck-ui 1.1.2-2
ProcVersionSignature: Ubuntu 5.15.0-47.51-generic 5.15.46
Uname: Linux 5.15.0-47-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: KDE
Date: Mon Oct 3 15:05:36 2022
InstallationDate: Installed on 2021-05-14 (506 days ago)
InstallationMedia: Kubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420)
PackageArchitecture: all
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: streamdeck-ui
UpgradeStatus: Upgraded to jammy on 2022-05-03 (152 days ago)

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

In case anyone else sees this, I had to do this to resolve the issue:

edit /etc/udev/rules.d/50-elgato.rules and add these lines:

# Elgato Stream Deck Mini
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="0063", TAG+="uaccess"

# Elgato Stream Deck Original
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="0060", TAG+="uaccess"

# Elgato Stream Deck Original (v2)
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="006d", TAG+="uaccess"

# Elgato Stream Deck XL
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="006c", TAG+="uaccess"

# Elgato Stream Deck MK.2
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="0080", TAG+="uaccess"

Then sudo udevadm control --reload-rules

Then unplug and re-plug the device. It now works.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.