It is a USB Power setting
1. Go to Power Options on your computer
2. Click 'Change plan setting' on your chosen plan.
3. Click 'Change advanced power setting' on your chosen plan.
4. Expand 'USB Settings' .
5. Expand 'USB selective suspend setting' and change it to disabled.for On battery and...