Open etam opened 6 years ago
may be related: #255
What I have checked:
Recently uinput became a separate kernel module, that needs to be loaded. Without it the /dev/uinput
device exists, but is unusable. Solution: modprobe uinput
and create a file /etc/modules-load.d/uinput.conf
with an uinput
line, to load it automatically on every boot.
With this small program https://www.kernel.org/doc/html/latest/input/uinput.html#keyboard-events and with running a shell inside flatpak sandbox flatpak run --command=bash com.valvesoftware.Steam
I checked that there is no problem accessing uinput from within container.
lsusb
uses /etc/udev/hwdb.bin
file to get info about devices. It's made by udev. There's no udev in flatpak image.lsusb.py
uses /app/share/usb.ids
, but there's no such file either.Maybe that's the reason, why steam games are not detecting controller?
udev itself cannot be inside Flatpak
I just checked with strace, that borderlands executable is loading libudev (it finds libudev.so.0
in steam runtime) and probes available devices. Unfortunately it's not even trying to touch /dev/uinput
.
Yes, I found numerous issues on flatpack about problems with udev and that it's not going to be simply integrated. Just wanted to share my findings.
Have you installed steam-devices
? Eventually on non Debian distributions, just install those files manually: https://github.com/ValveSoftware/steam-devices
I wrote in description:
I have proper udev rules installed and I have access to /dev/uinput.
Does this still persist?
Well, for Overcooked yes it persists for me Had to modprobe uinput to even show, but after that Overcooked can't detect the controller On native steam it worked fine
Game information Borderlands 2
Distribution name and version where applicable openSUSE Tumbleweed
Flatpak info Flatpak 1.0.0 gl-driver nvidia-390-87
Problem description I have proper udev rules installed and I have access to /dev/uinput. I tried with Slime Rancher and it gets input from Steam Controller. If I run Borderlands 2 it gets no input from Steam Controller.
Logs: controller.txt
Does this issue reproduce with native Steam Have not tested