I insttalled powertop and then went to "Tunables". I enabled a majority of them including the one for my optical mouse.
After that if i didn't use my mouse for 3 seconds then I would have to click it before it would work again.
I decided to disable all the tunables in powertop however my mouse would still suspend after 3 seconds.
Switching USB ports and rebooting did nothing.