-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux needs UDEV rules to use hidraw for SDL2 Motion Input on Multiple Controllers #1097
Comments
same issue on flatpak |
insufficient information to act on or investigate. What controller is this. Your github profile tells me you should know better than to post such a vague and unactionable issue. |
Controller name already provided twice. To reiterate, it's an official Nintendo switch pro controller.
Also already partially provided. Flatpak distribution and appimage on Kubuntu Mantic 23.10.
I typically don't provide repetitive and extra irrelevant information. At the time it appeared that distro was likey irrelevant as long as hid-nintendo driver was being used from the kernel as sdl is provided in the appimage statically linked in the main binary. |
6.5.0.25.25 has a proposed(and accepted) fix for switch pro controller issues. |
I looked into this. it appears that one system is in the |
Then this SDL issue explains whats up libsdl-org/SDL#8125 |
Actually, apologies but its this one libsdl-org/SDL#6478 The current dkms-nintendo driver only supplies the motion data as a dev/input/event |
no and no. the problem is not that it is exposed separated. that is solved in SDL2 years ago now (see the second issue PR close reason). the problem is that |
libsdl-org/SDL#7697 was first added to SDL 3.0 to partially (not fully) mitigate libsdl-org/SDL#8336 backports the change to SDL 2.30 which has only just come out, should in part correct this issue and #753. |
The PR to systemd linked within that PR (libsdl-org/SDL#7697 (comment)) is what is needed though to add uaccess so that regular users can read the IMU systemd/systemd#22860 |
even after removing the user from the It works on my one system through HIDRAW as a side affect of having Steam installed, which installs a udev rule for hidraw access by user as part of the package
so basically, the only way it is going to work in the current SDL2 (2.28.5) is if the user has that udev rule provided for hidraw access via user, like steam provides. I have confirmed adding that rule (not all of steam, just the rule) to the system that previously was not working fixes it. |
testing the gyro in Nintendo Land it works
edit: nevermind, just checked, that is just how this game was and I forgot. |
This still happens with any SDL Controller on my side. The option for motion is grayed out and I have a controller with a gyro. It works elsewhere, but not here. So the udev rule doesn't fix it without modifications. Can this be fixed in Cemu or otherwise? It should work out of the box. |
Current Behavior
use motion is greyed out on
Nintendo Switch Pro Controller
when the wii u gamepad input is selectedExpected Behavior
expect that use motion is available. see #1097 (comment) for fix
Steps to Reproduce
use latest appimage with nintendo switch pro controller. attempt to use SDL input and select use motion but it is greyed out
System Info (Optional)
No response
Emulation Settings (Optional)
No response
Logs (Optional)
No response
The text was updated successfully, but these errors were encountered: