Closed teras closed 8 months ago
Hmm, did you apply the udev subsystem rules? Check out the Installation section in the README for instructions on how to do so.
If you have and it still doesn't work, please do send the whole error trace as this looks like only part of it.
Please also do provide more information, e.g. Linux distro, Stream Deck model, etc :)
Yes, permissions are OK, since I am able to use steamdeck-ui running as simple user. Also I am able to use hidapi myself (although I have zero experience on this library)
Linux Arch (rolling release). Steam deck Mini.
libva error: /usr/lib/dri/i965_drv_video.so init failed
(node:656881) UnhandledPromiseRejectionWarning: TypeError: cannot open device with path /dev/hidraw13
at new HID (/usr/lib/opendeck/resources/app/node_modules/node-hid/nodehid.js:49:17)
at new NodeHIDDevice (/usr/lib/opendeck/resources/app/node_modules/@elgato-stream-deck/node/dist/device.js:13:23)
at openStreamDeck (/usr/lib/opendeck/resources/app/node_modules/@elgato-stream-deck/node/dist/index.js:82:20)
at new ElgatoDevice (/usr/lib/opendeck/resources/app/build/devices.js:110:49)
at /usr/lib/opendeck/resources/app/build/devices.js:217:104
at Array.forEach (<anonymous>)
at new DeviceManager (/usr/lib/opendeck/resources/app/build/devices.js:217:39)
at Object.<anonymous> (/usr/lib/opendeck/resources/app/build/devices.js:261:25)
at Module._compile (node:internal/modules/cjs/loader:1141:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1196:10)
(Use `opendeck --trace-warnings ...` to show where the warning was created)
(node:656881) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
Hmm, that is a rather nondescript error message. Could it be due to the fact that streamdeck-ui is already running and therefore the device is already in use there? Try terminating that first before running OpenDeck.
No, when checking your software, steamdeck-ui is not running. Out of curiosity I tried to run your software as root. I did have progress, but it failed for other security reasons (maybe because it shouldn't run as root).
No, when checking your software, steamdeck-ui is not running.
Out of curiosity I tried to run your software as root. I did have progress, but it failed for other security reasons (maybe because it shouldn't run as root).
That's a good idea - could you try running it with sudo instead of as root?
Yes that's what I mean.
I also had to add "--no-sandbox" as well
Strange - I'll have a look tomorrow
Make sure you've:
sudo udevadm control --reload-rules
If it still doesn't work, try sudo chmod 666 /dev/hidraw13
while neither OpenDeck nor streamdeck-ui are running and then trying again. If this works, it means that the udev rules are not setup correctly.
This is an issue someone else on the Discord server experienced a while ago, but they got busy and we never solved it. It's also an identical issue to @node-hid/node-hid#454.
The rules don't apply, I don't know why. I've manually changed the mode to 666 and at least the application runs.
There are some usability issues, but that's irrelevant with the original bug.
Alright, progress. Could you describe your rules setup in detail (e.g. path and filename of the rules file, lsusb output, etc)? Additionally, what are the usability issues you're experiencing with the software?
Today it's working !?
After running as root I didn't run it again, and opened it again today. Maybe it created some files as root owner and now it works? I don't know.
I'd consider case closed :) I have no idea how to use it, but it seems to work now
Awesome! Make sure to leave a star on the repo :)
When I try to launch OpenDeck I get this error:
Any idea why this is happening?