PixlOne / logiops

An unofficial userspace driver for HID++ Logitech devices
GNU General Public License v3.0
3.42k stars 271 forks source link

PRO X SUPERLIGHT 2 - Changing DPI seemingly has no effect #430

Open anthr76 opened 10 months ago

anthr76 commented 10 months ago

Hello! I have loaded a PRO X SUPERLIGHT 2 into logiops with the following configuration:

devices: (
  {
      name: "MX Master 3S";
      smartshift:
      {
          on: true;
          threshold: 30;
          torque: 50;
      };
      hiresscroll:
      {
          hires: false;
          invert: false;
          target: false;
          up: {
              mode: "Axis";
              axis: "REL_WHEEL";
              axis_multiplier: 1.0;
          },
          down: {
              mode: "Axis";
              axis: "REL_WHEEL";
              axis_multiplier: -1.0;
          },
      };
      dpi: 1500;

      buttons: (
          {
              cid: 0xc3;
              action =
              {
                  type: "Gestures";
                  gestures: (
                      {
                          direction: "Up";
                          mode: "OnRelease";
                          action =
                          {
                              type: "Keypress";
                              keys: ["KEY_LEFTMETA"];
                          };
                      },
                      {
                          direction: "Down";
                          mode: "OnRelease";
                          action =
                          {
                              type: "Keypress";
                              keys: ["KEY_LEFTMETA", "KEY_LEFTSHIFT", "KEY_DOWN"];
                          };
                      },
                      {
                          direction: "Left";
                          mode: "OnRelease";
                          action =
                          {
                              type: "Keypress";
                              keys: ["KEY_LEFTMETA", "KEY_LEFTSHIFT", "KEY_LEFT"];
                          };
                      },
                      {
                          direction: "Right";
                          mode: "OnRelease";
                          action =
                          {
                              type: "Keypress";
                              keys = ["KEY_LEFTMETA", "KEY_LEFTSHIFT", "KEY_RIGHT"];
                          }
                      },
                      {
                          direction: "None"
                          mode: "OnRelease";
                          action =
                          {
                              type: "Keypress";
                              keys: ["KEY_LEFTMETA", "KEY_ENTER"];
                          }
                      }
                  );

              };
          },
          {
              cid: 0x52;
              action =
              {
                  type: "Keypress";
                  keys: ["KEY_RIGHTCTRL", "KEY_PRINT"]
              };
          },
          {
              cid: 0xc4;
              action =
              {
                  type: "ToggleSmartshift";
              };
          }
      );
  },
  {
      name: "PRO X 2";
      dpi: 32000;
  }
);

Based off of a log line in logid -- [INFO] Device found: PRO X 2 on /dev/hidraw12:1

When changing DPI though I see no difference in my DPI. I understand this is not a tested device yet but I figured I can be of help to try anything to try and get support. It does seem like the first revision of this model is supported via https://github.com/PixlOne/logiops/pull/419