If it only happens when running on battery power but when it's plugged into a power socket it will boot and the screen doesn't turn black, the most likely culprit is a bad battery.
If that's the case and if the battery won't hold a full charge, the options are to run it only when you can plug it into a electrical outlet or replace the battery.
|