hp-omen-linux-module
hp-omen-linux-module copied to clipboard
Enabling of macro keys P1-P6
I have a notebook HP Omen 17-cb1055cl. It has 6 macro keys P1-P6. Is there exists any possibility to enable these keys in linux?
I've done some reverse engineering on the OMEN Command Center app, and made these keys work on my system (OMEN 17t-ck000).
My working code is in https://github.com/xddxdd/hp-omen-linux-module, but I don't plan to send a PR until I make it more usable for regular users.
Notes:
-
HP has several revisions of macro key hardware, so this may not work for you, but it shouldn't do any harm to your hardware anyway.
-
Right now my module maps P1-P6 to numpad 1-6, Fn+P1-P4 to numpad 7,8,9,0, Fn+P5 to numpad minus, and Fn+P6 to numpad plus.
- I can't map them to non-standard keys (like F13-F24, or other advanced media keys supported by Linux), because the hardware doesn't support them.
- My laptop doesn't have a numpad, so there's no interference for me. But if yours do, then the keys will conflict, and because of (i) I can't do anything about it.
- If you just want to use them for shortcuts, this should be enough for you.
-
It's possible to send a series of keystrokes on keypress (just like what OMEN Command Center does), but currently this involves directly editing the source code of the module.