Question: why wont my iphone charge unless its unlocked?
Answer: When the USB Accessories setting is off, as in the image above, you might need to unlock your iOS device to connect USB accessories. This is turned off by default for security reasons. If you turn it on, your iPhone/iPad will start charging instantly, without unlocking it's connected to your laptop.