Mouse and keyboard not working till re-plugging them on Wayland

Hey there,

I just started a fresh install of Manjaro on Wayland with LightDM.

Everything works fine, except one little thing that bothers me. Everytime I’m starting up my computer I need to re-plug my mouse and keyboard because they are not working. The LEDs of both peripherals are working as expected, but the input is not.
I tried it with Kernel 5.9 and 5.10 but they are both not working.

Here is my hardware and software:

> System:    Kernel: 5.10.2-2-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
           root=UUID=156913f3-8c93-47b8-a3e1-c5a92c34fc5b ro quiet apparmor=1 security=apparmor 
           resume=UUID=ad70709a-3a11-4dda-af23-78df74c37510 udev.log_priority=3 
           Desktop: KDE Plasma 5.20.4 tk: Qt 5.15.2 wm: kwin_wayland dm: LightDM 1.30.0 
           Distro: Manjaro Linux 
Machine:   Type: Desktop Mobo: Micro-Star model: MPG X570 GAMING PLUS (MS-7C37) v: 2.0 
           serial: <filter> UEFI: American Megatrends v: A.84 date: 05/14/2020 
CPU:       Info: 8-Core model: AMD Ryzen 7 2700X bits: 64 type: MT MCP arch: Zen+ family: 17 (23) 
           model-id: 8 stepping: 2 microcode: 800820D L2 cache: 4 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 118438 
           Speed: 1890 MHz min/max: 2200/3700 MHz boost: enabled Core speeds (MHz): 1: 1890 
           2: 2032 3: 2283 4: 2065 5: 4263 6: 1921 7: 2129 8: 2841 9: 2466 10: 2086 11: 4271 
           12: 1908 13: 2126 14: 2846 15: 2021 16: 1953 
           Vulnerabilities: Type: itlb_multihit status: Not affected 
           Type: l1tf status: Not affected 
           Type: mds status: Not affected 
           Type: meltdown status: Not affected 
           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 AMD retpoline, IBPB: conditional, STIBP: disabled, RSB filling 
           Type: srbds status: Not affected 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: AMD Vega 10 XL/XT [Radeon RX Vega 56/64] vendor: Sapphire Limited 
           driver: amdgpu v: kernel bus ID: 2f:00.0 chip ID: 1002:687f 
           Display: wayland server: X.Org 1.20.99.1 compositor: kwin_wayland driver: amdgpu,ati 
           unloaded: modesetting alternate: fbdev,vesa display ID: :1 screens: 1 
           Screen-1: 0 s-res: 5760x1080 s-dpi: 96 s-size: 1524x285mm (60.0x11.2") 
           s-diag: 1550mm (61") 
           Monitor-1: XWAYLAND0 res: 1920x1080 hz: 144 dpi: 94 size: 520x290mm (20.5x11.4") 
           diag: 595mm (23.4") 
           Monitor-2: XWAYLAND1 res: 1920x1080 hz: 60 dpi: 92 size: 530x300mm (20.9x11.8") 
           diag: 609mm (24") 
           Monitor-3: XWAYLAND2 res: 1920x1080 hz: 60 dpi: 92 size: 530x300mm (20.9x11.8") 
           diag: 609mm (24") 
           OpenGL: renderer: Radeon RX Vega (VEGA10 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: AMD Vega 10 HDMI Audio [Radeon Vega 56/64] driver: snd_hda_intel v: kernel 
           bus ID: 2f:00.1 chip ID: 1002:aaf8 
           Device-2: AMD Family 17h HD Audio vendor: Micro-Star MSI driver: snd_hda_intel 
           v: kernel bus ID: 31:00.3 chip ID: 1022:1457 
           Device-3: Microsoft LifeCam HD-3000 type: USB driver: snd-usb-audio,uvcvideo 
           bus ID: 1-2:2 chip ID: 045e:0779 
           Device-4: C-Media Auna Mic CM900 type: USB driver: hid-generic,snd-usb-audio,usbhid 
           bus ID: 1-5:3 chip ID: 0d8c:0134 
           Sound Server: ALSA v: k5.10.2-2-MANJARO 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
           vendor: Micro-Star MSI X570-A PRO driver: r8169 v: kernel port: d000 bus ID: 27:00.0 
           chip ID: 10ec:8168 
           IF: enp39s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 2.96 TiB used: 789.13 GiB (26.1%) 
           SMART Message: Unable to run smartctl. Root privileges required. 
           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 serial: <filter> rev: 2B6Q 
           ID-2: /dev/sdb maj-min: 8:16 vendor: Western Digital model: WD10EZEX-08M2NA0 
           size: 931.51 GiB block size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
           serial: <filter> rev: 1A01 
           ID-3: /dev/sdc maj-min: 8:32 type: USB vendor: Western Digital 
           model: WD My Passport 0827 size: 1.82 TiB block size: physical: 512 B logical: 512 B 
           serial: <filter> rev: 1012 
Partition: ID-1: / raw size: 215.38 GiB size: 211 GiB (97.97%) used: 35.38 GiB (16.8%) fs: ext4 
           dev: /dev/sda2 maj-min: 8:2 
           ID-2: /boot/efi raw size: 300 MiB size: 299.4 MiB (99.80%) used: 312 KiB (0.1%) 
           fs: vfat dev: /dev/sda1 maj-min: 8:1 
Swap:      Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
           ID-1: swap-1 type: partition size: 17.21 GiB used: 0 KiB (0.0%) priority: -2 
           dev: /dev/sda3 maj-min: 8:3 
Sensors:   System Temperatures: cpu: 47.0 C mobo: N/A gpu: amdgpu temp: 53.0 C mem: 53.0 C 
           Fan Speeds (RPM): N/A gpu: amdgpu fan: 1387 
Info:      Processes: 375 Uptime: 37m wakeups: 0 Memory: 15.64 GiB used: 4.5 GiB (28.8%) 
           Init: systemd v: 247 Compilers: gcc: 10.2.0 Packages: 1342 pacman: 1337 lib: 417 
           flatpak: 5 Shell: Bash v: 5.1.0 running in: konsole inxi: 3.2.01 
>

If you need any more info, I’m happy to provide it.

1 Like

Something similar is happening to me:
I have an HP Probook, and the first time I boot, the keyboard doesn’t work, then I close the laptop and turn it back on, and the trackpad doesn’t work. I close it a 2nd time, and everything seems to work.

I know there is a way around it, but it’s pretty time-wasting and annoying to explain to people :frowning: