Description of problem: i have a genius mouse from genius. the mouse is specific in the way you can program macro on buttons. With the stock kernel only the macro functionnality is functional (eg : 4th button give me "AREET" on a text editor), and no mouse functionality. after some googling, i find a value in "include/linux/hid.h", than can help me to make working my mouse. the value is #define HID_MAX_USAGES 12288 i must change 12288 by 32768 and recompile the kernel. after that change my mouse is totally functionnal (macros and mouse ) Is there a way to have this default value changed in the stock kernel ?
The usual way to have this value changed is to send a patch upstream to the linux-input kernel mailing list. I can handle that if you don't feel doing it. However, I would like to double check the impact of changing this value. Can you please give us some hid-recorder logs of the different functionalities of your mouse: http://bentiss.github.io/hid-replay-docs/
Created attachment 747455 [details] hid-replay from /dev/hidraw0
Created attachment 747456 [details] hid-replay from /dev/hidraw1
Created attachment 747457 [details] hid-replay from /dev/hidraw2
the choices hid-recorder gave me. Available devices: /dev/hidraw0: Genius Gila Gaming Mouse /dev/hidraw1: Genius Gila Gaming Mouse /dev/hidraw2: Genius Gila Gaming Mouse /dev/hidraw3: Logitech USB Keyboard /dev/hidraw4: Logitech USB Keyboard i made 3 logs ; one for each hidraw for the gila mouse. at each log i press extra mouse buttons, and i draw a cross with the mouse. i prefer you send patch to upstream, because i am not at ease with the process, and english is not my native language. thanks.
Just a quick update and a thanks for the logs. I tried to ask upstream to choose the better solution to handle your device: http://www.spinics.net/lists/linux-input/msg25837.html So far, no answers. There has been other mails later on the LKML about this problem, and it looks like the solution is to fix the report descriptor for your device by writing a new kernel module. I'll do that once I have some time.
I finally managed to find some time to create the patch. I have set up a repository where you can try it: https://github.com/bentiss/hid-kye Please tell me if it's working for you. If so, I'll push the patch upstream.
i tried the patch with kernel-3.9.6-200 all functions seem working well. thanks a lot.
Benjamin, that repo contains a backport of a commit d881427253da011495f4193663d809d0e9dfa215 and an additional fixup patch, right? Did you send the fixup patch to upstream with stable CC'd? F18 should be rebased to the 3.10 kernel relatively soon, so we can include the fixup patch stand-alone if I'm reading all of this correctly.
Created attachment 767810 [details] patch Josh, you are reading this perfectly right. And in any cases, the backport is not required in either 3.9 or 3.10. I still did not send the patch upstream (the window just opened and I don't like to send patches at that time), but for it to be perfect, I need to also blacklist this device in hid-core.c. I used the fact that the device was rejected by the generic layer so I don't need to blacklist it, but this is not very clean. I am attaching the final version of the patch that I'll submit later if you want to include it in 3.9 or 3.10.
FYI, the patch is upstream: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=3685c18e17f12438d0a83331c1b6a5b00fade7a1 It will be in 3.11-rc1.
Thanks Benjamin. Applied to F17-F19. Rawhide will pick it up through the merge windows shortly.
kernel-3.9.9-201.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/kernel-3.9.9-201.fc18
Package kernel-3.9.9-201.fc18: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing kernel-3.9.9-201.fc18' as soon as you are able to, then reboot. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-12530/kernel-3.9.9-201.fc18 then log in and leave karma (feedback).
kernel-3.9.9-302.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/kernel-3.9.9-302.fc19
kernel-3.9.9-201.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.
kernel-3.9.9-302.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
kernel-3.9.10-100.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/kernel-3.9.10-100.fc17
kernel-3.9.10-100.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.