Feedgarden

Browse

How long do you need to hold down the power button to turn off a PC?

https://www.osnews.com/story/146273/how-long-do-you-need-to-hold-down-the-power-button-to-turn-off-a-pc/

Article

Raymond Chen describes a Windows behavior tied to holding a PC's power button. After 12 seconds, the machine powers off at the hardware level without notifying the operating system, a safety measure for when the OS shutdown command fails. After eight seconds of holding the button, the Windows kernel detects an attempted forced power-off and captures a kernel dump, uploaded to Windows Error Reporting on next boot. The author notes a discrepancy: most PCs power off after only a few seconds—roughly 4–5 seconds according to most sources—so the 12-second hardware cutoff and 8-second dump trigger seem rarely reached. The forced power-off delay is handled by motherboard hardware, such as a microcontroller, not by Windows; ATX provides standby power and a button press shorts the power pin to ground, prompting the OS to shut down, while a sustained hold forces power off. Despite the apparent rarity, Chen says these “long power button hold” (LPBH) dumps do arrive at Microsoft, and he reviews them; cases where the screen is entirely black are sub-classified as “black screen LPBH” and routed to a special team. The author speculates that Windows might adapt its dump timing to the motherboard or chipset drivers, but this is unresolved and he invites more informed explanations.

HN discussion

Based on 8 selected comments and replies.

Commenters offered several explanations and anecdotes. superjan wondered whether the 12-second rule applies only when the OS fails to respond to a power-down request. throwa356262 joked that Microsoft may not have coordinated with hardware makers. Wowfunhappy found it spooky that the dumps reportedly reach Microsoft. benlivengood suggested server and consumer motherboards differ: BMCs log data, and some laptops report MANUALLY_INITIATED_POWER_BUTTON_HOLD after roughly eight seconds. epihelix noted modern laptops' embedded controller, not the OS, handles hard power-off, so lockups can still be powered down. NightPageReader said most PCs shut off quickly but Lenovo laptops seem to require a longer hold.

Selected comments: superjan · throwa356262 · Wowfunhappy · benlivengood · epihelix · NightPageReader

Read the full HN discussion

Search this site

The index loads when search opens.

    On this page

    Image