Skip to content

fix(Hardware Support): Update MSI Claw Driver Setup Rules#594

Merged
pastaq merged 1 commit into
mainfrom
pastaq/msi_claw_rules
Jun 5, 2026
Merged

fix(Hardware Support): Update MSI Claw Driver Setup Rules#594
pastaq merged 1 commit into
mainfrom
pastaq/msi_claw_rules

Conversation

@pastaq
Copy link
Copy Markdown
Contributor

@pastaq pastaq commented Jun 5, 2026

  • Devices that boot up in desktop mode are unable to present events that function as gamepad, and there is no way for a user to switch the mode without writing to the CLI path at /sys/class/hidraw/hidraw0/device/gamepad_mode. Xinput mode and Dinput mode express themselves with unique PIDs (1901/1902 respectively), and trigger a device disconnect/reconnect. Desktop mode, by contrast, adopts the PID of the input mode that was last set and does not trigger a reset. This provides the opportunity to ensure the device is in a gamepad mode at startup without hard forcing a retrigger loop, as setting xinput/dinput explicitly would. The rules only trigger on "add|bind"" to prevent loops on "change", permitting a user to select desktop mode later.
  • While at it, prevent the device from ever showing as PID 1903, which is a bugged BIOS mode.

Fixes #494

- Devices that boot up in desktop mode are unable to present events that
  function as gamepad, and there is no way for a user to switch the mode
  without writing to the CLI path at
  /sys/class/hidraw/hidraw0/device/gamepad_mode. Xinput mode and Dinput
  mode express themselves with unique PIDs (1901/1902 respectively), and
  trigger a device disconnect/reconnect. Desktop mode, by contrast, adopts
  the PID of the input mode that was last set and does not trigger a
  reset. This provides the opportunity to ensure the device is in a
  gamepad mode at startup without hard forcing a retrigger loop, as
  setting xinput/dinput explicitly would. The rules only trigger on
  "add|bind"" to prevent loops on "change", permitting a user to select
  desktop mode later.
- While at it, prevent the device from ever showing as PID 1903, which is
  a bugged BIOS mode.
@pastaq pastaq requested a review from ShadowApex June 5, 2026 04:40
@pastaq pastaq added bug Something isn't working hardware support This issue requests adding new hardware of fixing a bug with existing hardware critical Fixing this issue is of a very high priority labels Jun 5, 2026
@pastaq pastaq self-assigned this Jun 5, 2026
@pastaq pastaq merged commit 158e1f8 into main Jun 5, 2026
6 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 5, 2026

🎉 This PR is included in version 0.77.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

bug Something isn't working critical Fixing this issue is of a very high priority hardware support This issue requests adding new hardware of fixing a bug with existing hardware released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[MSI Claw] IP driver does not signal switch to xinput mode

2 participants