Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we save profiles configured in Piper to onboard memory of G502 Hero? #644

Open
mineturtle36 opened this issue May 28, 2021 · 2 comments

Comments

@mineturtle36
Copy link

Briefly, to switch the HW mouse+keyboard between Linux Host and Windows VM (KVM), LCtrl+RCtrl needs to be pressed simultaneously.
I'd like to have Piper map that key combo to the 'Resolution Switch' of my G502 Hero. This works fine and can be done - no issues here.
While I am on Linux Host side I can transfer control of my mouse+keyboard to the VM using the 'Resolution Switch' button - also no issues here.

However, the problem is transferring back from the VM to the Host, as Piper is not present on the VM side (Windows 10), and several versions of official Logitech software did not manage to start on my VM (a problem which is not unique to me). So there is no way to introduce the 'Resolution Switch' button to the VM OS (Windows 10).

The most elegant solution would be to have Piper store the settings both locally (on the Linux Host) and on the mouse itself (onboard memory).
This way the profile would be carried over to whatever OS the mouse is used with.

  • What are the chances that this can be done in Piper?
@FFY00
Copy link
Member

FFY00 commented May 28, 2021

piper/libratbag only configures the onboard memory. The issue is that the Logitech software tries to configure the device itself and restore the previous settings, I don't understand why they do this. You should select the onboard memory mode in the windows driver.

@mineturtle36
Copy link
Author

Hmm, due to previous experience I mistakenly assumed Piper did not write to onboard memory - Thanks for the info.

My previous statement "I'd like to have Piper map that key combo to the 'Resolution Switch' of my G502 Hero. This works fine and can be done - no issues here." Seems I spoke too soon. I tried configuring it again just now, but it is not possible. I am sure it used to work.

I tried assigning the macro ↓LCtrl+↓RCtrl+↑LCtrl+↑RCtrl on Resolution Down and Resolution Switch buttons, and both times I get the "Something went wrong. This device has been reset to a previous state".

Ratbag reports the following in journal:
ratbagd[615534]: ratbag error: Error while writing macro for button 6
ratbagd[615534]: ratbag error: hidpp20: failed to update button (-22)
ratbagd[615534]: ratbagd error: error committing device (-1000)

Do you need a new issue opened, can this one be re-classified, or is this considered a complex macro and not yet supported (from another issue I saw here)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants