Warning messages when using

Some laptops aggressively manage power when on battery and throttle back USB communications. I have seen a lot of variabilities here with no single, repeatable solution. You can check out this forum post which covers the basics for Windows.