USB wireless keyboard and mouse freeze

I have a Logitech K295 keyboard and an M220 mouse, both wireless. Normally the receiver, the tiny USB dongle is connected to a KVM switch which which I can switch keyboard, mouse and monitor between my own openSUSE KDE Tumbleweed computer and my , ahum, Windows 10 office computer.
When connected to the office computer it all works great, so I don’t expect it is the Logitech stuff.
When connected to openSUSE after a while, time is not constant, both devices stop working and all I can think of is using the ON/OFF switch to shutdown the laptop. It also happens when I connect the dongle directly into the laptop, so I also don’t expect the switch the be the culprit.
It has worked well for about a year, maybe even longer, but since a couple of weeks I experience this problem. I re-installed Tumbleweed after a side trip to Fedora and it is still happening. I did not experience it on Fedora but I didn’t use it very long, there were other things which work O.o.t.B in openSUSE but not in Fedora.
I use the latest Tumbleweed, fully updated.

Who has any idea what this could be? Who can give me tips to investigate this or that?
Thanks in advance.

So it will not help to unplug and re-plug the USB-receiver (if possible in a different USB-port)?

I used to have that problem on my desktop. So I unplugged the USB dongle for the mouse, and moved it from a USB port at the back of the computer to one at the front of the computer. I haven’t had any problems since. My guess is that the metal in the computer was interfering with the wireless signal.

No, unfortunately, it doesn’t. I had it in the kvm switch which is hanging behind my table. Then I got the problems so I moved the dongle to the side of the laptop which is kinda facing me, but still have the problems.

Yes, I have read that in an older thread, but now it doesn’t work. I had it working without problems for a long time until suddenly it started and now I can’t get rid of it anymore. Although, fingers crossed, today I did not yet have the problem and it it is almost 6pm now.

Make sure that the journal is permanent (in /etc/systemd/journald.conf set “Storage=persistent”) and when the problem reappears check the journal:

journalctl -b -1 -p 3

Update:
Yesterday I had the problems twice directly after each other, just did a reboot in between.
Last week I installed Fedora 37 and used it for about a week, no problems at all. Well, not with the USB, there were other things which didn’t work like I want to so I returned to openSUSE.
Since I have these problems on a daily basis, sometimes multiple times per day, sometimes a whole day no problem, and with Fedora for one week no problems I am starting to think it might be the software instead of the hardware.
Any ideas?

Update to the previous update:
It is not only the wireless keyboard and mouse. As a test I connected a wired mouse as well and also that one is dead when it happens. The built-in touchpad is still working.
The second mouse is something I use when the wireless keyboard and mouse, and my external monitor, are connected through the kvm switch to the Windows office computer when working from home.
I guess it is safe to say it is not caused by the wireless devices, nor by the kvm switch. I never encountered the problems on the office computer.

Thanks.

Good you tested also with a wired mouse, I am not surprised wireless devices sometimes have problem although with a good design that should not happen.

Not not really, if you logs do not show anything it is close to impossible to get to the problem.

1 Like

Not a USB power management issue at play?

You could try inhibiting USB power management globally by adding the following kernel boot option to grub…
usbcore.autosuspend=-1

Then check behaviour again.

Useful references:
https://wiki.archlinux.org/title/Power_management#USB_autosuspend
https://www.kernel.org/doc/Documentation/usb/power-management.txt

Hello Deano,

I added this line to Grub and rebooted. I guess now it’s a matter of waiting if the problem returns.
Strange thing is, I never had to do this before and still didn’t have this problem. I guess it just appeared in, maybe, an update of something.
Secondly, the line I added says autosuspend. This normally means it does something after some time of not using it. My problem has happened when I was using the mouse and suddenly the cursor on screen stopped moving while I was moving the mouse. So I wonder if this is the solution, but I give it a try.
Thank you for the help.

I had something like this before but not totally non functioning wireless mouse. It still move but like a turtle.
Luckily there’s a logitech application in tumbleweed that support my wireless mouse. I installed it and whenever
things go wrong with the wireless mouse I just run it and mouse wake up and back to normal behavior.
The application is “solaar”. There is I think a couple more application for logitech mouse available .
Check it out might one of those have your mouse support.

This sounds like the problem I had with my desktop. (Ryzen 5)

But for me it was the bios undervolting my memory.

Well, as said I used Deano’s solution a couple of days ago and since then, and maybe it is stil too early although I doubt that, I did not have the problem again. It looks like the problem is solved.
I still find it strange cause I never heard about this solution and therefore also never used it, never had to use it cause everything always worked fine. Why now suddenly I have to use this, or an other solution for that matter? What changed, was it an update and if so which one? No idea.

For now I am thankful for the help I got and I can work with the laptop like before, without the problem.
I will look into the Logitech app Conram mentioned and see if I can find something related to my problem.

Thank you all.

1 Like

Hi again, it’s one month later and since 2 days I have the same problem again. Just had the 2nd time keyboard and mouse stopped working.

I still have Deano’s solution in the bootloader and it worked fine for a month, but now the problem came back.
Anyone with an idea what it might be?

Does using a wired mouse behave the same?

Yes, it does. Only the touchpad keeps working. Also the keyboard, which operates by the same USB dongle is out.

I did reread this topic and saw @susejunky did ask to monitor the log but and I a still wondering if that gives any clues.

Would be good if you can post the output of “sudo journalctl -b | grep usb” after the problem happened, use susepaste if the output is long.

1 Like