Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/hhd/device/generic/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
6 changes: 6 additions & 0 deletions src/hhd/plugins/powerbutton/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
),
]


Expand Down
3 changes: 2 additions & 1 deletion usr/lib/udev/hwdb.d/83-hhd.hwdb
Original file line number Diff line number Diff line change
Expand Up @@ -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:*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure this works for the previous one too? Can you try swapping them around real quick?

KEYBOARD_KEY_b9=f15 # Right Face Button
KEYBOARD_KEY_ba=f16 # Left Face Button