Mouse and keyboard stop working at random intervals

A new bizarre issue seems to have made its way in the latest openSUSE Tumbleweed snapshot, seemingly happening as of 3 - 5 days ago. After roughly a day of uptime, both the mouse and keyboard suddenly get disabled and become unusable, turning off as if completely disconnected. Even plugging them out and back into their USB port does nothing to recover them, they will only work again after restarting. The system is otherwise usable and responsive; Oddly enough my drawing tablet still works… I currently use it as a mouse to give the restart command and avoid pressing the hard reset button. My session is KDE Plasma (Wayland). Is this issue known or do I need to further investigate and report it?

That is an odd problem, and I guess it may be peculiar to Wayland? Can you try an Xorg desktop environment to compare with?

Perhaps, also share the hardware details…

inxi -Fxx

BTW, are you able to roll back to compare previous behaviour definitively?

If need be I’ll try X11 again: Been trying to avoid it due to the renderer being so much slower and looking laggy, sadly Wayland breaks things here and there. I can’t roll Tumbleweed back, never tried and I fear it could break my system. For now here is that output:

System:    Host: linux-qz0r Kernel: 5.6.14-1-default x86_64 bits: 64 compiler: gcc v: 9.3.1 Desktop: KDE Plasma 5.18.5 
           tk: Qt 5.14.1 wm: kwin_wayland dm: SDDM Distro: openSUSE Tumbleweed 20200526 
Machine:   Type: Desktop Mobo: ASUSTeK model: PRIME X370-PRO v: Rev X.0x serial: <superuser/root required> 
           UEFI: American Megatrends v: 5220 date: 09/12/2019 
CPU:       Topology: 8-Core model: AMD Ryzen 7 3700X bits: 64 type: MT MCP arch: Zen 2 L2 cache: 4096 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 114982 
           Speed: 2195 MHz min/max: 2200/3600 MHz Core speeds (MHz): 1: 2193 2: 2195 3: 2195 4: 2195 5: 2196 6: 2194 7: 2195 
           8: 2196 9: 2191 10: 2194 11: 2194 12: 2194 13: 2194 14: 2195 15: 2195 16: 2194 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Hawaii PRO [Radeon R9 290/390] vendor: XFX Pine driver: amdgpu v: kernel 
           bus ID: 0a:00.0 chip ID: 1002:67b1 
           Display: wayland server: 1.20.8 compositor: kwin_wayland driver: amdgpu FAILED: ati 
           unloaded: fbdev,modesetting,vesa resolution: <xdpyinfo missing> 
           OpenGL: renderer: AMD Radeon R9 390 Series (HAWAII DRM 3.36.0 5.6.14-1-default LLVM 10.0.0) v: 4.6 Mesa 20.0.7 
           direct render: Yes 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] Hawaii HDMI Audio [Radeon R9 290/290X / 390/390X] vendor: XFX Pine 
           driver: snd_hda_intel v: kernel bus ID: 0a:00.1 chip ID: 1002:aac8 
           Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel 
           bus ID: 0c:00.4 chip ID: 1022:1487 
           Device-3: Microsoft LifeCam HD-5000 type: USB driver: snd-usb-audio,uvcvideo bus ID: 5-1:2 chip ID: 045e:076d 
           Sound Server: ALSA v: k5.6.14-1-default 
Network:   Device-1: Intel I211 Gigabit Network vendor: ASUSTeK driver: igb v: 5.6.0-k port: e000 bus ID: 08:00.0 
           chip ID: 8086:1539 
           IF: enp8s0 state: up speed: 1000 Mbps duplex: full mac: 04:d4:c4:4d:03:4d 
           Device-2: Realtek RTL8188EUS 802.11n Wireless Network Adapter type: USB driver: r8188eu bus ID: 1-12:3 
           chip ID: 0bda:8179 
           IF: wlp2s0f0u12 state: down mac: 50:3e:aa:6c:09:3d 
Drives:    Local Storage: total: 3.18 TiB used: 1.57 TiB (49.3%) 
           ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO Plus 500GB size: 465.76 GiB speed: 31.6 Gb/s lanes: 4 
           serial: S4EVNF0M620650Y 
           ID-2: /dev/sda vendor: Samsung model: SSD 860 EVO 1TB size: 931.51 GiB speed: 6.0 Gb/s serial: S4X6NF0N106392M 
           ID-3: /dev/sdb vendor: Seagate model: ST32000641AS size: 1.82 TiB speed: 6.0 Gb/s serial: 9WM07W4C 
Partition: ID-1: / size: 453.51 GiB used: 40.46 GiB (8.9%) fs: ext4 dev: /dev/nvme0n1p1 
           ID-2: /home size: 915.89 GiB used: 83.62 GiB (9.1%) fs: ext4 dev: /dev/sda1 
Swap:      Alert: No Swap data was found. 
Sensors:   System Temperatures: cpu: 60.8 C mobo: N/A gpu: amdgpu temp: 67 C 
           Fan Speeds (RPM): N/A gpu: amdgpu fan: 119 
Info:      Processes: 373 Uptime: N/A Memory: 15.56 GiB used: 4.27 GiB (27.4%) Init: systemd v: 245 runlevel: 5 
           target: Compilers: gcc: 9.3.1 alt: 7/9 clang: 10.0.0 Shell: bash v: 5.0.17 running in: konsole 
           inxi: 3.1.00

I decided to repurpose the USB hub I recently bought and pipe my mouse and keyboard through it, instead of plugging them directly into the PC like until now. So far it seems this made the issue go away, I haven’t seen it in nearly three days. Since the devices acted completely unresponsive as if physically disconnected, I can only assume some core Wayland or kernel issue was causing those USB ports to get powered down and the devices ignored.

You never mentioned anything about such a hub in your opening post. Anyway, good to read that eliminating it has helped here.

You got a modern cpu which is 2.5 times faster than my venerable i7-6700K from 2015. My machine has only built in graphics:

erlangen:~ # inxi -zCMmG
Machine:   Type: Desktop Mobo: ASRock model: Z170 Pro4S serial: <filter> UEFI: American Megatrends v: P3.50 date: 06/23/2016 
Memory:    RAM: total: 31.05 GiB used: 4.87 GiB (15.7%) 
           Array-1: capacity: 64 GiB slots: 4 EC: None 
           Device-1: ChannelA-DIMM0 size: No Module Installed 
           Device-2: ChannelA-DIMM1 size: 16 GiB speed: 2133 MT/s 
           Device-3: ChannelB-DIMM0 size: No Module Installed 
           Device-4: ChannelB-DIMM1 size: 16 GiB speed: 2133 MT/s 
CPU:       Topology: Quad Core model: Intel Core i7-6700K bits: 64 type: MT MCP L2 cache: 8192 KiB 
           Speed: 800 MHz min/max: 800/4200 MHz Core speeds (MHz): 1: 800 2: 800 3: 802 4: 800 5: 800 6: 800 7: 800 8: 800 
Graphics:  Device-1: Intel HD Graphics 530 driver: i915 v: kernel 
           Display: server: X.Org 1.20.8 driver: modesetting unloaded: fbdev,vesa resolution: 1920x1200~60Hz 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 530 (SKL GT2) v: 4.6 Mesa 20.0.7 
erlangen:~ # 

You may consider updating your graphics and checking memory size. x11 is really fast on my machine.