Thanks for your answer. It was not the battery (checked by replacing battery) and it was not the cord or AC adapter (checked by replacing the adapter). Whatever it was, I gave the laptop away. Of course: only way to find out whether it is the battery, the cord, or neither, is to test with...