USB Dongle disconnects

Hey guys,

first the hardware in doubt:

Logitech G502x Wireless Mouse
Corsair K65 Plus Wireless Keyboard

The faulty and problematic hardware is the keyboard. It is connected via dongle from Corsair. But the dongle stopped working after like 2-3 minutes of no usage and IT did not connect itself. So I can use the keyboard only in wired mode.

The mouse works fine everytime. I dont know where to look at.

Step one is check if the behaviour persists with a different USB port

Tried every single usb port. Also the USB Hub from my monitor

Maybe the reciever is set to auto suspend / power savings mode by default and has trouble to be reactivated.

Try

inxi -Ja | grep Device

That will generate a list of the connected USB Devices connected to your system,
in that format

Device-1: >>1-4.2<<:6 info: Logitech Unifying Receiver

The individual >> USB ID << is the important part here, with that individual ID call

cat /sys/bus/usb/devices/ >> USB ID << /power/control

if it returns

auto 

then your USB reciever will deactivated after a short time of inactivity.
To change that behavior you can override that setting with:

echo 'on' > '/sys/bus/usb/devices/ >> USB-ID << /power/control';

But I can also be totally mistaken as I’m not that experienced with Linux, up so far. Thus, your mileage may vary.

It returns “on” for me. I set a udev rule as stated in the wiki to turn off usb autosuspend completly.

But my keyboard does not respond after a while.

This is from journalctl after the disconnect.