Keyboard stops responding after suspending system

I had this problem on Ubuntu but if I unplugged the keyboard and plugged it back in I could login. It didn’t happen often either. What could be causing this abnormal behaviour?

@Mottle:

Possibly, a USB Power Management issue – <https://docs.kernel.org/driver-api/usb/power-management.html>.

  • You may have to, also, check the machine’s UEFI/BIOS settings.