Keyboard and Mouse Stop Working after boot and inactivity for about 2 min


I have a wierd issue with my computer.

On startup, Everything runs perfectly well. However after a while, Keyboard and Mouse stops working but not entirely.

I can still move the mouse around and select different windows and even open applications, However i cannot drag windows or right click to see options

On my keyboard (External or Onboard), I can toggle the Caplock button and see the lights come on. But i cannot use any other keys.

Using the mouse, I’m able to log off or suspend and when i login again, everything seems to run fine.

I use an external Apple Keyboard connected via bluetooth

Here is what i tried.

  1. I boot into older kernel 5.4.124-1 via the grub, However issues persist
  2. I also download another kernel 5.12.9-1 via Manjaro Settings Manager and boot into this, However issues persist

Please what other information do i need to provide

00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers (rev 08)
00:02.0 VGA compatible controller: Intel Corporation Skylake GT2 [HD Graphics 520] (rev 07)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:15.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #1 (rev f1)
00:1c.4 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1)
00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
02:00.0 Network controller: Intel Corporation Wireless 8260 (rev 42)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

inxi -Fazy
  Kernel: 5.12.9-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.12-x86_64 
  root=UUID=1f729481-18eb-463d-9a6c-f05f54ad32f1 rw quiet apparmor=1 
  security=apparmor resume=UUID=7fe7e34f-ee1d-49c6-9ca6-264281a225d1 
  Desktop: Xfce 4.16.0 tk: Gtk 3.24.29 info: xfce4-panel wm: xfwm4 vt: 7 
  dm: LightDM 1.30.0 Distro: Manjaro Linux base: Arch Linux 
  Type: Laptop System: LENOVO product: 80QF v: Lenovo Edge 2-1580 
  serial: <filter> Chassis: type: 10 v: Lenovo Edge 2-1580 serial: <filter> 
  Mobo: LENOVO model: Lenovo Edge 2-1580 v: SDK0J40709 WIN serial: <filter> 
  UEFI: LENOVO v: D3CN34WW date: 08/31/2016 
  ID-1: BAT0 charge: 34.0 Wh (100.0%) condition: 34.0/45.0 Wh (75.6%) 
  volts: 12.2 min: 11.1 model: SMP L14M3P21 type: Li-poly serial: <filter> 
  status: Full 
  Device-1: hid-b8:f6:b1:04:11:c0-battery model: Apple Wireless Keyboard 
  serial: N/A charge: N/A status: Discharging 
  Info: Dual Core model: Intel Core i7-6500U bits: 64 type: MT MCP 
  arch: Skylake family: 6 model-id: 4E (78) stepping: 3 microcode: E2 cache: 
  L2: 4 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 20810 
  Speed: 3000 MHz min/max: 400/3100 MHz Core speeds (MHz): 1: 3000 2: 2858 
  3: 3000 4: 3000 
  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: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort status: Not affected 
  Device-1: Intel Skylake GT2 [HD Graphics 520] vendor: Lenovo driver: i915 
  v: kernel bus-ID: 00:02.0 chip-ID: 8086:1916 class-ID: 0300 
  Device-2: Acer Lenovo EasyCamera type: USB driver: uvcvideo bus-ID: 1-5:3 
  chip-ID: 5986:0670 class-ID: 0e02 serial: <filter> 
  Display: x11 server: X.Org 1.20.11 driver: loaded: intel 
  unloaded: modesetting alternate: fbdev,vesa display-ID: :0.0 screens: 1 
  Screen-1: 0 s-res: 5760x2160 s-dpi: 96 s-size: 1524x572mm (60.0x22.5") 
  s-diag: 1628mm (64.1") 
  Monitor-1: eDP1 res: 1920x1080 dpi: 143 size: 340x190mm (13.4x7.5") 
  diag: 389mm (15.3") 
  Monitor-2: HDMI1 res: 3840x2160 hz: 30 dpi: 68 size: 1440x810mm (56.7x31.9") 
  diag: 1652mm (65") 
  OpenGL: renderer: Mesa Intel HD Graphics 520 (SKL GT2) v: 4.6 Mesa 21.1.2 
  direct render: Yes 
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Lenovo 
  driver: snd_hda_intel v: kernel alternate: snd_soc_skl bus-ID: 00:1f.3 
  chip-ID: 8086:9d70 class-ID: 0403 
  Sound Server-1: ALSA v: k5.12.9-1-MANJARO running: yes 
  Sound Server-2: JACK v: 0.125.0 running: no 
  Sound Server-3: PulseAudio v: 14.2 running: yes 
  Sound Server-4: PipeWire v: 0.3.30 running: no 
  Device-1: Intel Wireless 8260 driver: iwlwifi v: kernel port: efa0 
  bus-ID: 02:00.0 chip-ID: 8086:24f3 class-ID: 0280 
  IF: wlp2s0 state: up mac: <filter> 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Lenovo driver: r8169 v: kernel port: d000 bus-ID: 03:00.0 
  chip-ID: 10ec:8168 class-ID: 0200 
  IF: enp3s0 state: down mac: <filter> 
  IF-ID-1: br-48195ba776c7 state: up speed: 10000 Mbps duplex: unknown 
  mac: <filter> 
  IF-ID-2: docker0 state: down mac: <filter> 
  IF-ID-3: pan1 state: down mac: <filter> 
  IF-ID-4: veth53de25c state: up speed: 10000 Mbps duplex: full mac: <filter> 
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8 
  bus-ID: 1-8:5 chip-ID: 8087:0a2b class-ID: e001 
  Report: rfkill ID: hci0 rfk-id: 4 state: up address: see --recommends 
  Local Storage: total: 232.89 GiB used: 196.99 GiB (84.6%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 850 EVO 250GB 
  size: 232.89 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s 
  rotation: SSD serial: <filter> rev: 1B6Q scheme: GPT 
  ID-1: / raw-size: 226.56 GiB size: 222 GiB (97.99%) used: 196.94 GiB (88.7%) 
  fs: ext4 dev: /dev/sda2 maj-min: 8:2 
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) 
  used: 280 KiB (0.1%) fs: vfat dev: /dev/sda1 maj-min: 8:1 
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 6.03 GiB used: 49.1 MiB (0.8%) 
  priority: -2 dev: /dev/sda3 maj-min: 8:3 
  System Temperatures: cpu: 64.0 C mobo: 44.0 C 
  Fan Speeds (RPM): N/A 
  Processes: 265 Uptime: 4h 49m wakeups: 14 Memory: 7.57 GiB 
  used: 2.84 GiB (37.6%) Init: systemd v: 248 tool: systemctl Compilers: 
  gcc: 11.1.0 Packages: 1528 pacman: 1511 lib: 426 flatpak: 0 snap: 17 
  Shell: Bash v: 5.1.8 running-in: xfce4-terminal inxi: 3.3.04

Add the following kernel parameter to your /etc/default/grub file somewhere behind


Afterwards, run

sudo update-grub

and reboot.

I now have something like this

GRUB_CMDLINE_LINUX_DEFAULT="quiet apparmor=1 security=apparmor resume=UUID=7fe7e34f-ee1d-49c6-9ca6-264281a225d1 udev.log_priority=3 btusb.enable_autosuspend=n"

I have tried this and it did not work for me. below is my grub file
GRUB_CMDLINE_LINUX_DEFAULT=“quiet apparmor=1 security=apparmor resume=UUID=7fe7e34f-ee1d-49c6-9ca6-264281a225d1 udev.log_priority=3 btusb.enable_autosuspend=n”

# If you want to enable the save default function, uncomment the following
# line, and set GRUB_DEFAULT to saved.

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices

# Uncomment to use basic console

# Uncomment to disable graphical terminal

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command 'videoinfo'

# Uncomment to allow the kernel use the same resolution used by grub

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"

# Uncomment to disable generation of recovery mode menu entries

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.

# Uncomment one of them for the gfx desired, a image background or a gfxtheme

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment this option to enable os-prober execution in the grub-mkconfig command

Does this happen with other input devices or is it just your bluetooth ones?