linux-newbie.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Samuel Bernardo <samuelbernardo.mail@gmail.com>
To: "Môshe van der Sterre" <me@moshe.nl>
Cc: linux-newbie@vger.kernel.org
Subject: Re: linux kernel support for logitech g502 proteus
Date: Thu, 1 Dec 2016 16:44:38 +0000	[thread overview]
Message-ID: <10298a05-f2cb-a4c4-ce7b-deeb2e5c29a8@gmail.com> (raw)
In-Reply-To: <58404CB1.6090705@moshe.nl>


[-- Attachment #1.1: Type: text/plain, Size: 3003 bytes --]

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
>>
>>
>>
>>



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

      parent reply	other threads:[~2016-12-01 16:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-01 15:57 linux kernel support for logitech g502 proteus Samuel Bernardo
     [not found] ` <58404CB1.6090705@moshe.nl>
2016-12-01 16:44   ` Samuel Bernardo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=10298a05-f2cb-a4c4-ce7b-deeb2e5c29a8@gmail.com \
    --to=samuelbernardo.mail@gmail.com \
    --cc=linux-newbie@vger.kernel.org \
    --cc=me@moshe.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).