You are not logged in.

#1 2020-01-03 06:29:28

rafaelmalheiros
Member
Registered: 2020-01-03
Posts: 3

[SOLVED] USB Keyboard disconnects after a while

My USB Keyboard disconnects and stops working after some time.
The only solution is rebooting.
Unplugging and replugging doesn't work.
Changing do Keyboard doesn't work.

On Windows, it disconnects and reconnects after about one second.
On Arch, I'm forced to reboot.

I got the following message on /var/log/Xorg.0.log

[  2579.407] (II) config/udev: removing device KB USB Keyboard
[  2579.407] (**) Option "fd" "41"
[  2579.407] (II) event7  - KB USB Keyboard: device removed
[  2579.407] (II) UnloadModule: "libinput"
[  2579.407] (II) systemd-logind: releasing fd for 13:71
[  2579.686] (II) config/udev: removing device KB USB Keyboard
[  2579.686] (**) Option "fd" "42"
[  2579.686] (II) UnloadModule: "libinput"
[  2579.686] (II) systemd-logind: not releasing fd for 13:72, still in use
[  2579.686] (II) config/udev: removing device KB USB Keyboard
[  2579.686] (**) Option "fd" "42"
[  2579.686] (II) event8  - KB USB Keyboard: device removed
[  2579.686] (II) UnloadModule: "libinput"
[  2579.686] (II) systemd-logind: releasing fd for 13:72

I've searched several posts, but none could resolve my problem.

I add "usbcore.autosuspend=-1" to my /boot/loader/entries/arch.conf and it resolved the problem.

Thank you @seth

Last edited by rafaelmalheiros (2020-01-03 16:40:29)

Offline

#2 2020-01-03 08:31:14

seth
Member
Registered: 2012-09-03
Posts: 51,206

Re: [SOLVED] USB Keyboard disconnects after a while

USB powersaving? https://wiki.archlinux.org/index.php/Po … utosuspend
Do the keyboard LEDs light up when you re-plug it?

"usbcore.autosuspend=-1" will disable autosuspending, but can and usually is overridden by userspace powermanagement daemons (TLP, laptopmode tools, …) at runtime, so be weary of that and consult the documentation of any tool you use on how to disable it there.

Offline

Board footer

Powered by FluxBB