Keyboard and mouse unresponsive after suspend

Solution 1:

Reinstall or install input device drivers.

sudo apt-get install xserver-xorg-input-all 

Or:

sudo apt-get install --reinstall xserver-xorg-input-all

Solution 2:

I've tried all the answers on this page, but they didn't really work. I thought reinstalling xserver-xorg-input-all worked, but it didn't. I recently found this page and the freezing hasn't happened since. What you do is edit /etc/default/grub and change GRUB_CMDLINE_LINUX_DEFAULT to have the value "atkdb.reset i8042.nomux quiet splash" and then run sudo update-grub and reboot. This also works on 16.04.