I am having a huge trouble with my keyboard and mouse just losing power after my Ubuntu 16.04 desktop has been left idle for an extended period of time. What happens is that the monitor screen is black (since the system naturally turned off the screen after inactivity) and the lights on the keyboard and the mouse are just off. Unplugging both devices, and plugging them back in, brings the light on them for a about 5secs, then the light disappears. I've tried switching multiple USB ports and they all behave the same way. For a sanity check, I also tried plugging in a USB flash drive, and it totally does not light up.
This issue is erratic; there are days when I am able to return back to my machine after a long period of being idle, and the keyboard and mouse are working perfectly, no power being cut off.
This problem also doesn't seem related to the length of time which I leave my PC unattended. For the problem that happened today, I only left my machine unattended for about 2hrs and it cropped up. There are other days when I leave my machine unattended overnight and return the next morning with the keyboard and mouse fully powered up and usable.
Does anyone know if this could be an issue related to the kernel? Do I have to update the kernel?
In the interim, I am just going to try disabling monitor sleep entirely. I hope this can at least solve this. Does anyone know if this is related to a bigger issue in this latest Ubuntu release concerning USB power stability?
Now it seems like the only way out for me is to force shutdown of my system and reboot. This has happened a few times and is really a serious problem because I am soon going to be using my machine for data science applications and I can't have my machine just switch off all the ports whenever it wants to, and force me to shutdown my system and restart it just to regain control over it!
Here are the specs of my system:
Asus z170 deluxe motherboard with built in wifi connection
Intel Core i7 6700k
Tecknet brand USB keyboard with lighted keys
Kensington USB optical mouse
Thank you.