Before you begin
If your HP EliteBook 840 G4 isn’t holding a charge or won’t turn on without being plugged in, then it could be your battery. The battery is what gives the charge to your device and allows it to hold charge. Without a working battery your device won't function properly. A good way to test this is to remove bottom cover, disconnect main battery and try to power on using AC only. If stable, replace the battery. After you've replaced the battery you're going to want to properly dispose of the old battery.