Bug 4382
Summary: | first joystick button mapped to extra number | ||
---|---|---|---|
Product: | Alternate Trees | Reporter: | Matthew Mueller (pygvkxh02) |
Component: | mm | Assignee: | Vojtech Pavlik (vojtech) |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | bunk, guichaz |
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.12-rc1-mm1 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Attachments: |
evtest log for rumblepad2 on 2.6.11.1
evtest log for sw3dpro on 2.6.11.1 evtest log for rumblepad2 on 2.6.12-rc1-mm1 evtest log for sw3dpro on 2.6.12-rc1-mm1 Patch to fix the extra button |
Description
Matthew Mueller
2005-03-21 23:50:58 UTC
Oh, I should note: this was with 64 bit kernel, and the problem occured both with 64bit jstest and 32bit jstest running in a chroot. Can you test the joysticks with evtest in addition to jstest, to see where the extra button comes from? Ok, I tested it with evtest under both kernels, though there doesn't seem to be a whole lot of differences.. I'll attach the logs. In each log I also pressed and released (what should be) button 0 once. (The sw3dpro logs have extra events since it's hard to hit the trigger without moving the stick.) Created attachment 4769 [details]
evtest log for rumblepad2 on 2.6.11.1
Created attachment 4770 [details]
evtest log for sw3dpro on 2.6.11.1
Created attachment 4771 [details]
evtest log for rumblepad2 on 2.6.12-rc1-mm1
Created attachment 4772 [details]
evtest log for sw3dpro on 2.6.12-rc1-mm1
Created attachment 4773 [details]
Patch to fix the extra button
This patch should fix your problems.
Yep, that fixed it. Thanks. Of course, this patch fixes also my problem (http://lkml.org/lkml/2005/4/12/145). Sorry for posting to LKML without having checked bugzilla first. BTW, I am wondering why this patch is not in -mm or in linus' tree. Guys, can you please confirm that 2.6.12-rc5 has all the needed fixes and is functioning OK? Thanks. I will try to test tonight, but IIRC, the fix (http://bugzilla.kernel.org/attachment.cgi?id=4773) is included in ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.12-rc5/2.6.12-rc5-mm1/broken-out/bk-input.patch so not in 2.6.12-rc5. This hunk to joydev.c is enough to fix the problem for me: - for (i = 0; i < BTN_JOYSTICK - BTN_MISC + 1; i++) + for (i = 0; i < BTN_JOYSTICK - BTN_MISC; i++) I just tested 2.6.12-rc5, the extra button problem is indeed still present. After actually testing, I confirm the bug is still present. The fix went into 2.6.12-rc6. Can you confirm it's fixed there? I confirm it's fixed, the bug should be marked as CLOSED. I tested 2.6.12, it is fixed there also. Thanks, I'm therefore closing this bug. |