Keyboard stops working after resuming from suspend

Hello,

I am finally writing a post regarding this issue I’ve been having for quite some time now, and that usually ends up being a big hassle and productivity breaker.

Sometimes, in the few days following a system reboot, my laptop’s keyboard can stop working after resuming from suspension (I suspend my computer all the time, and seldom shutdown/reboot). I can’t even log-in to try to sort this out, and I usually just end up rebooting from that screen.
There are some interesting things about this issue though:

  • It seems the internal drivers do see the keyboard work, as its backlight turns back on if I click on any key, after it turns off by timeout.
  • If the problem does not occur within the first 2 or 3 days after the reboot, it will never happen again (I’ve went with a two month uptime with no issues).
  • Some function keys will work, like brightness and sleep, but others won’t, such as the volume controls.
  • Pressing keys on the external USB keyboard does not wake up the computer, but doing so on the built-in keyboard does, despite it not working properly afterwards.

I have searched on these forums and Arch’s, but no solution worked for me, ie. reloading the atkbd kernel module (couldn’t even do it since it said it was built-in).
I have also looked at the system journal and couldn’t find anything related to this, but I may have looked in the wrong place.

Does anyone have any idea of what might be wrong here? I’d really like to solve this rather annoying issue :slight_smile:


My laptop is an XMG Fusion 15, and I have the qc71_laptop platform driver installed (through DKMS).

sudo inxi -v7azy

System:
  Kernel: 5.10.117-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64
    root=UUID=b8e4ec89-794c-4ce3-b10a-0102bf25e5b4 rw apparmor=1
    security=apparmor udev.log_priority=3
  Console: pty pts/1 wm: kwin_x11 DM: SDDM Distro: Manjaro Linux
    base: Arch Linux
Machine:
  Type: Laptop System: SchenkerGmbH product: XMG FUSION 15 (XFU15L19)
    v: Late 2019 serial: <filter> Chassis: type: 10 v: 1.0 serial: N/A
  Mobo: Intel model: LAPQC71A v: K54899-304 serial: <filter> UEFI: Intel
    v: QCCFL357.0138.2021.0721.1705 date: 07/21/2021
Battery:
  ID-1: BAT0 charge: 74.8 Wh (80.0%) condition: 93.5/93.5 Wh (100.0%)
    volts: 12.4 min: 11.4 model: standard type: Li-ion serial: <filter>
    status: N/A
Memory:
  RAM: total: 15.48 GiB used: 5.64 GiB (36.5%)
  Array-1: capacity: 64 GiB slots: 4 EC: None max-module-size: 16 GiB
    note: est.
  Device-1: ChannelA-DIMM0 type: DDR4 detail: synchronous size: 8 GiB
    speed: 2667 MT/s volts: curr: 1.2 min: 1.2 max: 1.2 width (bits): data: 64
    total: 64 manufacturer: Corsair part-no: CM4X8GF2666C18S2 serial: N/A
  Device-2: ChannelA-DIMM1 type: no module installed
  Device-3: ChannelB-DIMM0 type: DDR4 detail: synchronous size: 8 GiB
    speed: 2667 MT/s volts: curr: 1.2 min: 1.2 max: 1.2 width (bits): data: 64
    total: 64 manufacturer: Corsair part-no: CM4X8GF2666C18S2 serial: N/A
  Device-4: ChannelB-DIMM1 type: no module installed
CPU:
  Info: model: Intel Core i7-9750H socket: BGA1440 (U3E1) note: check bits: 64
    type: MT MCP arch: Coffee Lake family: 6 model-id: 0x9E (158)
    stepping: 0xA (10) microcode: 0xF0
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB
    L3: 12 MiB desc: 1x12 MiB
  Speed (MHz): avg: 900 min/max: 800/4500 base/boost: 792/8300 scaling:
    driver: intel_pstate governor: powersave volts: 0.6 V ext-clock: 100 MHz
    cores: 1: 900 2: 900 3: 900 4: 900 5: 900 6: 900 7: 900 8: 900 9: 900
    10: 900 11: 900 12: 900 bogomips: 62431
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_perfmon art avx avx2 bmi1 bmi2 bts clflush clflushopt
    cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts
    epb ept ept_ad erms est f16c flexpriority flush_l1d fma fpu fsgsbase fxsr
    ht hwp hwp_act_window hwp_epp hwp_notify ibpb ibrs ida intel_pt invpcid
    invpcid_single lahf_lm lm mca mce md_clear mmx monitor movbe mpx msr mtrr
    nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln
    pni popcnt pse pse36 pti pts rdrand rdseed rdtscp rep_good sdbg sep smap
    smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow
    tsc tsc_adjust tsc_deadline_timer vme vmx vnmi vpid x2apic xgetbv1 xsave
    xsavec xsaveopt xsaves xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf
    mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl and seccomp
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: conditional, RSB filling
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] driver: i915 v: kernel
    ports: active: eDP-1 empty: none bus-ID: 00:02.0 chip-ID: 8086:3e9b
    class-ID: 0300
  Device-2: NVIDIA TU116M [GeForce GTX 1660 Ti Mobile] vendor: Intel
    driver: nvidia v: 510.73.05 alternate: nouveau,nvidia_drm non-free: 515.xx+
    status: current (as of 2022-05) arch: Turing pcie: gen: 1 speed: 2.5 GT/s
    lanes: 16 link-max: gen: 3 speed: 8 GT/s bus-ID: 01:00.0
    chip-ID: 10de:2191 class-ID: 0300
  Device-3: Chicony HD Webcam type: USB driver: uvcvideo bus-ID: 1-13:3
    chip-ID: 04f2:b68b class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.3 compositor: kwin_x11 driver: X:
    loaded: modesetting alternate: fbdev,vesa gpu: i915 display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 model: BOE Display 0x084d built: 2018 res: 1920x1080
    hz: 144 dpi: 142 gamma: 1.2 size: 344x193mm (13.54x7.6") diag: 394mm (15.5")
    ratio: 16:9 modes: 1920x1080
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 22.0.4
    direct render: Yes
