Raymond Chen published another story from the Windows development trenches, this time about what happens when you hold down the power button.
If you hold a PC’s power button for 12 seconds, it will turn off at the hardware level without notifying the operating system. This is a safety feature so that you can turn of the computer even if the operating system’s “Shut down” command isn’t working.
After eight seconds of the power button being held down, the Windows kernel realizes that the user is trying to do a force-power-off of the system, and it quickly takes a kernel dump that can be uploaded to the Windows Error Reporting service the next time you turn the system on.
↫ Raymond Chen
I’m a bit confused by these numbers, because I have never seen a PC take this long to power off when holding down the power button; usually it takes only a few seconds to do so, meaning Windows would never generate said kernel dump. I tried reading through the various ATX specification documents to find more information on this, but then I remembered I’m not an electrical engineer so I have no idea what I’m looking at.
The baseline is that ATX always provides standby power to the motherboard, and pressing the power button shorts the power button pin to ground, telling the PSU to power on fully. Pressing the power button if the computer is running tells the operating system to initiate a shutdown (although you can change this behaviour), but if you hold the button down for a certain number of seconds, it forces a power-off. So far, so good; basic information.
It seems that the length of time you need to hold down the power button to force a power-off is dependent on the motherboard in question, handled by a microcontroller or some other IC. Virtually every source I can find says this timing is set to about 4-5 seconds, which is quite a bit shorter than the number of seconds given by Chen. Perhaps motherboard manufacturers consider the 12 seconds to be too long, and just do their own thing, regardless what the ATX specification suggests?
What further complicates matters is that Chen details how the kernel dumps created after pressing the power button for 8 seconds do, in fact, get sent to Microsoft once the computer turns on again. In fact, he is one of the people who gets to see these dumps and respond to them, so obviously they are indeed rolling in. Does this mean there’s a huge number of computers out there that require you to hold down the power button for 12 seconds to force a shutdown that nobody’s ever seen?
These emergency kernel dumps are internally classified as “long power button hold” (LPBH) failures. One of the pieces of information recorded in these emergency kernel dumps is whether the screen consists entirely of black pixels. Those failures are sub-classified as “black screen LPBH”, and they go to a special virtual team for analysis. (I happen to be a member of this black screen LPBH team.)
↫ Raymond Chen
What’s going on here? Obviously, I’m not going to doubt Chen, so there must be something here I don’t quite understand or that I’m missing. The ATX specification might suggest 12 seconds, but could Windows perhaps adapt its kernel dump behaviour – dumping much sooner than 8 seconds – based on the motherboard it’s running on, maybe through information provided by the chipset drivers?
I would love it if someone more knowledgeable than me can help us unravel this small mystery.

