Controller support in systemd-nspawn Steam
Update: Just use flatpak version instead
steam needs two steps to properly identify a controller:
- controller is visible to sdl2
- controller's /dev/hidraw is visible to steam
for the first step, use a dirty hack:
chmod 666 /dev/uinput
chmod 666 /dev/input/js0
chmod 666 /dev/input/event??
replace event?? with your controller's, you can test it using jstest.
for the second, mount /dev/hidraw??, and enable property for read access:
--bind /dev/hidraw4
the problem is that you have to plug in your controller before nspawn start up, otherwise it can't find this device.
(Message from the future myself: ) I suggest simply use the flatpak version, easy to install, no sudo and permission stuff required, everything works out of the box
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Arguing that you don't care about the right to privacy because you have nothing to hide is no different from saying you don't care about free speech because you have nothing to say. – Edward Snowden