If it's happening with every USB port on the laptop then it's more than just a simple loose connection, but could be a more serious hardware issue.

It could also be software related - remote, but worth a try. Go into device manager and remove all the drivers for the USB root hubs and USB controllers. Reboot and let the drivers reinstall, then try again.