Wireless Keyboard - Input Lagging

Guys,

I have a Combo Wireless Logitech Mouse + Keyboard - Logitech MK345

The wireless mouse works fine, its the keyboard that’s issue…

From other articles on the net, I am informed that this could be due to the USB Power Saving
feature and that I have to set autosuspend to -1 for this port ?

My output of ;



# lsusb

Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Bus 005 Device 002: ID 046d:c534 Logitech, Inc. Unifying Receiver  <-- the receiver 


Bus 005 Device 003: ID 1b3f:2019 Generalplus Technology Inc. 
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub



Pls advise.

Thanks in advance.

This is the right subforum ? Or ‘Hardware’ ?

Wireless here is Wifi.

I will move it.

Thank you. Sorry for the mistake.

Guys,

I have a Combo Wireless Logitech Mouse + Keyboard - Logitech MK345

The wireless mouse works fine, its the keyboard that’s issue…

From other articles on the net, I am informed that this could be due to the USB Power Saving feature
and that I have to set autosuspend to -1 for this port ?

My output of ;



# lsusb

Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Bus 005 Device 002: ID 046d:c534 Logitech, Inc. Unifying Receiver  <-- the receiver 


Bus 005 Device 003: ID 1b3f:2019 Generalplus Technology Inc. 
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


Pls advise.
Any of you with a similar problem ?
How did you guys disable autosuspend for yr keyboard ?

Thanks in advance.

Here’s a page describing how to inhibit autosuspend for a given USB device…
https://hamwaves.com/usb.autosuspend/en/

Archwiki guide…
https://wiki.archlinux.org/index.php/Power_management#USB_autosuspend

You can also inhibit USB autosuspend completely by adding “usbcore.autosuspend=-1” kernel boot option in grub.

I fix my wireless keyboard lag by adding a USB extension cable and putting the Logitech dongle in line of sight to the keyboard.
The thickness of the laptop was enough to drop keystrokes.

The wireless mouse never showed any issues.

Logitech claims up to 30 feet - just 3 feet was enough to drop keystrokes.

Hi … How long was the usb extension cable ? 1m ?

The wireless mouse never showed any issues.

Yep… Thats the odd part …

Logitech claims up to 30 feet - just 3 feet was enough to drop keystrokes.

In WinX, i have tried upto 10-12 feet… All good…

Nice… I have gone with the modprobe.d suggestion … Will test and revert …

Mine is a 6 foot rolled to about 1 foot - just enough to get in sight of the keyboard. FYI 3 foot is about 1 meter.

Update - This fix seems to have solved 95% of the lagging issues. On 2 occasions, I had to switch of /off the keyboard to get it input accepted.
But overall the modprobe.d solution was great - words / characters are no longer lost etc.

Note - Created a file in /etc/modprobe.d/ directory ‘20-usb_stop_autosuspend.conf’ and added …

options usbcore autosuspend=-1

And then save/reboot.

Now check autosuspend value:

cat   /sys/module/usbcore/parameters/autosuspend

It should display -1

Thanks for the update.

[SOLVED ]
UPDATE ]

Guys, got a 1.5m USB Extender Cable and made sure the receiver was about 30cm / line of sight of the keyboard.
Note earlier the usb receiver was at the front of the PC under the table. Now its on top of the table ( near the monitor ) in sight of the keyboard.

First day - problems seems 100% SOLVED.

Thanks everybody.

Nice you solved it. Happy computing.

Then that sounds like the problem that I had with a wireless mouse. A similar model worked fine on a laptop, but on my main desktop it was unreliable. I enventually tried moving the usb plugin receiver from a port at the back of the computer to a port at the front. And it has been completely rellable since that move. The computer itself was acting as a shield and partially blocking the wireless signals.