The keyboard behaves strangely

I don’t know exactly when it happened, but it seems to me that with kernel 6.11 the keyboard on my laptop (HP Elitebook 840 G10 Intel) is behaving strangely. After boot it works fine. However, when the laptop is idle or put to sleep, some keys no longer work after waking up. (tab, f6, m, v…). After a while of random pressing they start working, but they work unpredictably: on one press they sometimes repeat multiple times, sometimes not even once.
I’ve tried the I8042 parameters, but with dumbkbd the backspace doesn’t work, the others don’t improve the situation.

Before 6.10 kernel everything worked fine.

I reinstall Fedora 41, but still the problem persists.

External keyboard working fine.

However, I found that in rescue mode the problem goes away. I don’t know how rescue works, but the problem seems to be with some kernel module?

Could anyone direct me where to look for the problem?

Is the screen a touchscreen? I had a similar issue with a x360 laptop in the past. Please post the output of inxi -Fzxx inside a code block

``` Text inside three wrapper scripts each side like this ```

is not touchscreen

System:
  Kernel: 6.12.10-200.fc41.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 14.2.1
  Desktop: GNOME v: 47.3 tk: GTK v: 3.24.43 wm: gnome-shell dm: GDM
    Distro: Fedora Linux 41 (Workstation Edition)
Machine:
  Type: Laptop System: HP product: HP EliteBook 840 14 inch G10 Notebook PC
    v: SBKPF,SBKPFV2 serial: <superuser required> Chassis: type: 10
    serial: <superuser required>
  Mobo: HP model: 8B41 v: KBC Version 51.41.00 serial: <superuser required>
    part-nu: 818F5EA#BCM UEFI: HP v: 70 Ver. 01.07.00 date: 11/13/2024
Battery:
  ID-1: BAT0 charge: 42.5 Wh (92.0%) condition: 46.2/51.3 Wh (90.1%)
    volts: 12.0 min: 11.6 model: Hewlett-Packard Primary serial: <filter>
    status: discharging
CPU:
  Info: 12-core (4-mt/8-st) model: 13th Gen Intel Core i7-1360P bits: 64
    type: MST AMCP arch: Raptor Lake rev: 2 cache: L1: 1.1 MiB L2: 9 MiB
    L3: 18 MiB
  Speed (MHz): avg: 400 min/max: 400/5000:3700 cores: 1: 400 2: 400 3: 400
    4: 400 5: 400 6: 400 7: 400 8: 400 9: 400 10: 400 11: 400 12: 400 13: 400
    14: 400 15: 400 16: 400 bogomips: 83558
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel Raptor Lake-P [UHD Graphics] vendor: Hewlett-Packard
    driver: i915 v: kernel arch: Xe ports: active: eDP-1 empty: DP-1, DP-2,
    DP-3, DP-4, HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:a720
  Device-2: Quanta HP 5MP Camera driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 3-1:2 chip-ID: 0408:545f
  Display: wayland server: Xwayland v: 24.1.4 compositor: gnome-shell
    driver: gpu: i915 display-ID: 0
  Monitor-1: eDP-1 model: AU Optronics 0x2bab res: 1920x1200 dpi: 162
    diag: 355mm (14")
  API: OpenGL v: 4.6 vendor: intel mesa v: 24.3.3 glx-v: 1.4 es-v: 3.2
    direct-render: yes renderer: Mesa Intel Graphics (RPL-P)
    device-ID: 8086:a720 display-ID: :0.0
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
  Info: Tools: api: glxinfo x11: xdriinfo, xdpyinfo, xprop, xrandr
Audio:
  Device-1: Intel Raptor Lake-P/U/H cAVS vendor: Hewlett-Packard
    driver: sof-audio-pci-intel-tgl bus-ID: 00:1f.3 chip-ID: 8086:51ca
  API: ALSA v: k6.12.10-200.fc41.x86_64 status: kernel-api
  Server-1: JACK v: 1.9.22 status: off
  Server-2: PipeWire v: 1.2.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
Network:
  Device-1: Intel Raptor Lake PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:51f1
  IF: wlp0s20f3 state: up mac: <filter>
  IF-ID-1: wwan0 state: down mac: N/A
Bluetooth:
  Device-1: Intel AX211 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 bus-ID: 3-10:4 chip-ID: 8087:0033
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.3
    lmp-v: 12
Drives:
  Local Storage: total: 476.94 GiB used: 39.91 GiB (8.4%)
  ID-1: /dev/nvme0n1 vendor: Western Digital model: WD PC SN740
    SDDPNQD-512G-1006 size: 476.94 GiB speed: 63.2 Gb/s lanes: 4
    serial: <filter> temp: 34.9 C
Partition:
  ID-1: / size: 475.34 GiB used: 39.59 GiB (8.3%) fs: btrfs dev: /dev/dm-0
    mapped: luks-92af905e-ad0c-4655-bf0e-0593f36d87ad
  ID-2: /boot size: 973.4 MiB used: 307.8 MiB (31.6%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 19.3 MiB (3.2%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 475.34 GiB used: 39.59 GiB (8.3%) fs: btrfs
    dev: /dev/dm-0 mapped: luks-92af905e-ad0c-4655-bf0e-0593f36d87ad
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 42.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 16 GiB note: est. available: 15.26 GiB used: 5.56 GiB (36.4%)
  Processes: 1197 Power: uptime: 18m wakeups: 0 Init: systemd v: 256
    target: graphical (5) default: graphical
  Packages: pm: rpm pkgs: N/A note: see --rpm pm: flatpak pkgs: 40
    Compilers: N/A Shell: Bash v: 5.2.32 running-in: ptyxis-agent inxi: 3.3.37

My mom has one of these laptops :sweat_smile:. It seems that there’s something strange going on, it might be directly related to Linux, but it might also be hardware related. I know that in your case there’s no touchscreen, but in my case, the hardware automatically changed to “Tablet Mode” with a mechanism that got faulty over time.

I know it’s frustating to deal with hardware troubleshooting, sorry if I can’t be of much help.

1 Like

I’ve also tried the 6.6 kernel, but it looks like a hw problem. So we will try the service