Chosen Solution

my computor turns on sometimes and other times it black screens

It’s not getting power possibly. You have to try and determine if its the connections that go to the power button on the device or if the battery is going bad. If you have a multimeter you can check to see if it is outputting the correct volts. It could also be the motherboard but at that point its sometimes not worth it