pwr-Solaar / Solaar

Linux device manager for Logitech devices
https://pwr-solaar.github.io/Solaar
GNU General Public License v2.0
5.54k stars 410 forks source link

Logitech G Pro X Superlight 2 support #2207

Closed DexterHaxxor closed 6 months ago

DexterHaxxor commented 10 months ago

This issue doesn't really need too many details, but I'd like to get involved with adding support for the Superlight 2 mouse, which I've recently purchased. It's showing up like this: Wired: image Lightspeed receiver: image Solaar is actually lying in the second screenshot, the polling rate reported by evhz is 1000 Hz, which isn't the full potential of the mouse but is also perfectly usable for gaming.

The mouse doesn't have many features, but 2000 Hz report rate on Linux and being able to toggle their hybrid switches would be great.

deadmeu commented 7 months ago

You should clone this repository, download the PR (see #2207 (comment) above), and run Solaar as bin/solaar from the clone directory. You should see a setting for the DPI adjustment with at least an "X" field but probably also a "Y" field and maybe an "LOD" field. Try changing each of them and see what happens. If you notice any anomalies run Solaar as bin/solaar -ddd and post the output along with what you did.

No problem. Can I ask, is there a risk of damaging the hardware by running this patch?

pfps commented 7 months ago

The DPI changes are only retained in the device until it goes into a power-saving mode, so if there are changes that you don't like and can't undo all you need to do is to stop running Solaar and turn the device off and on.

Most changes that Solaar makes are like this. One major exception is pairing. Another is profiles.

That said, any change to any device, particularly devices that have complex firmware, has risk. About the only way around this risk is to only use very simple devices.

deadmeu commented 7 months ago

Running your PR I can see the following: 2024-03-29_16-15-53

The X, Y, and LOD options are available.

X and Y were set to 800 by default. I tried changing X to 1200 but nothing changed. After playing around with it for a while and quitting out a few times, I tried opening Solaar and setting X to 1000, then quitting with verbose logging enabled (I disconnected the second USB receiver for the PRO X beforehand). Here's a log of that process: solaar-log-1.log

It's possible that I may have missed a dependency when installing the various packages through pip.

pfps commented 7 months ago

@deadmeu I expect that you have an active Onboard Profile. This prevents changes to the DPI settings. So to make changes using this setting you first need to disable Onboard Profiles.

pfps commented 7 months ago

It would be nice to have the following features supported [...]

* [ ]  Allow to manually switch between Wired and Wireless

This does not appear to be possible.

peter

DexterHaxxor commented 7 months ago

@pfps

I have no idea how what you did or if it worked for you, but I am unable to change my DPI or report rate, it appears to work in the UI but has no effect on the mouse and resets when Solaar is restarted.

pfps commented 7 months ago

To have changes to DPI and Report Rate be effective you have to have Onboard Profiles set to Disabled. Please run Solaar as bin/solaar -ddd and post the output around the time you try to change the DPI and Report Rate.

pfps commented 6 months ago

Closing due to no response.

DexterHaxxor commented 6 months ago

@pfps Oh, it just started working after a few days somehow and I forgot to respond. You can keep this closed.