Please Don't Ask Me To Ignore This, It's This That Made Me Try Linux (HP ZBook X2 G4 Driver Help?)

Straight to the point first. I have an HP Zbook X2 G4 Detachable Workstation with an Nvidia Quadro M620, an i7 8550U, 32 GB DDR4, and a 1tb NVME. This is my favorite laptop and I wish it wasn’t.

I have been a complete failure at getting the HP quick keys ( WACOM control center-controlled shortcut keys on the bezel) and hardware volume buttons to work. I am unable to get any signal from any of the shortcut keys unless I use windows and install one version of HPs software. I’ve tried NIXos, my preferred distribution, Fedora 42 and 43, Nobara, GLF-OS, different kernels, different kernel options, Kagi searches for any mention anywhere and I’m to the end of what I can learn and I just want to use my gd shortcut keys and use linux

Touch screen, gestures, pen input and everything else, chef’s kiss. no quick keys no matter what though.

This is the last thing tethering me to windows. I started the process of forcing myself to switch to Linux in May. I’ve had to actually use it for mission critical tasks and I’ve successfully used NixOS with the Zen kernel and used Davinci resolve studio on a Zbook Firefly G11. I only mention this to say I learned enough to follow intructions hopefully, and it has presented the opportunity to learn to install local llms, learn virtualization, get a little familiarity with the other package managers and develop some preferences.

That being said, I am a video editor/ filmmaker and I just like to draw on this zbook to wind down , I need the buttons to work or It’s constant reminder that I’m not completely out. I can’t let it go and I don’t think the best step forward is for me to go on a driver developing journey on a whim.

This has been the only mention I could find anywhere

HP wmi drivers don’t make them function

No version of Libinput or Libwacom or Digimend or opentablet worked

evtest looked promising but didn’t show any signal for anything (Event 20?)

X11 sessions make it look more like I’ll find the buttons and the configuration utility shows up for wacom tabs with buttons

Wayland Sessions or waylandx have no signs of the buttons

I’m not sure where in my journey i saw this, but it used the usb-hid driver by default, the hub shows up as attached to the screen (ATML1000:00 03EB:8A79)

When I look at any hardware utility they show up as HP Quick Keys and are unable to be mapped from the places if they are seen.
All I ask is that you please don’t tell me this is a waste of time cause all of this is a waste of time and it’s just a little telemetry I have to deal with to give up and use windows. Hopefully I’m missing something completely obvious because it’s clear I waited far too long to ask for help.

Sorry for the unhinged structure of this post people but I think I’m officially permastuck at dual boot for stupid annoying buttons i rarely use.

It sounds like you dual boot? Does everything work fine under Windows (just to exclude hardware issues)?

And did you try other distros? I don’t know NixOS, but it sounds more like an expert distro than one that “just works”.

I wonder if you might be able to adapt this for your needs. Looks like this is going to be a bit of a tough nut to crack, pretty rare laptop.

This might also be relevant for you

https://wiki.archlinux.org/title/Udev

I’ve tried Fedora in a few different flavors as well. My introduction to linux in practice was running NixOs on my surface laptop studio. Luckily I started there, except for a little unraid. For the most part it’s worked perfectly out of the box and gotten better performance as I’ve learned how to do things. Flakes are still too abstract for me, but channels feels natural to me now. I’m back on Ubuntu Studio while I try to find solutions since I feel like it’s my best bet though.

This is awesome, I haven’t seen any of this yet. Thank you, this seems like I’m not at a dead end yet.

Hopefully you can figure this out with the “wakey” program. But generally edge cases like this are problematic in Linux because they are so non standard. They don’t work in Windows either without the special drivers, but then the companies don’t bother making those drivers for Linux. Occasionally you find a random person who happens to be a developers who happens to have a laptop or other device with the same hardware and they made a one off program to get it working for themselves that you can use

Do you have a sense of what how much of a side quest it would be to do it myself in the jankiest possible manner? I’m also open to finding something else in this category of laptop. Closest is the surface or the wacom companion, but this is perfect. I don’t understand how I’m seemingly its’ sole biographer haha

Cant really help with this, sorry. I do some programming, but not this type of programming. AFAIK, people with one off prog rams for getting hardware to work generally reverse engineer the drivers from Windows themselves or look up documentation on exposed values by the hardware and create a program that interfaces to those

My first go-to for unusual buttons not working is to run “xev” (I use X - if you’re using Wayland, you’ll probably want “wev”). Run it in a GUI terminal because you’ll want to see the output.

It’ll show every event the OS is seeing. Keyboard presses, mouse buttons, etc. It does also show window update stuff, so don’t freak out if you move the window around and it starts spewing out text lol

Given you’ve found a USB device for it though, I’d guess there’s a high chance it’s a custom HID thing and it won’t show up any events. But it’s worth trying the simpler things first.

UPDATE:

If anybody is interested, here’s what worked the best so far. It’s still not my permanent solution, but it’s progress.

I’m new to the jargon so read this a little charitably and I think it will convey where I’m at with it.

Apparently the generic USB driver is taking control of the shortcut buttons at boot. There is some sort of difference between Weyland and X11, but I’m not exactly sure what that is.

In the x11 session, I used QWEN and all your suggestions to figure out the game plan for what I need to do to get a permanent solution.

There are some “cat” commands (not exactly sure what exactly they do, I just asked for the ones I need to copy paste) ,that let me see the hex output of the buttons. That’s the only function that created a situation where pressing the buttons made the terminal show me an output.

The suggestion from Gemini was to map the hex outputs to F13 and beyond and it made me a Python script that kind of does it but I can tell that I really have only found where the light at the end of the tunnel is now.

I think the next step is to learn a little bit of python since it’s something I started doing a long time ago and put on the back burner.

After I guess learn a little about the cat commands so I can make my own script from that data.

That’s my plan for now, working on it a lot less now that I have other stuff going on but I’d appreciate some redirection If anyone see that I’m about to solve this the wrong way.