Could the confusion be that the 12 seconds only apply when the OS fails to respond to the power-down request? I recall struggling with laptops stuck in a boot loop, and it did pay off to hold the power-down button a little longer.
My guess; server and consumer motherboards are very different. BMCs log a lot of data and on startup if the OS driver reads the log it can put whatever it wants in the crashdump. Consumer motherboards mostly only store the reason for last poweroff which the OS can read on next boot. Server MBs may also have a longer timeout before cutting power from a long-press.
Apparently from standby the power-off time on some laptops is much longer and you get a MANUALLY_INITIATED_POWER_BUTTON_HOLD which kicks off in the ~8 seconds from the article.
What about modern devices (such as laptops) that have a fixed battery? They shouldn’t rely totally on software to force a hard power off because that’s not safe. If the software hangs you cannot power down
The EC (embedded controller) controls the hard power off on a modern laptop, not the OS at all. That's why you can still power down in the event of a device lockup (thankfully).
Have had it happen on the Essential Phone and my MIL's Chromebook (don't remember the model). At least with the Chromebook, you can open it with a screwdriver and pull the battery. Better than waiting however many days for the battery to fully die so the EC resets.
But that doesn't explain where the dumps are coming from.
> 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.
Appropriately for halloween, this seems somewhat spooky.
I guess that many PCs don't generate the dumps because they shut down after a shorter period, and they're just analyzing kernel dumps from a subset of PCs.
Right, but that means there must be some PCs that take > 8 seconds. Has... anyone ever seen one? In the past two decades? (I'm time bounding the question only because I know nascent PCs did lots of weird stuff.)
It's not like there are that many PC SKUs out there (or motherboard SKUs for custom stuff). And even if there are two weird models, how useful is only that data?
The cool thing is my office Microsoft Surface Laptop that will randomly wake up and sit there with its keyboard backlight full on and act dead... then you have to hold it for 30 seconds!
I guess I'm the one contributing to those crashlogs.
My own PC doesn't take long at all to power off, although I know that for example on Lenovo laptops you need to hold that power button for quite long, I may count it next time I do it :)
The ACPI specification says: Additionally ACPI defines a fail-safe Off protocol called the “power button override,” which allows the user to initiate an Off sequence in the case where the system software is no longer able to recover the system (the system has hung). ACPI defines that this sequence be initiated by the user pressing the power button for over 4 seconds, at which point the hardware unconditionally sequences the system to the Off state. This logic is represented by the PWRBTN_OR signalcoming into the sleep logic.
My desktop, which has an Asus motherboard but doesn't have Windows installed on it, also takes in the 3-4 seconds range for a hard shutdown. I would have assumed that it is entirely hardware-dependent and the OS hasn't much to do with it. On my Macbook Air I just counted 5 for a hard shutdown.
Could the confusion be that the 12 seconds only apply when the OS fails to respond to the power-down request? I recall struggling with laptops stuck in a boot loop, and it did pay off to hold the power-down button a little longer.
My guess; server and consumer motherboards are very different. BMCs log a lot of data and on startup if the OS driver reads the log it can put whatever it wants in the crashdump. Consumer motherboards mostly only store the reason for last poweroff which the OS can read on next boot. Server MBs may also have a longer timeout before cutting power from a long-press.
Apparently from standby the power-off time on some laptops is much longer and you get a MANUALLY_INITIATED_POWER_BUTTON_HOLD which kicks off in the ~8 seconds from the article.
What about modern devices (such as laptops) that have a fixed battery? They shouldn’t rely totally on software to force a hard power off because that’s not safe. If the software hangs you cannot power down
The EC (embedded controller) controls the hard power off on a modern laptop, not the OS at all. That's why you can still power down in the event of a device lockup (thankfully).
It's all fun and games until the EC locks up.
Have had it happen on the Essential Phone and my MIL's Chromebook (don't remember the model). At least with the Chromebook, you can open it with a screwdriver and pull the battery. Better than waiting however many days for the battery to fully die so the EC resets.
Some laptops have a battery reset button for cases like this. For example lenovo has a pinhole where you can press a tiny button using a paperclip.
https://devblogs.microsoft.com/oldnewthing/20250107-00/?p=11...
Looks like Microsoft forgot to talk to hardware manufacturers about this feature...
But that doesn't explain where the dumps are coming from.
> 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.
Appropriately for halloween, this seems somewhat spooky.
I guess that many PCs don't generate the dumps because they shut down after a shorter period, and they're just analyzing kernel dumps from a subset of PCs.
Right, but that means there must be some PCs that take > 8 seconds. Has... anyone ever seen one? In the past two decades? (I'm time bounding the question only because I know nascent PCs did lots of weird stuff.)
It's not like there are that many PC SKUs out there (or motherboard SKUs for custom stuff). And even if there are two weird models, how useful is only that data?
The cool thing is my office Microsoft Surface Laptop that will randomly wake up and sit there with its keyboard backlight full on and act dead... then you have to hold it for 30 seconds!
I guess I'm the one contributing to those crashlogs.
until it stops making noise :|
My own PC doesn't take long at all to power off, although I know that for example on Lenovo laptops you need to hold that power button for quite long, I may count it next time I do it :)
suposedly the sepc for ATX was mentioing 4 seconds. But today's laptops take way longer.
The ACPI specification says: Additionally ACPI defines a fail-safe Off protocol called the “power button override,” which allows the user to initiate an Off sequence in the case where the system software is no longer able to recover the system (the system has hung). ACPI defines that this sequence be initiated by the user pressing the power button for over 4 seconds, at which point the hardware unconditionally sequences the system to the Off state. This logic is represented by the PWRBTN_OR signalcoming into the sleep logic.
the word "over" makes the difference I guess.
My desktop, which has an Asus motherboard but doesn't have Windows installed on it, also takes in the 3-4 seconds range for a hard shutdown. I would have assumed that it is entirely hardware-dependent and the OS hasn't much to do with it. On my Macbook Air I just counted 5 for a hard shutdown.
It seems to be 7s, at least in ntoskrnl.exe 10.0.22621.1105: