-
Notifications
You must be signed in to change notification settings - Fork 27
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
Nvidia Shield Controller support #9
Comments
I don't have a Shield Controller here, so I don't know how it works, and I have to trust people that this fixes the issue. That's fine, anyway, because I only own 2 of the several devices listed in this repository. I have two main questions:
If these are cleared up, I don't see much problem adding another udev rule for nvidia shield controller. It can be added as another file or as a rule in the current files. The SDL controller db file seems out-of-place here. If we chose to keep stuff separate, I'm going to put a link to your repository, as I believe it will help other peopl. |
I am the Steam maintainer in Fedora, and was playing with a few things that were not working in my setup. There is an issue in Steam, ONLY when running in Big Picture Mode, where the devices that expose multiple input "interfaces" of which one is a joystick, to trigger a lot of ghost touches, movements and whatever, making Steam unusable: ValveSoftware/steam-for-linux#3384 The Valve bug report is then closed referencing the kernel bug: https://bugzilla.kernel.org/show_bug.cgi?id=28912 And some people point to this Github project to fix their woes; and this is how I discovered your rules and that I have one of the keyboard on the list. By chance, I also have an Nvidia Shield controller, so while testing, I got the same symptoms, ghost clicks everywhere (usually up left) and two distinct input devices. By looking around, I've seen that it follows the same logic, so it creates a joystick device and a mouse device; so exactly like the devices in your list except the opposite way: the mouse device should be removed. So I sent the UDEV rule update to the other repository, and asked myself if everything should be in one place instead of two. Number 99 is simply because it was used in the other project, but it can run anywhere. It's triggered only on that specific USB id insertion. The conrtroller DB file is only used when adding support for SDL, so it's not related to the UDEV rules and can be omitted. Do you think we should add the controller rules to your 51*.rules files? Or keep them separate? |
Sounds good. I have a couple more questions, now regarding the udev rule itself:
I believe a line like this should be good:
Can you test it? Any issues? Any feedback? And thank you for your effort! |
Works perfectly, using the vendor/product id is a better idea. Here is the line that I added to your
Mode Two questions... permissions or rm rules file? Still the name "these-are-not-joysticks"? |
I've started a branch to push work-in-progress code regarding this issue. At first, since it is only one device, I was inclined to keep in the same file, even though the name makes no sense. Should I just rename the file to something else? Maybe Regarding changing permissions or removing the device, yet again I need your help. What happens with NVIDIA Shield Controller? Does it create multiple devices, even if On the other hand, if things get too specific, we may end up choosing to put the rule in a new file. To tell the truth, I believe you have more information on taking a decision than me. You have the device and you can use |
The plug creates multiple devices also when
This one works as well and I just have a js* device. So it's very similar except for the permissions settings. Btw, why do you have 2 lines for each device? They do the same thing from my understanding:
For the naming of the files I'm fine with anything that makes sense. "fix-input-devices" may be a good candidate as it's generic enough. |
Nevermind, got it. The first one removes the
So very close to your, just inverted with the mouse and the mode in the second. |
Please ignore my last comments, I've made some tests, if the event device for the mouse ceases to exist, the controller does not work. What you pushed to the other branch is correct, that is the best option. |
Reason: issue #2.
So those lines are at the same time setting I have one more question: do we really need to set
|
Hello,
I've just asked for a pull request to the UDEV rules for the Nvidia Shield Controller here:
cyndis/shield-controller-config#2
Actually, this is exactly the opposite issue of the UDEV rules for udev-joystick-blacklist, the controller is seen as a mouse (it has a touchpad) but it should be seen as a joystick.
Do you think it makes sense to be added here or it should be kept separate?
Thanks & regards,
--Simone
The text was updated successfully, but these errors were encountered: