If your mouse connect and reconnect randomly make sure to do the following: First: put your mouse USB in another USB. Second: make sure that your mouse is clean from the bottom. Third: go to control panel> System and Security then in the left side choose Hardware and Sound and under Devices and Printers choose Device Manager under Universal Serial Bus Controller double click the first USB Root Hub and choose the Power management and unchecked the " Allow The Computer to turn off this device to save power" . Uncheck the allow the computer to turn off this device to save power Fourth: update your driver as follow: Update the drivers
This blog to help any one to know more about his/here PC and give some tutorials about PC Softwares