How to map fn+F8 to F20 key so that mic muting works (hp envy x360)?

I have an HP Envy x360 (from 2020). My mic mute button does not work. From a previous post I understand that I have to map this key combination to F20 as this is (I guess) the key that is supposed to mute my mic.
Here is the previous post where I already tried some things:

Here is my inxi:

inxi -Fxxx                                                                                                                                                                                         ξ‚² βœ” 
System:    Host: manjaro Kernel: 5.10.2-2-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 Desktop: GNOME 3.38.2 
           tk: GTK 3.24.24 wm: gnome-shell dm: GDM 3.38.2.1 Distro: Manjaro Linux 
Machine:   Type: Convertible System: HP product: HP ENVY x360 Convertible 13-ay0xxx v: Type1ProductConfigId 
           serial: <superuser required> Chassis: type: 31 serial: <superuser required> 
           Mobo: HP model: 876E v: 12.38 serial: <superuser required> UEFI: Insyde v: F.13 date: 09/09/2020 
Battery:   ID-1: BAT1 charge: 11.4 Wh condition: 46.8/51.0 Wh (92%) volts: 11.1/11.6 model: Hewlett-Packard PABAS0241231 
           type: Li-ion serial: 41167 status: Discharging 
           Device-1: hid-0018:04F3:2AF4.0002-battery model: ELAN2514:00 04F3:2AF4 serial: N/A charge: N/A status: N/A 
CPU:       Info: 8-Core model: AMD Ryzen 7 4700U with Radeon Graphics bits: 64 type: MCP arch: Zen 2 rev: 1 L2 cache: 4 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 31948 
           Speed: 1397 MHz min/max: 1400/2000 MHz boost: enabled Core speeds (MHz): 1: 1397 2: 1396 3: 1397 4: 1397 5: 1397 
           6: 1398 7: 1397 8: 1397 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Renoir vendor: Hewlett-Packard driver: amdgpu v: kernel bus ID: 04:00.0 
           chip ID: 1002:1636 
           Display: x11 server: X.org 1.20.10 compositor: gnome-shell driver: amdgpu,ati unloaded: modesetting 
           alternate: fbdev,vesa resolution: <missing: xdpyinfo> 
           OpenGL: renderer: AMD RENOIR (DRM 3.40.0 5.10.2-2-MANJARO LLVM 11.0.0) v: 4.6 Mesa 20.3.1 direct render: Yes 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus ID: 04:00.1 
           chip ID: 1002:1637 
           Device-2: Advanced Micro Devices [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor vendor: Hewlett-Packard 
           driver: snd_rn_pci_acp3x v: kernel bus ID: 04:00.5 chip ID: 1022:15e2 
           Device-3: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel 
           bus ID: 04:00.6 chip ID: 1022:15e3 
           Sound Server: ALSA v: k5.10.2-2-MANJARO 
Network:   Device-1: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter vendor: Hewlett-Packard driver: rtw_8822ce 
           v: N/A port: 2000 bus ID: 01:00.0 chip ID: 10ec:c822 
           IF: wlo1 state: up mac: d8:c0:a6:31:4a:c7 
Drives:    Local Storage: total: 476.94 GiB used: 153.66 GiB (32.2%) 
           ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN520 SDAPNUW-512G-1006 size: 476.94 GiB speed: 15.8 Gb/s 
           lanes: 2 serial: 20084C803847 rev: 20120006 temp: 35.9 C 
Partition: ID-1: / size: 451.82 GiB used: 153.65 GiB (34.0%) fs: ext4 dev: /dev/nvme0n1p2 
           ID-2: /boot/efi size: 299.4 MiB used: 312 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 
Swap:      ID-1: swap-1 type: partition size: 16.6 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/nvme0n1p3 
Sensors:   System Temperatures: cpu: 41.8 C mobo: 20.0 C gpu: amdgpu temp: 40.0 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 312 Uptime: 28m wakeups: 7203 Memory: 15.09 GiB used: 3.84 GiB (25.4%) Init: systemd v: 247 Compilers: 
           gcc: 10.2.0 clang: 11.0.0 Packages: 1712 pacman: 1695 flatpak: 6 snap: 11 Shell: Zsh v: 5.8 
           running in: gnome-terminal inxi: 3.2.01 
1 Like

What does Fn+F8 do now? And please post the output of cat /proc/bus/input/devices.

1 Like

Now It does nothing special with fn and again nothing without fn.

Output:

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
U: Uniq=
H: Handlers=kbd event0 
B: PROP=0
B: EV=3
B: KEY=10000000000000 0

I: Bus=0019 Vendor=0000 Product=0005 Version=0000
N: Name="Lid Switch"
P: Phys=PNP0C0D/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input1
U: Uniq=
H: Handlers=event1 
B: PROP=0
B: EV=21
B: SW=1

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
U: Uniq=
H: Handlers=kbd event2 
B: PROP=0
B: EV=3
B: KEY=10000000000000 0

I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input3
U: Uniq=
H: Handlers=sysrq kbd leds event3 
B: PROP=0
B: EV=120013
B: KEY=20000 20 0 0 1500f02100000 3803078f900d401 feffffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7

I: Bus=0019 Vendor=0000 Product=0006 Version=0000
N: Name="Video Bus"
P: Phys=LNXVIDEO/video/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:0c/LNXVIDEO:00/input/input4
U: Uniq=
H: Handlers=kbd event4 
B: PROP=0
B: EV=3
B: KEY=3e000b00000000 0 0 0

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HD-Audio Generic HDMI/DP,pcm=3"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:08.1/0000:04:00.1/sound/card0/input14
U: Uniq=
H: Handlers=event11 
B: PROP=0
B: EV=21
B: SW=140

I: Bus=0010 Vendor=001f Product=0001 Version=0100
N: Name="PC Speaker"
P: Phys=isa0061/input0
S: Sysfs=/devices/platform/pcspkr/input/input15
U: Uniq=
H: Handlers=kbd event12 
B: PROP=0
B: EV=40001
B: SND=6

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HD-Audio Generic Mic"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:08.1/0000:04:00.6/sound/card1/input16
U: Uniq=
H: Handlers=event13 
B: PROP=0
B: EV=21
B: SW=10

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HD-Audio Generic Headphone"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:08.1/0000:04:00.6/sound/card1/input17
U: Uniq=
H: Handlers=event14 
B: PROP=0
B: EV=21
B: SW=4

I: Bus=0018 Vendor=06cb Product=ce14 Version=0100
N: Name="SYNA32A0:00 06CB:CE14 Mouse"
P: Phys=i2c-SYNA32A0:00
S: Sysfs=/devices/platform/AMDI0010:03/i2c-1/i2c-SYNA32A0:00/0018:06CB:CE14.0001/input/input19
U: Uniq=
H: Handlers=event5 mouse0 
B: PROP=0
B: EV=17
B: KEY=30000 0 0 0 0
B: REL=3
B: MSC=10

I: Bus=0018 Vendor=06cb Product=ce14 Version=0100
N: Name="SYNA32A0:00 06CB:CE14 Touchpad"
P: Phys=i2c-SYNA32A0:00
S: Sysfs=/devices/platform/AMDI0010:03/i2c-1/i2c-SYNA32A0:00/0018:06CB:CE14.0001/input/input20
U: Uniq=
H: Handlers=event6 mouse1 
B: PROP=5
B: EV=1b
B: KEY=e520 10000 0 0 0 0
B: ABS=2e0800000000003
B: MSC=20

I: Bus=0018 Vendor=04f3 Product=2af4 Version=0100
N: Name="ELAN2514:00 04F3:2AF4"
P: Phys=i2c-ELAN2514:00
S: Sysfs=/devices/platform/AMDI0010:02/i2c-0/i2c-ELAN2514:00/0018:04F3:2AF4.0002/input/input22
U: Uniq=
H: Handlers=event7 mouse2 
B: PROP=2
B: EV=1b
B: KEY=400 0 0 0 0 0
B: ABS=3273800000000003
B: MSC=20

I: Bus=0018 Vendor=04f3 Product=2af4 Version=0100
N: Name="ELAN2514:00 04F3:2AF4 UNKNOWN"
P: Phys=i2c-ELAN2514:00
S: Sysfs=/devices/platform/AMDI0010:02/i2c-0/i2c-ELAN2514:00/0018:04F3:2AF4.0002/input/input23
U: Uniq=
H: Handlers=event8 
B: PROP=0
B: EV=9
B: ABS=10000000000

I: Bus=0018 Vendor=04f3 Product=2af4 Version=0100
N: Name="ELAN2514:00 04F3:2AF4 UNKNOWN"
P: Phys=i2c-ELAN2514:00
S: Sysfs=/devices/platform/AMDI0010:02/i2c-0/i2c-ELAN2514:00/0018:04F3:2AF4.0002/input/input24
U: Uniq=
H: Handlers=event9 
B: PROP=0
B: EV=100001

I: Bus=0018 Vendor=04f3 Product=2af4 Version=0100
N: Name="ELAN2514:00 04F3:2AF4"
P: Phys=i2c-ELAN2514:00
S: Sysfs=/devices/platform/AMDI0010:02/i2c-0/i2c-ELAN2514:00/0018:04F3:2AF4.0002/input/input25
U: Uniq=
H: Handlers=event10 mouse3 
B: PROP=2
B: EV=1b
B: KEY=c03 0 0 0 0 0
B: ABS=1000d000003
B: MSC=10

I: Bus=0019 Vendor=0000 Product=0000 Version=0000
N: Name="HP WMI hotkeys"
P: Phys=wmi/input0
S: Sysfs=/devices/virtual/input/input18
U: Uniq=
H: Handlers=kbd event15 
B: PROP=0
B: EV=33
B: KEY=4000000000 0 1000700000000 2102400 0 0
B: MSC=10
B: SW=22

Can you run sudo libinput debug-events --show-keycodes, and press F8 and then Fn+F8 and post the output?

1 Like

Here:

 event6   POINTER_MOTION   +13.670s	  0.68/  0.00 ( +1.00/ +0.00)
 event6   POINTER_MOTION   +13.964s	  0.40/  0.00 ( +1.00/ +0.00)
-event15  KEYBOARD_KEY     +16.791s	KEY_UNKNOWN (240) pressed
 event15  KEYBOARD_KEY     +16.791s	KEY_UNKNOWN (240) released
-event3   KEYBOARD_KEY     +18.123s	KEY_F8 (66) pressed
^[[19~ event3   KEYBOARD_KEY     +18.247s	KEY_F8 (66) released
 event3   KEYBOARD_KEY     +20.903s	KEY_LEFTCTRL (29) pressed
 event3   KEYBOARD_KEY     +22.335s	KEY_C (46) pressed
^C

But one thing I’m not certain of is when is fn pressed. My laptop doesn’t have a clear indicator for that. When I press F keys by default they are doing their special functions like changing brightness. So I guess fn is pressed all the time by defuatl and actually pressing the button turns it off
@pobrn

Also now that I look at it. It registers it as some unknown button:

 event15  KEYBOARD_KEY     +17.505s	KEY_UNKNOWN (240) pressed
 event15  KEYBOARD_KEY     +17.505s	KEY_UNKNOWN (240) released
 event15  KEYBOARD_KEY     +18.875s	KEY_UNKNOWN (240) pressed
 event15  KEYBOARD_KEY     +18.875s	KEY_UNKNOWN (240) released
-event3   KEYBOARD_KEY     +22.403s	KEY_LEFTCTRL (29) pressed
 event3   KEYBOARD_KEY     +22.606s	KEY_C (46) pressed
^C

Please post the output of sudo libinput list-devices and sudo dmesg | grep -i "unknown".

The first one:

sudo libinput list-devices                                                               ξ‚² βœ” 
[sudo] password for john: 
Device:           Power Button
Kernel:           /dev/input/event2
Group:            1
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Video Bus
Kernel:           /dev/input/event4
Group:            2
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Power Button
Kernel:           /dev/input/event0
Group:            3
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Lid Switch
Kernel:           /dev/input/event1
Group:            4
Seat:             seat0, default
Capabilities:     switch
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           ELAN2514:00 04F3:2AF4
Kernel:           /dev/input/event7
Group:            5
Seat:             seat0, default
Size:             284x172mm
Capabilities:     touch 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      identity matrix
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           ELAN2514:00 04F3:2AF4
Kernel:           /dev/input/event10
Group:            5
Seat:             seat0, default
Size:             293x165mm
Capabilities:     tablet 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      identity matrix
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   none
Rotation:         n/a

Device:           SYNA32A0:00 06CB:CE14 Mouse
Kernel:           /dev/input/event5
Group:            6
Seat:             seat0, default
Capabilities:     pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   *button
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   flat *adaptive
Rotation:         n/a

Device:           SYNA32A0:00 06CB:CE14 Touchpad
Kernel:           /dev/input/event6
Group:            6
Seat:             seat0, default
Size:             106x56mm
Capabilities:     pointer gesture
Tap-to-click:     disabled
Tap-and-drag:     enabled
Tap drag lock:    disabled
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   *two-finger edge 
Click methods:    *button-areas clickfinger 
Disable-w-typing: enabled
Accel profiles:   flat *adaptive
Rotation:         n/a

Device:           AT Translated Set 2 keyboard
Kernel:           /dev/input/event3
Group:            7
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           HP WMI hotkeys
Kernel:           /dev/input/event15
Group:            8
Seat:             seat0, default
Capabilities:     keyboard switch
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

The second one:

sudo dmesg | grep -i "unknown"                                                       ξ‚² INT ✘ 
[sudo] password for john: 
[    4.338266] input: ELAN2514:00 04F3:2AF4 UNKNOWN as /devices/platform/AMDI0010:02/i2c-0/i2c-ELAN2514:00/0018:04F3:2AF4.0002/input/input23
[    4.338307] input: ELAN2514:00 04F3:2AF4 UNKNOWN as /devices/platform/AMDI0010:02/i2c-0/i2c-ELAN2514:00/0018:04F3:2AF4.0002/input/input24
[   34.789057] atkbd serio0: Unknown key pressed (translated set 2, code 0xab on isa0060/serio0).
[   34.794237] atkbd serio0: Unknown key released (translated set 2, code 0xab on isa0060/serio0).
[   35.663420] atkbd serio0: Unknown key pressed (translated set 2, code 0xab on isa0060/serio0).
[   35.668941] atkbd serio0: Unknown key released (translated set 2, code 0xab on isa0060/serio0).
[   35.953169] atkbd serio0: Unknown key pressed (translated set 2, code 0xab on isa0060/serio0).
[   35.959211] atkbd serio0: Unknown key released (translated set 2, code 0xab on isa0060/serio0).
[   36.019524] atkbd serio0: Unknown key pressed (translated set 2, code 0xab on isa0060/serio0).
[   36.025706] atkbd serio0: Unknown key released (translated set 2, code 0xab on isa0060/serio0).
[   36.085942] atkbd serio0: Unknown key pressed (translated set 2, code 0xab on isa0060/serio0).
[   36.093274] atkbd serio0: Unknown key released (translated set 2, code 0xab on isa0060/serio0).
[   36.152159] atkbd serio0: Unknown key pressed (translated set 2, code 0xab on isa0060/serio0).
[   36.160557] atkbd serio0: Unknown key released (translated set 2, code 0xab on isa0060/serio0).
[   36.217757] atkbd serio0: Unknown key pressed (translated set 2, code 0xab on isa0060/serio0).
[   36.221705] atkbd serio0: Unknown key released (translated set 2, code 0xab on isa0060/serio0).
[   36.284205] atkbd serio0: Unknown key pressed (translated set 2, code 0xab on isa0060/serio0).
[   36.290154] atkbd serio0: Unknown key released (translated set 2, code 0xab on isa0060/serio0).
[   36.353390] atkbd serio0: Unknown key pressed (translated set 2, code 0xab on isa0060/serio0).
[   36.363119] atkbd serio0: Unknown key released (translated set 2, code 0xab on isa0060/serio0).
[   36.416465] atkbd serio0: Unknown key pressed (translated set 2, code 0xab on isa0060/serio0).
[   36.420638] atkbd serio0: Unknown key released (translated set 2, code 0xab on isa0060/serio0).
[   36.482512] atkbd serio0: Unknown key pressed (translated set 2, code 0xab on isa0060/serio0).
[   36.487936] atkbd serio0: Unknown key released (translated set 2, code 0xab on isa0060/serio0).
[   36.549140] atkbd serio0: Unknown key pressed (translated set 2, code 0xab on isa0060/serio0).
[   36.557284] atkbd serio0: Unknown key released (translated set 2, code 0xab on isa0060/serio0).
[ 1359.502468] wlo1: deauthenticated from d4:f8:29:8d:01:e0 (Reason: 12=<unknown>)
[ 2150.741066] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2150.746686] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2150.971117] hp_wmi: Unknown key code - 0x270
[ 2633.703062] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2633.709304] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2633.934541] hp_wmi: Unknown key code - 0x270
[ 2643.007029] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2643.010176] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2643.237757] hp_wmi: Unknown key code - 0x270
[ 2650.264222] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2650.269476] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2650.494332] hp_wmi: Unknown key code - 0x270
[ 2794.256179] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2794.263178] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2794.484342] hp_wmi: Unknown key code - 0x270
[ 2797.278582] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2797.284187] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2797.507653] hp_wmi: Unknown key code - 0x270
[ 2799.115161] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2799.120857] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2799.344360] hp_wmi: Unknown key code - 0x270
[ 2800.326728] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2800.333170] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2800.557458] hp_wmi: Unknown key code - 0x270
[ 2800.814376] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2800.821784] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2801.044103] hp_wmi: Unknown key code - 0x270
[ 2801.188900] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2801.195218] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2801.420815] hp_wmi: Unknown key code - 0x270
[ 2801.500616] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2801.505685] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2801.731031] hp_wmi: Unknown key code - 0x270
[ 2801.803792] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2801.809763] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2802.034081] hp_wmi: Unknown key code - 0x270
[ 2802.079104] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2802.084662] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2802.304364] hp_wmi: Unknown key code - 0x270
[ 2802.360660] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2802.370142] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2802.591085] hp_wmi: Unknown key code - 0x270
[ 2802.617540] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2802.624298] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2802.847747] hp_wmi: Unknown key code - 0x270
[ 2805.842947] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2805.848715] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2805.970412] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2805.975335] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2806.060699] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2806.067456] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2806.074336] hp_wmi: Unknown key code - 0x270
[ 2806.168665] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2806.175894] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2806.283940] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2806.290246] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2806.301019] hp_wmi: Unknown key code - 0x270
[ 2806.527665] hp_wmi: Unknown key code - 0x270
[ 2806.754376] hp_wmi: Unknown key code - 0x270
[ 2806.981016] hp_wmi: Unknown key code - 0x270
[ 2808.121027] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2808.125917] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2808.351039] hp_wmi: Unknown key code - 0x270
[ 2863.685939] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2863.694142] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2863.906764] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2863.913793] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2863.914396] hp_wmi: Unknown key code - 0x270
[ 2864.137802] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2864.143593] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2864.144062] hp_wmi: Unknown key code - 0x270
[ 2864.371012] hp_wmi: Unknown key code - 0x270
[ 2864.935526] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2864.940423] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2865.046854] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2865.050766] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2865.167675] hp_wmi: Unknown key code - 0x270
[ 2865.249998] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2865.253608] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2865.372272] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[ 2865.376750] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[ 2865.394359] hp_wmi: Unknown key code - 0x270
[ 2865.621099] hp_wmi: Unknown key code - 0x270
[ 2865.847682] hp_wmi: Unknown key code - 0x270

Please start sudo dmesg -w, then press F8, note if anything is printed, then press Fn+F8, and note again what is printed.

Does the β€œatkbd” message appear when you press F8, and when you press Fn+F8? Does the β€œhp_wmi” message appear when you press F8, and when you press Fn+F8?

1 Like

When I pressed F8 alone only ^[[19~ appeared. When I pressed Fn+F8 this:

[   93.721842] atkbd serio0: Unknown key pressed (translated set 2, code 0x82 on isa0060/serio0).
[   93.721847] atkbd serio0: Use 'setkeycodes e002 <keycode>' to make it known.
[   93.729401] atkbd serio0: Unknown key released (translated set 2, code 0x82 on isa0060/serio0).
[   93.729408] atkbd serio0: Use 'setkeycodes e002 <keycode>' to make it known.
[   93.951526] hp_wmi: Unknown key code - 0x270

Can you run sudo setkeycodes e002 190 and see what happens if you press Fn+F8?

It didnt make the button mute my mic…now when I press F8 it prints a tylda ~…

Start sudo libinput debug-events --show-keycodes, and press Fn+F8, what’s printed?

Fn+F8

-event15  KEYBOARD_KEY     +35.158s	KEY_UNKNOWN (240) pressed
 event15  KEYBOARD_KEY     +35.158s	KEY_UNKNOWN (240) released
-event3   KEYBOARD_KEY     +35.584s	KEY_F20 (190) pressed
 event3   KEYBOARD_KEY     +35.592s	KEY_F20 (190) released
-event15  KEYBOARD_KEY     +35.818s	KEY_UNKNOWN (240) pressed
 event15  KEYBOARD_KEY     +35.818s	KEY_UNKNOWN (240) released

F8:

^[[19~ event3   KEYBOARD_KEY     +36.972s	KEY_F8 (66) released
 event3   KEYBOARD_KEY     +37.165s	KEY_F8 (66) pressed
^[[19~ event3   KEYBOARD_KEY     +37.256s	KEY_F8 (66) released
 event3   KEYBOARD_KEY     +38.784s	KEY_F8 (66) pressed
^[[19~ event3   KEYBOARD_KEY     +38.861s	KEY_F8 (66) released
 event3   KEYBOARD_KEY     +41.230s	KEY_LEFTCTRL (29) pressed
 event3   KEYBOARD_KEY     +41.438s	KEY_C (46) pressed
^C

Note that I have to press fn to use normal F8. Because its β€œon” all the time on my laptop.

What if you add KEYBOARD_KEY_e002=f20 to your keyboard using hwdb? Does that make a difference?

How do I do that?
@pobrn

Can you post the output of cat /sys/class/input/input3/modalias?

cat /sys/class/input/input3/modalias                          ξ‚² 1 ✘ 
───────┬────────────────────────────────────────────────────────────────────────
       β”‚ File: /sys/class/input/input3/modalias
───────┼────────────────────────────────────────────────────────────────────────
   1   β”‚ input:b0011v0001p0001eAB41-e0,1,4,11,14,k71,72,73,74,75,76,77,79,7A,7B,
       β”‚ 7C,7D,7E,7F,80,8A,8C,8E,8F,98,9B,9C,9D,9E,9F,A3,A4,A5,A6,AC,AD,B7,B8,B9
       β”‚ ,BE,D4,D9,E0,E1,E2,E3,EC,EE,F0,185,1D1,ram4,l0,1,2,sfw
───────┴────────────────────────────────────────────────────────────────────────

I have an alias for cat=bat so just ignore the rendering

You can create /etc/udev/hwdb.d/90-internal-keyboard.hwdb:

evdev:input:b0011v0001p0001eAB41*
 KEYBOARD_KEY_e002=f20

then run sudo systemd-hwdb update, and then you can reboot.

That also changed nothing :confused:

Run sudo libinput debug-events --show-keycodes again, and see what it prints when you try to trigger the mic mute.

1 Like