Skip to content

fix(MSI Claw): Set the M-keys to macro mode - #807

Merged
pastaq merged 1 commit into
ShadowBlip:mainfrom
anaveto:fix/msi-claw-mkeys-macro
Nov 20, 2026
Merged

pastaq merged 1 commit into
ShadowBlip:mainfrom
anaveto:fix/msi-claw-mkeys-macro

Conversation

@anaveto

@anaveto anaveto commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Problem:

  • The udev rule maps M1 and M2 to KEY_RIGHTBRACE and KEY_LEFTBRACE, but does not set mkeys_function.
  • On a Claw 8 EX AI+ (MS-1T91, controller firmware 4.19, kernel 7.3.3-ogc1.1.fc45), the firmware reports disabled in xinput mode. Then M1 and M2 send no keys, and a held M-key stops the other inputs.
  • A View+LB hold also makes the firmware change the M-key function: one change each second, between macro and disabled (unsolicited GAMEPAD_MODE_ACK reports on the config interface).

Change:

  • The rule sets mkeys_function to macro together with the key mappings. Thus, M1 and M2 send the keys that the device profiles expect.

Test results: Claw 8 EX AI+, InputPlumber 0.84.0, the rule file of this PR installed as /etc/udev/rules.d/99-inputplumber-device-setup.rules, with no other M-key rule.

  • mkeys_function set to disabled, then a udev change, add and bind event: each event set macro again.
  • M1 and M2, pressed on the device: M1 sent KEY_RIGHTBRACE (usage 0x30) and M2 sent KEY_LEFTBRACE (usage 0x2f) in keyboard reports on interface 2 of the controller (hidraw2). mkeys_function stayed macro.

Assisted-by: LLM

The udev rule maps M1/M2 to KEY_RIGHTBRACE/KEY_LEFTBRACE but never sets
mkeys_function. On a Claw 8 EX AI+ (firmware 4.19, kernel 7.3.3-ogc1)
the firmware reports "disabled" in xinput mode: M1/M2 then send
nothing, and holding one stalls the other inputs. A View+LB press also
made the firmware switch the M-key function by itself, between macro
and disabled once a second for several seconds. Setting macro with the
key mappings makes M1/M2 send the keys the profile expects.

Assisted-by: LLM
@anaveto
anaveto marked this pull request as ready for review November 14, 2026 18:30
@pastaq
pastaq merged commit 1ad9861 into ShadowBlip:main Nov 20, 2026
3 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.85.0 🎉

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants