Re: linux kernel support for logitech g502 proteus

Samuel Bernardo <[email protected]> Thu, 1 Dec 2016 16:44:38 +0000
Newsgroups org.kernel.vger.linux-newbie
Message-ID <[email protected]>
Hi Môshe van der Sterre,

Thanks for you answer.

This mouse can store keys in their internal memory but can also load
profiles from a local file.

When using profiles, keys are not stored in internal mouse memory. I had
tested it in other PC running Windows and when I disconnected from USB
and then connected to my PC running Linux verified that keys where not
being detected.

Only when I stored the keys in mouse memory (without using profile) I
could catch them using xev or showkey. This is why I think that could be
a missing feature for linux mouse module.


On 12/01/2016 04:15 PM, Môshe van der Sterre wrote:
> Hi,
>
> From your story, I assume the mouse has some kind of memory that remembers the key bindings. This means there is not actually a need for a specific kernel driver. I guess it is possible to program the mouse from user-space, with libusb for example. If there is no linux software available that already does this, you will need to do some reverse engineering on the usb protocol used. This can be very simple, very hard or anything in between. I have no experience reverse engineering USB from windows, but you could start by looking at USBPcap or simmilar windows based usb sniffers.
>
> As for the correct mailinglist, this question would be on topic for linux-newbie as it relates somewhat to driver development, but not the others.
>
> I hope this helps,
> Môshe van der Sterre
>
> On 12/01/2016 11:57 AM, Samuel Bernardo wrote:
>> Hello,
>>
>> I'm sorry if I'm spamming some lists with this help request, but I don't
>> know exactly what's the right mailing list.
>>
>> I would like to use Logitech G502 RGB gaming mouse with programmed
>> profiles from their software, but I realized that generic driver in
>> linux didn't support it. Logitech discards any support for Linux OS.
>> This is the only reason I need a dual boot with Windows for programming
>> the mouse or generate the xml template for the key bindings.
>>
>> In Windows key mapping for mouse can be loaded from a xml file that
>> stores profiles or programmed directly into the mouse, but limited to
>> the keys available in keyboard or software.The following guides explains
>> the setup:
>>
>> http://support.logitech.com/en_us/article/26855
>>
>> http://support.logitech.com/en_us/article/26862?product=a0q31000009u2F9AAI
>>
>> With xml template is also possible to configure additional keys like F13
>> that are usefull to map macros for example in an IDE software. The guide
>> explaining how to change xml file is below:
>>
>> http://i.imgur.com/NbmjWCS.png
>>
>> This mouse has many programmable keys that I would like to use in linux.
>>
>> I suspect that xml configuration is loaded with the windows driver for
>> g502. Since with actual generic driver in linux 4.8 the profile could
>> not be loaded, I ask if I you could help giving additional support for
>> it in linux kernel?
>>
>> Thanks,
>>
>> Samuel
>>
>>
>>
>>
signature.asc (application/pgp-signature, 801 B)
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCAAGBQJYQFN2AAoJEO2Nqc2/qzs5cpUP/3c208/71QFuP+XZIkCDRe9t
75G/ZDAkg3zorqj6n/le2YutRQtquFIgKhrP2mnHiqMCWrkI4c3qtq5ix/R9eDg9
NOQuIiKqXJ+9cdK9+fYf46K7C5/+P1YTUqnRTktttO3+IHJvRNdxQPSuKL0/4FAy
Q/Ndl3TPBiWKFrOrIrCSrUsipF2HIiKQ3EdlCOdHLGrKGA+lWeyBeS30cQrVqjv4
mhk9nd0EVAP1azbsowTXYaMYXjB7s746IB1Ligf9CAotlZbzej4yz1bYC5jzWMWE
Qe0uPUx36+d1cbeWXWmvKYVbjuBKP5PsmcmvZAQqgckqDn2ZvnoHlH/d2UN3eXlw
YczC83FlzmbvNccbh0LrP/3nHbSzeZzuZNfZ4iE3GjeybmFQOmtjRTjYNQaZIa7/
X4vSFq+1ZMf+sFYg+snfrzRiCFyIJUW8uQNOCQTRRpzi7swwgoeg8THnNlIFE9RW
aXOUM2YqYsS68dcay5PIErLn28l/SXE5YQV/Fc8lpzVcCcil10vVSayMsYrYxC4k
VxWUsfrAIuOSprG1Gi48Ibg9C6YPEyuDszV3WtRNCzbvHlGhCl6YOYhPRry7rkk+
JQE+nwxa6jhv9ws+9Y6F66ApyXEM801DxVHVVV8qD1NH/L6YWyod19lvRtF0pZiQ
pgZqvDUqGuJ8d5IStatt
=gGWE
-----END PGP SIGNATURE-----