Audio:
  Device-1: Intel Cannon Lake PCH cAVS driver: snd_hda_intel v: kernel
    alternate: snd_soc_skl,snd_sof_pci bus-ID: 00:1f.3 chip-ID: 8086:a348
    class-ID: 0403
  Device-2: NVIDIA TU116 High Definition Audio vendor: Tongfang Hongkong
    driver: snd_hda_intel v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 16
    link-max: gen: 3 speed: 8 GT/s bus-ID: 01:00.1 chip-ID: 10de:1aeb
    class-ID: 0403
  Sound Server-1: ALSA v: k5.10.117-1-MANJARO running: yes
  Sound Server-2: sndio v: N/A running: no
  Sound Server-3: JACK v: 1.9.21 running: no
  Sound Server-4: PulseAudio v: 15.0 running: no
  Sound Server-5: PipeWire v: 0.3.51 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Intel driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    port: 3000 bus-ID: 3d:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp61s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 bus-ID: 3e:00.0 chip-ID: 8086:2723 class-ID: 0280
  IF: wlp62s0 state: down mac: <filter>
  IF-ID-1: br-2aa0e7e24a39 state: down mac: <filter>
  IP v4: <filter> scope: global broadcast: <filter>
  IF-ID-2: docker0 state: down mac: <filter>
  IP v4: <filter> scope: global broadcast: <filter>
  IF-ID-3: wg-mullvad state: unknown speed: N/A duplex: N/A mac: N/A
  IP v4: <filter> scope: global
  IP v6: <filter> scope: global
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 1-14:4 chip-ID: 8087:0029 class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 2 state: up address: <filter> bt-v: 3.0
    lmp-v: 5.2 sub-v: 2232 hci-v: 5.2 rev: 2232
  Info: acl-mtu: 1021:4 sco-mtu: 96:6 link-policy: rswitch sniff
    link-mode: peripheral accept
    service-classes: rendering, capturing, object transfer, audio, telephony
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 465.76 GiB used: 385.26 GiB (82.7%)
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Crucial model: CT500P1SSD8
    size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: P3CR021 temp: 37.9 C scheme: GPT
  SMART: yes health: PASSED on: 246d 1h cycles: 3,328
    read-units: 35,371,131 [18.1 TB] written-units: 19,877,739 [10.1 TB]
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 70 GiB size: 68.35 GiB (97.64%) used: 63.07 GiB (92.3%)
    fs: ext4 block-size: 4096 B dev: /dev/nvme0n1p2 maj-min: 259:2 label: root
    uuid: b8e4ec89-794c-4ce3-b10a-0102bf25e5b4
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%)
    used: 312 KiB (0.1%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p1
    maj-min: 259:1 label: N/A uuid: 8BCC-FA41
  ID-3: /home raw-size: 350 GiB size: 343.44 GiB (98.13%)
    used: 322.19 GiB (93.8%) fs: ext4 block-size: 4096 B dev: /dev/nvme0n1p3
    maj-min: 259:3 label: home uuid: c2c4dab5-0a58-42d4-b279-2791c65f4a17
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 8 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p4 maj-min: 259:4 label: SWAP
    uuid: 89ff7953-8699-42ab-bf57-98a619111bac
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 16 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-6:2 info: Integrated Express ITE Device(8291)
    type: Keyboard,HID driver: N/A interfaces: 2 rev: 2.0 speed: 12 Mb/s
    power: 100mA chip-ID: 048d:ce00 class-ID: 0300
  Device-2: 1-9:5 info: Holtek E-Signal LUOM G10 Mechanical Gaming Mouse
    type: Mouse,HID driver: hid-generic,usbhid interfaces: 3 rev: 2.0
    speed: 12 Mb/s power: 100mA chip-ID: 04d9:a09f class-ID: 0300
  Device-3: 1-12:6 info: HP Wireless Keyboard and Optical Mouse receiver
    type: Keyboard,Mouse driver: hid-generic,usbhid interfaces: 2 rev: 1.1
    speed: 1.5 Mb/s power: 98mA chip-ID: 03f0:0b0c class-ID: 0301
  Device-4: 1-13:3 info: Chicony HD Webcam type: Video driver: uvcvideo
    interfaces: 4 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 04f2:b68b
    class-ID: 0e02 serial: <filter>
  Device-5: 1-14:4 info: Intel AX200 Bluetooth type: Bluetooth driver: btusb
    interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:0029
    class-ID: e001
  Hub-2: 2-0:1 info: Super-speed hub ports: 8 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Device-1: 2-2:2 info: Realtek Card Reader type: Mass Storage
    driver: usb-storage interfaces: 1 rev: 3.0 speed: 5 Gb/s power: 800mA
    chip-ID: 0bda:0316 class-ID: 0806 serial: <filter>
Sensors:
  System Temperatures: cpu: 53.0 C pch: 57.0 C mobo: 53.0 C
  Fan Speeds (RPM): cpu: 2837 fan-2: 2859
Info:
  Processes: 356 Uptime: 12h 19m wakeups: 8 Init: systemd v: 250
  tool: systemctl Compilers: gcc: 12.1.0 clang: 13.0.1 Packages: pacman: 3441
  lib: 543 flatpak: 0 Shell: fish (sudo) v: 3.4.1 default: Bash v: 5.1.16
  running-in: kitty inxi: 3.3.16