I have an HP Laptop. Here recently it has been shutting off by itself. no warning. I ran it in safe mode and did a full system scan. Got rid of one severe virus and then for a couple days it was fine. But now its shutting off on its own again. At first it'd take a while but now almost right after I log on, it turns off. It does run in safe moded though which is how I am using it right now. Ran another scan, nothing. It is always plugged into the power sorce.

Dani AI

Generated

Brief expert note tying the replies together for quicker troubleshooting.

described abrupt shutdowns with intermittent recovery; and pointed toward hardware-related causes. The quickest way to decide whether this is a software, power, or board-level problem is a short, ordered diagnostic flow that starts noninvasively and moves to tools that produce clear evidence.

  • Check Windows system logs (Event Viewer) for unexpected shutdown entries (look for Kernel-Power events) to see whether the OS records a fault before power loss.
  • Run the OEM hardware diagnostics from boot (HP has a UEFI/boot-time hardware test) to exercise CPU, battery, adapter and fans without Windows running.
  • Test with minimal boot: do a clean boot (disable third-party services) or boot a Linux live USB for an hour — stability outside the installed OS points at software/driver causes.
  • Run a memory test (MemTest86) and a disk surface/SMART check for failing RAM or drive issues that can trigger crashes.
  • Verify power components: try running on AC with the battery removed (if removable), and if possible measure the adapter output with a multimeter or try a known-good adapter.
  • Watch for fan behavior and temperature readings in BIOS/diagnostics; if thermal sensors show safe temps but the laptop still cuts power, focus on the power subsystem or motherboard.

Cautions: do not open the laptop if it is under warranty; disconnect power and use ESD precautions when testing components. If diagnostics point to adapter/battery failure or a recurring Kernel-Power error without a clear software cause, hardware repair or component replacement is the next step.

Recommended Answers

All 2 Replies

hi and welcome to daniweb,not sure how old the laptop is but they do build up with dust on the inside and need a good cleaning ,if its older and never been cleaned .it will need to be taken apart to get it really clean

Could be that it's overheating, and if it is, you could (like caperjack said) try to clean the dust inside. You could also buy a laptop cooling platform (with vents in it) or put something underneath the back side of your laptop so that it is tilted a bit, so that the heat can flow out of your laptop more easily.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.