I spent hours yesterday trying to find a fix; my phone, when connected to Microsoft Windows via a USB cable, repeatedly disconnected. I just could not keep the phone connected to either my laptop or desktop computers. I record instructional videos about Mailchimp and want to use a Google Pixel phone as a Webcam (connected to OBS Studio).
Troubleshooting phone disconnecting from computers
I use many devices connected to my computers via USB; a microphone, speakers, webcams, a printer and so on. All of those devices remain connected to my computer when connected via USB cable. When connecting any phone however to my computer, the connection with the phone kept getting disconnected (I tried Samsung, Pixel and LG Android phones and an Apple iPhone).
Before coming across the solution below I also tried to reinstall drivers, install specific phone drivers (e.g. the Google USB Driver for the Google Pixel). I even tried various USB-C and Micro-USB cables in case there was a cable fault.
Instructions to stop Windows disconnecting your phone
The solution that has worked for me is detailed below. My phones now remain connected to my computers and I’m able to use my phone as a PC webcam. For the instructions below please keep in mind that I use Dell computers however the same fix should work with other brands (HP, Lenovo, Toshiba, Samsung etc.).
- Press the Windows logo key + r (+r). Type powercfg.cpl and press Enter.
- Click Change plan settings.
- Click Change advanced power settings.
- Click the + next to USB settings.
- Click the + next to USB selective suspend settings.
- Change from Enabled to Disabled for both On battery and Plugged in.
- Click OK.
Please let me know in the connects below if this works for you.