Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1325354
Summary: | Keyboard and other input devices uncorrectly recognized as joysticks | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Pierre Ossman <pierre-bugzilla> | ||||||
Component: | kernel | Assignee: | Kernel Maintainer List <kernel-maint> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | high | ||||||||
Version: | 25 | CC: | btissoir, gansalmon, itamar, jan.public, jonathan, jporter, kernel-maint, labbott, madhu.chinakonda, mchehab, negativo17, samuel-rhbugs | ||||||
Target Milestone: | --- | Keywords: | Reopened | ||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | kernel-4.8.5-300.fc25 kernel-4.8.6-201.fc24 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2016-11-07 23:26:11 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Pierre Ossman
2016-04-08 14:02:36 UTC
Urgh. I dug up kernel-4.2.8-300.fc23.x86_64, and I'm fairly certain that kernel worked as I did some development related to volume handling on that kernel. So either something has permanently reconfigured my keyboard, or there is something else messing up things as the device gets discovered. Found the issue. It was steam that screwed things up by installing these udev rules: https://github.com/denilsonsa/udev-joystick-blacklist For some reason those buttons are using a secondary device rather than the primary. And that device node is getting nuked by said udev rule. Sorry for the noise. No problem. This is a good data point for us to know in the future. Problem is, without the Udev rules in the Steam package, Big Picture is not working due to keypresses that move the cursor always in the top left corner. Please see this, where it originally was reported (in particular the last comment): https://github.com/ValveSoftware/steam-for-linux/issues/3384 This is the kernel bug which is open since 2011 (!!): https://bugzilla.kernel.org/show_bug.cgi?id=28912 So I have this dilemma, non functional Steam or broken multimedia keys when installing the Steam package? Considering that the rules are added ONLY if the Steam package is installed, I consider this the best option, but I'm open to other solutions (separate subpackage with the Udev rules?). But the real fix would be to have the kernel bug fixed (sorry, I'm not able to fix it) and then the Udev rules workaround should not be required anymore. Created attachment 1198779 [details]
0001-HID-input-ignore-System-Control-application-usages-i.patch
proposed fix for Microsoft devices
Created attachment 1198780 [details]
0002-HID-wacom-do-not-detect-Pad-devices-as-joysticks.patch
proposed fix for Wacom devices
I had a look at this issue (I happen to have a Microsoft Surface mouse that exposes the issue). The actual description of the issue and solution is in attachment #1198779 [details]. The TL;DR is that the report descriptor seems bogus for those devices, and many axes should not be created. I am confident the provided patches will solve the Microsoft issues, but I'd need to have a look at the A4Tech mouse report descriptor to say if this will help those too or if a different fix is required. I launched a koji build here: http://koji.fedoraproject.org/koji/taskinfo?taskID=15532573 Please report when the build gets done (in a couple of hours) if it doesn't fail :) Thanks! Will make a test as soon as possible. I've tested the build on Fedora 24 and I see that the spurious Joystick/Mouse devices are no longer there; so it seems to be fixed. I have one the Microsoft keyboards affected, btw. Funny thing is that something has changed as well within Steam, as now I don't have the extra ghost touches even without the UDev rules in the default kernel. Red Hat has provided a patch for Wacom and Microsoft input devices. At least in my case the issue with the ghost inputs in Big Picture is solved with the patched kernel: https://bugzilla.redhat.com/show_bug.cgi?id=1325354#c8 I will remove the extra UDev rules from the Fedora 25 build of Steam. Lol, sorry ignore the last comment, I closed the wrong bug :) Patches submitted upstream: https://patchwork.kernel.org/patch/9328671/ https://patchwork.kernel.org/patch/9328667/ I'll try to remember to post a note here when they get accepted so we can include them in Fedora too. BTW, only the Microsoft patch has been accepted yet: https://git.kernel.org/cgit/linux/kernel/git/jikos/hid.git/commit/?h=for-next&id=1989dada7ce07848196991c9ebf25ff9c5f14d4e it will be pulled in v4.9, so it would be interesting to have it in Fedora ASAP. Not sure whether we should close the bug once this one hits Fedora, given that Wacom devices will be still affected. I keep those on my todo list but I must say it's a low priority item. Thanks. Considering it's something really related to the first patch I hope that it will not be forgot in time. In the meanwhile, I still have to carry around udev rules as a workaround. I have an affected keyboard: Microsoft NaturalĀ® Ergonomic Keyboard 4000. I'm running Fedora 24. Looks like I need to wait for a kernel 4.8 release, is that correct? According to commment #14 you need to wait for 4.9. kernel-4.8.5-300.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-5d7d12d75a As the update notification just said,m the patch has been added to f24-f25 and will be in 4.8.5 in those 2 releases (rawhide already is in v4.9-rcX so there is nothing to do here). Thanks Justin for backporting the patch! kernel-4.8.5-300.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-5d7d12d75a kernel-4.8.5-300.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report. kernel-4.8.6-201.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-96d276367e kernel-4.8.6-201.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-96d276367e kernel-4.8.6-201.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report. |