My Nexus 5 started doing this a couple months ago. It only happens when the N5 is plugged into its mobile charger, or more rarely plugged into its charger at home. I have found no solution, which is why I'm here. I can live with it though, therefore I just turn the N5 off while it recharges...