kozec / sc-controller

User-mode driver and GTK3 based GUI for Steam Controller
GNU General Public License v2.0
1.54k stars 129 forks source link

Doesn't work with flatpaked apps #474

Open E100Beta opened 5 years ago

E100Beta commented 5 years ago

I tried running Steam and PCSX2 Flatpak, and both didn't see steam controller with scc-daemon running. Tried giving apps access to /dev, /home/$USER/.config/scc/daemon.socket, all accessible buses, triple-checked udev rules, nothing worked.

Can this be a bug on sc-controller's side? Does anyone know what can help me with making things work?

PS: non-flatpaked Steam worked just fine on my setup.

kozec commented 5 years ago

Can this be a bug on sc-controller's side?

More likely it's a feature of flatpak :)

Check if giving access to /dev/input works, and if not, try filling bug with https://github.com/flatpak/flatpak.

E100Beta commented 5 years ago

Yes, Steam has access to /dev/input, and executing cat /dev/input/event18 (it was num corresponding to Xbox pad after starting scc-daemon) from inside the flatpak container gives me gibberish in response to pressing buttons on controller, so technically it works.

So the problem is apps don't recognize /dev/inpur/event* as a joystick?

kozec commented 5 years ago

What game are you trying to run like that?

E100Beta commented 5 years ago

Currently, Dead Cells and Sunless Skies, but I can try multiple other games tomorrow (both games detecting scc controller normally through simple chroot).

Also, if it helps, I tried udev rules from both of these sources: https://gitlab.com/Fabish/game-devices-udev/blob/master/71-Valve-Controllers.rules https://steamcommunity.com/app/353370/discussions/2/1735465524711324558/

I am sorry if it seems like I persist after you told me to report this to flatpak - I just want to understand, what may be the core issue I should report here. What may be the difference between event* created by sc-controller and by original device? Does it not tell the system something flatpak relies on?