jgeumlek / MoltenGamepad

Flexible Linux input device translator, geared for gamepads
MIT License
274 stars 42 forks source link

Ubuntu 16.04, wrong permissions in chroot (udev rules fail) #43

Open mwsduelle opened 6 years ago

mwsduelle commented 6 years ago

Installed as systemuser. Everything works with "sudo moltengamepad". Udev rules appear to be non-functional (had to manually chmod uinput; previously was getting "open uinput: permission denied").

moltengamepad
No moltengamepad.cfg found.
driver: playstation4 driver initialized.
device hiding: changing permissions of /dev/input/event11 failed.
device hiding: changing permissions of /dev/input/js0 failed.
plug: ps4_1 added
stdin: ready to read commands from standard input. Try "help" for more info.

Edit: this appears to be issue with the fact that I'm in a chroot (crouton on a Chromebook). Any suggestions?

gustavolinux commented 6 years ago

try: sudo chown -R youruser /dev/input/

jgeumlek commented 6 years ago

MG needs to own those file nodes in order to change the permissions, so it does appear your udev rules aren't working.

I don't think manually chowning the dev nodes will work, since MG only tries once to change the permissions when it first opens the device upon connection.

I don't know much about how chroots interact with the linux input system and udev rules, so this is a bit out of my depth. This page talks about crouton and udev. You might be able to craft a working set of udev rules if you put a little time into it. I'll be here to answer questions about MG's rules if you go that route.

If you can't get udev rules working on your setup, you can just ignore these errors, and not use MG's device hiding feature.

Not having the auto-hiding isn't the end of the world, since you can manually do it before launching a game. (just remove all permissions from the original device nodes, and the game won't open them)