Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling of macro keys P1-P6 #18

Open
alexx7676 opened this issue Dec 22, 2021 · 1 comment
Open

Enabling of macro keys P1-P6 #18

alexx7676 opened this issue Dec 22, 2021 · 1 comment

Comments

@alexx7676
Copy link

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?

@xddxdd
Copy link

xddxdd commented Apr 3, 2022

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:

  1. 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.

  2. 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.

    1. 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.
    2. 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.
    3. If you just want to use them for shortcuts, this should be enough for you.
  3. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants