Keyboard lag, but only on certain keys

Hi. I’m using a Dell XPS 9570 running Gnome 40, and I’ve been experiencing an issue where the backtick (`), F1, and F2 keys are often unresponsive. I either have to press them several times or hold them down in order to get the keypress to register at all. However, I don’t think that this is an issue with the keyboard itself, because I don’t see this issue when I boot into Windows. Any idea what might be wrong with it?

Depends which keyboard layout you’re using. Which one did you set up?

The F keys might be linked to Gnome things, maybe? (Like Help)

I’m using the standard United States English keyboard layout. When I go into the keyboard combinations settings page, nothing is linked to any of these keys.

The lag also happens when I’m trying to use the Fn-key functionality; for example Fn + F2 = Volume Down, and it doesn’t work unless I spam it or hold it down, but Fn + F3 = Volume Up works fine. What’s even weirder is, once I get one of the keys to work once (by holding it down) then everything works normally for a while.

I’m still having this problem, please help.

The problem doesn’t appear on Windows or when using a live Linux USB, so I don’t think it’s a problem with my hardware. I don’t see any error messages in journalctl, and the keys don’t show up when I test using xev, so I don’t think that’s the problem either.

inxi -Fxxxz:

System:    Kernel: 5.10.53-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 Desktop: GNOME 40.3 tk: GTK 3.24.30 
           wm: gnome-shell dm: GDM 40.1 Distro: Manjaro Linux base: Arch Linux 
Machine:   Type: Laptop System: Dell product: XPS 15 9570 v: N/A serial: <filter> Chassis: type: 10 serial: <filter> 
           Mobo: Dell model: 02MJVY v: A00 serial: <filter> UEFI: Dell v: 1.19.0 date: 03/16/2021 
Battery:   ID-1: BAT0 charge: 51.1 Wh (91.2%) condition: 56.0/97.0 Wh (57.8%) volts: 12.2 min: 11.4 
           model: LGC-LGC8.33 DELL 5XJ28 type: Li-ion serial: <filter> status: Discharging 
CPU:       Info: 6-Core model: Intel Core i7-8750H bits: 64 type: MT MCP arch: Kaby Lake note: check rev: A cache: L2: 9 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 52815 
           Speed: 800 MHz min/max: 800/4100 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 5: 800 6: 801 7: 800 8: 801 
           9: 800 10: 800 11: 800 12: 800 
Graphics:  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: Dell driver: i915 v: kernel bus-ID: 00:02.0 
           chip-ID: 8086:3e9b class-ID: 0300 
           Device-2: NVIDIA GP107M [GeForce GTX 1050 Ti Mobile] driver: nvidia v: 470.57.02 bus-ID: 01:00.0 chip-ID: 10de:1c8c 
           class-ID: 0302 
           Device-3: Microdia Integrated_Webcam_HD type: USB driver: uvcvideo bus-ID: 1-12:4 chip-ID: 0c45:671d class-ID: 0e02 
           Display: x11 server: 1.20.11 compositor: gnome-shell driver: loaded: modesetting,nvidia 
           alternate: fbdev,intel,nouveau,nv,vesa resolution: <missing: xdpyinfo> 
           OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 21.1.5 direct render: Yes 
Audio:     Device-1: Intel Cannon Lake PCH cAVS vendor: Dell driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 
           chip-ID: 8086:a348 class-ID: 0403 
           Sound Server-1: ALSA v: k5.10.53-1-MANJARO running: yes 
           Sound Server-2: JACK v: 1.9.19 running: no 
           Sound Server-3: PulseAudio v: 14.2 running: yes 
           Sound Server-4: PipeWire v: 0.3.32 running: no 
Network:   Device-1: Intel Wireless-AC 9260 driver: iwlwifi v: kernel port: 3000 bus-ID: 3b:00.0 chip-ID: 8086:2526 
           class-ID: 0280 
           IF: wlp59s0 state: up mac: <filter> 
Bluetooth: Device-1: Intel Wireless-AC 9260 Bluetooth Adapter type: USB driver: btusb v: 0.8 bus-ID: 1-4:2 chip-ID: 8087:0025 
           class-ID: e001 
           Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends 
Drives:    Local Storage: total: 476.94 GiB used: 73.68 GiB (15.4%) 
           ID-1: /dev/nvme0n1 vendor: Toshiba model: KXG50ZNV512G NVMe 512GB size: 476.94 GiB speed: 31.6 Gb/s lanes: 4 
           type: SSD serial: <filter> rev: AADA4106 temp: 39.9 C scheme: GPT 
Partition: ID-1: / size: 210.41 GiB used: 73.53 GiB (34.9%) fs: ext4 dev: /dev/dm-0 
           mapped: luks-a1d18408-64c4-47b4-8e2b-8a9c01ab204a 
           ID-2: /boot/efi size: 500 MiB used: 147.5 MiB (29.5%) fs: vfat dev: /dev/nvme0n1p1 
Swap:      ID-1: swap-1 type: partition size: 7.7 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/nvme0n1p6 
Sensors:   System Temperatures: cpu: 55.0 C mobo: N/A 
           Fan Speeds (RPM): cpu: 2501 fan-2: 2512 
Info:      Processes: 317 Uptime: 5m wakeups: 1529 Memory: 15.26 GiB used: 2.16 GiB (14.1%) Init: systemd v: 248 Compilers: 
           gcc: 11.1.0 clang: 12.0.1 Packages: pacman: 1348 Shell: Zsh v: 5.8 running-in: kitty inxi: 3.3.06 

It often takes several seconds of pressing the key before I can type “`”, and I usually have to give up on trying to type a tilde.