You are not logged in.

#1 2019-08-31 14:21:26

silverhammermba
Wiki Maintainer
Registered: 2011-04-14
Posts: 156

Keyboard and mouse stop working shortly after suspend

When I suspend to RAM, the keyboard and mouse stop working afterwards. There are two weird situations:

  1. If I hit a keyboard/mouse button a few seconds after suspending it stops suspending and wakes up. But they both no longer work after waking: I have to unplug them and plug them back in.

  2. If I suspend and wait a bit, I can no longer wake the system at all. Pressing the keyboard/mouse/power button all have no effect.

I'm not using any DE or power manager, just running `systemctl suspend` from a terminal in awesome WM. This is a desktop, not a laptop. I'm running linux 5.2.11.arch1-1

Last edited by silverhammermba (2019-08-31 14:22:09)

Offline

#2 2019-08-31 15:07:47

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

Re: Keyboard and mouse stop working shortly after suspend

Does the power button retain long-time functionality if you unplug keyboard and mouse before suspending? (inb4: by prepending a "sleep 10" ;-)
Do you have other stuff on the USB (the more exotic, the more prone. Eg. my DVB adapter messes the bus on S3, unplugging it before results in a completely reliable S3)

Online

#3 2019-08-31 15:53:01

silverhammermba
Wiki Maintainer
Registered: 2011-04-14
Posts: 156

Re: Keyboard and mouse stop working shortly after suspend

I'll try unplugging before suspending.

I don't think I have anything "exotic": wired mouse, wired keyboard (with a USB hub), wired xbox controller, mic, webcam

Offline

#4 2019-08-31 18:33:27

silverhammermba
Wiki Maintainer
Registered: 2011-04-14
Posts: 156

Re: Keyboard and mouse stop working shortly after suspend

Yeah, unplugging the mouse and keyboard before suspending made the power button work for resuming again.

I have no idea why that works. What's the fix?

Offline

#5 2019-08-31 19:07:43

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

Re: Keyboard and mouse stop working shortly after suspend

Try removing the other devices on the bus first to see whether one of them is the actual culprit. If not, isolate which one of the two causes this. Try a replacement device and if that doesn't expose the behavior, vendor of model of the troublemaker would probably be useful info.

I assume what happens is that something™ sends the USB stack into a lock or loop and the kernel won't process further events on the bus - or any input.
If you can cause the problem and still resume the system w/ rtcwake, dmesg might have some hints on what was going on.

Online

#6 2019-08-31 22:04:03

silverhammermba
Wiki Maintainer
Registered: 2011-04-14
Posts: 156

Re: Keyboard and mouse stop working shortly after suspend

Well now I can't get it to reproduce the behavior. Keyboard, mouse, and power button all seem to be able to wake it up. :\

Offline

Board footer

Powered by FluxBB