[Suggestion] Avoid adding the user to input group on Linux #202
-
Sunshine docs currently suggest to add the user to Valve already does this in their steam-devices repo. They basically provide udev rules to automatically grant access to certain known devices using
I'm thinking about doing something similar for Sunshine virtual devices. Looking at input.cpp, each device has its own product/vendor ID. What about the following udev rules?
(Of course, 0xDEADBEEF should be replaced to something less dummy 😄 ) This would also simplify Linux setup a bit. The users will only need to install udev rules instead of installing udev rules AND adding themselves to |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 2 replies
-
Thanks for opening this suggestion. Since you have a pretty good grasp on this, I would suggest that you submit a PR with your suggestions. |
Beta Was this translation helpful? Give feedback.
Done! Please check #1127. After playing a bit with udev rules, I actually realized that usage of
ATTRS{idVendor}
andATTRS{idProduct}
is not necessary. It is enough to set up permissions for single device/dev/uinput
. Unlike physical USB devices, uinput doesn't need per-device configuration.