Funadvice Logo

Why does my laptop keep going into standby and shutting down?

Home More advice Computers & Tech

Its a HP, When i press the power button it goes to the HP invent page like normal, but then its just a black screen and the power button turns orange like its in standby or sleep mode. After about 20 minutes of that it goes to my desktop like normal but it shuts off within 15 seconds. The charger was in so it's not like it didnt hava a battery. Does anyone have a clue of whats wrong with it? :(