Repository navigation
fix(MSI Claw): Set the M-keys to macro mode - #807
Merged
Merged
Conversation
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
marked this pull request as ready for review
November 14, 2026 18:30
pastaq
approved these changes
Nov 14, 2026
Contributor
|
🎉 This PR is included in version 0.85.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem:
KEY_RIGHTBRACEandKEY_LEFTBRACE, but does not setmkeys_function.disabledin xinput mode. Then M1 and M2 send no keys, and a held M-key stops the other inputs.macroanddisabled(unsolicitedGAMEPAD_MODE_ACKreports on the config interface).Change:
mkeys_functiontomacrotogether 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_functionset todisabled, then a udevchange,addandbindevent: each event setmacroagain.KEY_RIGHTBRACE(usage 0x30) and M2 sentKEY_LEFTBRACE(usage 0x2f) in keyboard reports on interface 2 of the controller (hidraw2).mkeys_functionstayedmacro.Assisted-by: LLM