From 67dcc5363638b69cb5d2e08c143b40fcd89843c4 Mon Sep 17 00:00:00 2001 From: honjow Date: Mon, 27 Jan 2025 13:15:00 +0800 Subject: [PATCH] Add support MSI Claw8 --- src/hhd/device/generic/const.py | 9 +++++++++ src/hhd/plugins/powerbutton/const.py | 6 ++++++ usr/lib/udev/hwdb.d/83-hhd.hwdb | 3 ++- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/hhd/device/generic/const.py b/src/hhd/device/generic/const.py index 32f835d4..3250b3e9 100644 --- a/src/hhd/device/generic/const.py +++ b/src/hhd/device/generic/const.py @@ -175,6 +175,15 @@ "type": "claw", "display_gyro": False, }, + # MSI Claw 8 + "Claw 8 AI+ A2VM": { + "name": "MSI Claw 8", + "extra_buttons": "none", + "btn_mapping": MSI_CLAW_MAPPINGS, + "claw": True, + "type": "claw", + "display_gyro": False, + }, # TECNO "Pocket Go": { "name": "TECNO (Displayless)", diff --git a/src/hhd/plugins/powerbutton/const.py b/src/hhd/plugins/powerbutton/const.py index 24a15c72..38f13483 100644 --- a/src/hhd/plugins/powerbutton/const.py +++ b/src/hhd/plugins/powerbutton/const.py @@ -70,6 +70,12 @@ class PowerButtonConfig(NamedTuple): "Pocket Go", type="only_press", ), + PBC( + "MSI Claw 8", + "Claw 8 AI+ A2VM", + type="only_press", + phys=["LNXPWRBN"], + ), ] diff --git a/usr/lib/udev/hwdb.d/83-hhd.hwdb b/usr/lib/udev/hwdb.d/83-hhd.hwdb index edabf65f..491d8d3e 100644 --- a/usr/lib/udev/hwdb.d/83-hhd.hwdb +++ b/usr/lib/udev/hwdb.d/83-hhd.hwdb @@ -19,10 +19,11 @@ evdev:name:AT Translated Set 2 keyboard:dmi:*:svnOrangePi:pnNEO-01:* KEYBOARD_KEY_66=f15 KEYBOARD_KEY_67=f16 -# MSI Claw +# MSI Claw, MSI Claw 8 # From systemd / by ChimeraOS team # Systemd will have it by default in the future. Until then, have it here. # From then on, have it as a reference. evdev:name:AT Translated Set 2 keyboard:dmi:*:svnMicro-StarInternationalCo.,Ltd.:pnClawA1M:* +evdev:name:AT Translated Set 2 keyboard:dmi:*:svnMicro-StarInternationalCo.,Ltd.:pnClaw8AI+A2VM:* KEYBOARD_KEY_b9=f15 # Right Face Button KEYBOARD_KEY_ba=f16 # Left Face Button \ No newline at end of file