Thom Holwerda,
I am also confused with what Chen’s talking about. Most systems power off after 4 or 5 seconds. If microsoft coded it the way it’s described in the blog, it simply would not work for most computers. A commenter on his website said this too, so maybe Chen will respond with an update.
I don’t believe the ATX specification would have anything to say about this, it’s a function of the motherboard. I searched the manual of 3 different manufactures and they all say the same thing…
Gigabyte Z590 AORUS PRO AX Manual:
HP elite 8300 manual:
aspire 4830t manual:
Furthermore, I am skeptical of windows being able to detect a long press at all. I don’t believe ACPI reports this information. Maybe it could just be a linux limitation. By sheer coincidence a patch was submitted for this very issue a few weeks ago…
https://lkml.iu.edu/2610.1/10586.html
However the actual ACPI specs do NOT show a key release for the power button event at all.
https://uefi.org/specs/ACPI/6.6/05_ACPI_Software_Programming_Model.html#control-method-power-button-notification-values
So I think this puts the veracity of the entire blog post in question. It’s possible Chen is just misremembering how the function works. It could be that there is an 8 second interval to trigger a kernel dump, but rather than a long button press (which would clearly shut down the computer), windows is looking for *two* button presses in this interval. That seems plausible and sort of aligns with the feature Chen describes.
I won’t test this myself because I don’t really feel like testing hard shutdowns on the only windows computer I have for work. Someone else can test it and report back 🙂 I know that on linux mint, one button press triggers a shutdown dialog with a 30 second countdown and a second button press starts the shutdown right away.
I’m also only aware of the 4-5s range.
Maybe it’s a server-thing?
I manage two rack servers at work, an old Supermicro (2020 era) and an even older Dell PowerEdge (2014 era). Both power off completely after about five seconds of holding the power button.
Anecdotally, I have definitely experienced situations where the computer was completely frozen and a “hard” shutdown really did take 10+ seconds to register.
Yeah. Windows will try to shut down earlier. But 10sec is what it has required when I have had frozen systems.
Carewolf,
This feature exists precisely to mitigate frozen systems. A forced shutdown is literally that, the OS & CPU get forcefully shut down regardless of what they are doing. So if a computer shuts down normally within 10s, holding down the button will force it to shutdown in 4-5s for the vast majority of PCs. Think of it like pulling the power cord – the OS does not get a say.
Earlier operating systems like DOS didn’t provide a software means of shutting down and so this “force shutdown” mechanism became the normal shutdown procedure.
To who’s encountering a forced shutdown period of 10s or more, it would be informative to the rest of us to know what hardware you are using.
I’ve been thinking about it, and I realized that I have owned two devices that follow this 10s+ standard. One was a Surface Go 2, which I sold recently, and the other is an HP Elite x2 1011 G1, which I still have and use to troubleshoot and modify my Volvo and Ford vehicles. Both devices are tablets (the HP is a “hybrid” tablet that requires its keyboard dock to charge and use USB ports). I wonder if the standard Chen is speaking of is for tablets, and more specifically for Surface tablets and their major clones like the HP Elite series.
Morgan,
Yeah. Although it’s not true for most PCs, maybe Chen meant MS surface tablets and just forgot to say it. Unfortunately we won’t know until Chen gets back from Alpha Centauri. I still want that to be canon 🙂
Maybe Chen is referring to counting in his head as fast as he can.
cosmotic,
Maybe we’re all just wrongly applying Newtonian physics to a scenario that demands relativity. The computer may be counting 4 seconds, but Chen’s computer is near a deep gravity well and so 12 seconds pass from Chen’s frame of reference.
From the 12 seconds quoted, I am making an educated guess that this might be about Qualcomm WoA devices. This 12 seconds power-off is AFAIUI the default PMIC configuration.
Another possibility is Surface hardware and/or similarly specced “integrated” systems. Those integrated systems *sometimes* implement the power button handling outside of ACPI, falling back to ACPI with different semantics.
One such example is the Steam Deck, which exposes the power button on a virtual presses from both the ACPI event, and from a virtual “AT Translated Set 2 keyboard”. The former is, if memory serves, produced only in situations outside of long presses. In this instance I believe the “LPBH” delay is still shorter than 12 seconds. In SteamOS, the ACPI event effectively ends-up being ignored, and the virtual keyboard allows them to detect long-presses to pop a menu up. Why did they still implement the ACPI device? I assume it’s because this way it’s still Wintel/PC enough for when it matters for operating systems.
Plot twist: Chen is on his way to Alpha Centauri at .94c.
Chen is just using base3 for numbers
fuflo,
That actually checks out, haha.
12s base3 = 5s base10
I’ve had HP and Asus equipment that took 10-15 seconds, regardless of what OS I was running. Mostly laptops but an hp bookshelf system I had took close to 15 or more at different points. Up to half a minute
My Mac Studio takes anywhere from 3 seconds to about 10 (I think there’s something undocumented happening in this).
So stuff is out there that does take longer.
lostinlodos,
While it’s possible some hardware waits half a minute or even variable amounts of time before forcing power off, I’d like to see more direct evidence for this. If power off takes that long, or a variable amount of time as some are suggesting, then IMHO it might actually be evidence that a forced shutdown is NOT happening (for whatever reason). It could mean that OS finally got around to shutting down on its own accord.
The power state machine implemented by hardware is defined by ACPI in some detail here and the specification gives the user the ability to literally override the OS & CPU.
https://uefi.org/specs/ACPI/6.5/04_ACPI_Hardware_Specification.html
There may be hardware that doesn’t follow the standard, we’ve been hearing anecdotally that surface tablets don’t use this mechanism for example. But in order for a forced shutdown feature to be useful, it needs to be deterministic when the operator triggers it, otherwise it’s ineffective. This is why I’d like to see documentation for these outliers.