ASUS-ZenBook-Pro-Duo-UX581GV icon indicating copy to clipboard operation
ASUS-ZenBook-Pro-Duo-UX581GV copied to clipboard

get special Keys to work

Open s-light opened this issue 5 years ago • 5 comments

there are three special keys above the touchpad - currently i don't know how to check for them.

s-light avatar Dec 07 '19 17:12 s-light

Just checked wether the OS is actually able to read out the keys;

xev does output the keypress events for the keys above the numpad, but all three keys return the same KeyCode (248) so there is no way to know which of the three is pressed currently.

dmesg does output the following log when you press the keys:

[  587.600218] asus_wmi: Unknown key 9d pressed
[  588.060085] asus_wmi: Unknown key 9c pressed
[  589.400182] asus_wmi: Unknown key 6a pressed

Not sure what the F12 function is supposed to do, but it also returns an unkown key (86) message.

We might have to look into the following kernel module to get these to work https://github.com/torvalds/linux/blob/master/drivers/platform/x86/asus-nb-wmi.c

RobinVanCauter avatar Dec 20 '19 22:12 RobinVanCauter

just saw that you @Plippo added suport for the special keys - big thanks! currently available with: https://github.com/Plippo/asus-wmi-screenpad

i tested this with the toggle window between screens key. it is working nicely in kde: image

only the 'power mode / fan' button seems to be not working yet. (and the labels are a little bit of - but that is not a problem for me.. )

s-light avatar May 30 '20 21:05 s-light

only the 'power mode / fan' button seems to be not working yet. (and the labels are a little bit of - but that is not a problem for me.. )

Ah well, didn't know the 15 inch model has one button more, on my 14 inch model I only got the toggle between screens and turn screen off button. From the output posted above, I suppose that 9D is the power mode key - I'll add that to the kernel module.

The problem with the key labels is that there is only a fixed set available and we have to use what we got... I'll look if I find something for the fan mode, but if not, I'll probably go with F15 or something like that.

Plippo avatar May 31 '20 09:05 Plippo

I added the new key and renumbered the other keys to make it more logical, so if you install the new kernel module, you probably have to reassign your key bindings. The assignment is now:

  • "A" key (Fn+F12): F13
  • power mode/fan: F14
  • toggle window between screens: F15
  • toggle screenpad on/off: F16 That's how they're named in the kernel, please note that your Desktop Environment probably uses other names for the keys (e.g. in Gnome, F13 is Tools, F15 is called Launch6 and F16 is called Launch7. Don't know why...)

Plippo avatar May 31 '20 10:05 Plippo

that was fast ;-) thanks! working fine!!

so i think this issue is done :-) → @Plippo do you know if / how to merge this upstream? (i mean does it make sens to leave this open here untill your fixes are merged?) Thanks for your Work!!!

s-light avatar May 31 '20 20:05 s-light