Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hp_wmi, setkeycodes for mic-mute on HP ZBook
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1771
Location: PB, Germany

PostPosted: Tue Apr 19, 2022 12:30 pm    Post subject: hp_wmi, setkeycodes for mic-mute on HP ZBook Reply with quote

Hi, how do I get the mic-mute button working on the HP Zbook G8?
I found https://gist.github.com/HappyCodingRobot/df400e16d0615e98e2c1eee738925d0b which doesn't work for me.
In the syslog I see:
Code:
[kernel] [24809.757040] atkbd serio0: Unknown key pressed (raw set 2, code 0xf6 on isa0060/serio0).
[kernel] [24809.757043] atkbd serio0: Use 'setkeycodes e076 <keycode>' to make it known.
[kernel] [24809.822499] atkbd serio0: Unknown key released (raw set 2, code 0xf6 on isa0060/serio0).
[kernel] [24809.822502] atkbd serio0: Use 'setkeycodes e076 <keycode>' to make it known.

To which keycode could I set that? Maybe some of the unused F13-F24?
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770


Last edited by Massimo B. on Thu May 05, 2022 7:32 am; edited 1 time in total
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1771
Location: PB, Germany

PostPosted: Thu May 05, 2022 7:16 am    Post subject: Reply with quote

I tried as root
Code:
# setkeycodes e076 0xf6
or
Code:
# setkeycodes e076 120
which makes the kernel stop logging anything on keypress, but xfce4-keyboard-settings still does not recognize that keypress.
Actually the system settings should already match with my hardware, as the mic-mute button is shared with F8 here:
Code:
sed -n '633,636p' /lib/udev/hwdb.d/60-keyboard.hwdb
# HP ZBook
evdev:atkbd:dmi:bvn*:bvr*:bd*:svnHewlett-Packard*:pnHPZBook*:*
evdev:atkbd:dmi:bvn*:bvr*:bd*:svnHP*:pnHPZBook*:*
 KEYBOARD_KEY_81=f20                                    # Fn+F8; Microphone mute button, should be micmute

Issues with the hp_wmi module?
Code:
# dmesg |grep -i wmi
[    1.572901] acpi PNP0C14:01: duplicate WMI GUID 05901221-D566-11D1-B2F0-00A0C9062910 (first instance was on PNP0C14:00)
[    1.574528] acpi PNP0C14:02: duplicate WMI GUID 05901221-D566-11D1-B2F0-00A0C9062910 (first instance was on PNP0C14:00)
[   10.253404] hp_wmi: query 0x4 returned error 0x5
[   10.254575] input: HP WMI hotkeys as /devices/virtual/input/input15

_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum