A problem that occurred a few years ago return – my laptop a Lenovo T540p would not charge while it was booted.  However shut it down and it charges fine!  This problem had just suddenly appeared and was very obviously not a hardware issue.  I disabled the power services and remove the battery management entry…