Another thing that I just discovered: cable quality can cause charging misbehavior. Check this link for more info.