Skip to content

Fixed StreamDeck not reconnecting#187

Merged
Core447 merged 2 commits into
StreamController:mainfrom
gensyn:main
Aug 5, 2024
Merged

Fixed StreamDeck not reconnecting#187
Core447 merged 2 commits into
StreamController:mainfrom
gensyn:main

Conversation

@gensyn

@gensyn gensyn commented Jul 30, 2024

Copy link
Copy Markdown
Contributor

At least on my system (Ubuntu 24.04), my Stream Deck Mini identifies with vendor name "Elgato_Systems", not "Elgato". So the on_connect() and on_disconnect() functions were never executed for me. I added "Elgato_Systems" as a valid vendor and now unplugging and reconnecting the StreamDeck works as expected.

Alternatively, you could just check for the string "Elgato" in the vendor name or check the actual vendor id, which should be identical on all systems.

@Core447

Core447 commented Aug 3, 2024

Copy link
Copy Markdown
Member

Alternatively, you could just check for the string "Elgato" in the vendor name or check the actual vendor id, which should be identical on all systems.

I think this approach makes more sense because we don't know which other strings are used. However, using the "actual" vendor id should be sufficient, isn't it?

@gensyn

gensyn commented Aug 3, 2024

Copy link
Copy Markdown
Contributor Author

I would think so, yes. The vendor ID should be supplied by the StreamDeck itself and therefore always be the same.

@Core447

Core447 commented Aug 3, 2024

Copy link
Copy Markdown
Member

Ok, do you want to implement this, or should I do it?

@gensyn

gensyn commented Aug 3, 2024

Copy link
Copy Markdown
Contributor Author

I can gladly change my PR on monday, if you dont't want it asap. :)

@Core447

Core447 commented Aug 3, 2024

Copy link
Copy Markdown
Member

No need to hurry

@gensyn

gensyn commented Aug 5, 2024

Copy link
Copy Markdown
Contributor Author

Ok, I changed the PR to use the vendor ID 0fd9.

@Core447 Core447 merged commit f3a1f7d into StreamController:main Aug 5, 2024
@Core447

Core447 commented Aug 5, 2024

Copy link
Copy Markdown
Member

Great, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Released

Development

Successfully merging this pull request may close these issues.

2 participants