> I believe that on Windows Insider builds of Windows, you get a message that says something like “Please let go of the power button so we can collect more information, and then we will turn off the computer.” This gives the kernel more time to finish capturing its kernel dump
>> 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.
You know what would work even better than that?
A power switch, where if you set it to "off", there's no power.
My desktop has this feature- the power supply has its own switch that will cut power to everything. Ofc I could also just unplug it. But I bumped it once and it took me a little while to figure out why my computer wouldn't turn on.
IMO that's a necessary feature for any time when the wall-power stops being reliable.
For example, of the power goes out, I switch it to Off until it seems to be reliably back. Otherwise it might get cycled multiple times or damaged by brownouts.
I go upstream to the whole power strip or UPS in this case, but yeah, on the bench it's certainly nice to be able to kill the input and know +5VSB is truly off, etc.
> This gives the kernel more time to finish capturing its kernel dump
How large is the dump and how slow is the storage for it to take so much time? A modern SSD can write several megabytes in a fraction of a second; in a few seconds it can easily write 10s of MB even for garbage tier SSDs.
The skeptic in me says it's just MS doing a lazy job instead of trying to optimise their systems.
Just to give a sense of scale, copying a file between two nvme ssds is easily 1gb/s, even on your home computer, so this is now general and not lab numbers.
I wonder if, in case of certain types of crashes, it falls back to some sort of "safe mode" non-optimized drivers to minimize the chances of the dump being corrupted by the same problem that caused the crash.
If such drivers exist, I wouldn't be surprised if they were (as those of us old enough to remember 32BitDiskAccess=ON can readily tell you) at least an order of magnitude slower.
>This gives the kernel more time to finish capturing its kernel dump
But why does it need more than 10 seconds?
Even a mechanical hard drive is doing >150MB/s, so that's a gig and a half, and SSDs/NVMEs are doing multiples of that meaning you could write potentially write the entire RAM allocation to disk.
Old computers not only used to have real, hard cut-off power switches, but also used to detect when they were used, by monitoring the voltage level, and spend its last remaining milliseconds of life on saving all registers and related information to persistent storage. This way, when the computer was turned on again, they could resume running exactly where they were before being turned off.
I believe that is the entire comment - the implication being that mainframes are designed to be reliable to the point that you turn them on, and then they just work 24/7 until your company folds
Journalling prevents corruption of the filesystem itself, but it does nothing to prevent individual programs from having their files corrupted. (Maybe all programs ought to use sqlite as their data format, but alas.)
Journaling saves you from catastrophic filesystem corruption, but it doesn't make sure data that's still in caches has been fully saved to disk. Applications may not have saved their work, and even if they have, the OS may not have written everything out yet.
I've increasingly come to dislike 'soft' power buttons. My recent, high-end Windows 11 laptop can get in a state where I have to hold a soft button down for over 30 seconds just to force it to fully power off. While I can understand soft buttons on computer devices which might be writing caches to media, they're now endemic on devices where there's no clear justification for them. There's no reason a $20 battery powered hand vacuum can only be turned on or off with a three second press-and-hold on a soft button!
Even when my television has explicitly been placed in the most "off" state a user can reach, it secretly powers itself on while leaving the screen black at least twice a day and attempts to 'phone home' (which I know because it's blocked at the firewall from internet access). Worse, things with soft buttons are hard to control via a smart plug and home automation, requiring a more advanced IR emitter device, learning the relevant codes, etc.
I hate how enshittification is prematurely turning all of us into "angry old man shakes fist at cloud."
Remember how laptops used to have an easily detachable battery, pull the latch, out it pops? Came in handy on multiple occasions in this very sort of situation. In order for us to be able to completely trust a soft power off, the mobo's firmware needs to not completely suck. An impossible ask for most manufacturers in my experience.
When all else fails, you can shut down your computer through explosive kinetic propulsion of high-density objects into the computer's power supply. Even Microsoft hasn't found a way to get around that.
Meanwhile I hit the power button once on a Proxmox (hence Debian Linux) machine with countless VMs and containers and everything is shut down cleanly in about three seconds: clean shutdowns of the everything, including clean shutdown of the VMs, then Proxmox shuts itself down and the machine turns off.
Three seconds.
I think TFA is another wonderful display of Microsoft products' "quality".
I can't begin to describe how obnoxious I find the "we" in Windows. If I remember correctly, it began with Windows 10 - before, each message was impersonal, as they should be.
I literally returned a game on Steam because it said “let’s get you signed in” trying to make me sign in with a Microsoft account. I hate forced sign ins for single player games as it is, but I think I would’ve stuck with it and tried the game if they didn’t also use such infantilizing language on top of it.
Also "Welcome" instead of "Logging in" while Windows is actually still deciding whether or not the user is welcome and might still reject the login attempt.
And "Getting things ready for you" when I didn't ask for any "things" to be done. Microsoft is doing whatever they're doing for their own purposes, without informing me, without my permission, and definitely not "for you".
And "Don't turn off your computer". Is that an order or a threat?
All the messaging in recent Microsoft products feels deceptive, condescending and vaguely threatening.
I agree, and, sometimes this year ChatGPT started using the "I" pronoun. Old news for most people I'm sure but still unnerving to me - especially when it started describing humanity as "We" in recent summary of Blindsight/Echopraxia.
I feel like the evil villain from sci-fi movies but "stay in your box, LLM" :-/
A lot of the time when I ask chatgpt to explain something it gives me an unsolicited section about its own opinion on it. Like, okay, thanks for letting me know?
I am infinitely disturbed by the text "Don't turn off your computer" when I'm updating a computer that isn't mine. What does it know about that other computer?
Also, "You're 67% there." When I look at myself, I'm pretty sure I'm 100% there, thank you very much.
They could just say "Updates 67% finished. Don't turn off this computer." Equally clear, just as polite, and actually correct.
This is the perfect time to remind everyone that Apple broke The Rule. You can no longer shut down iPhones by simply holding the power button. You now need to know a secret, unadvertised combo of buttons.
It's worse if you have to force restart a frozen iPhone, which requires an even more complex button combination:
If iPhone isn’t responding, and you can’t turn it off then back on, try forcing it to restart.
Press and quickly release the volume up button (on iPhone Duo, the volume button nearest the side button).
Press and quickly release the volume down button (on iPhone Duo, the other volume button).
Press and hold the side button.
This has been the case for 9 years now, since the iPhone 10 when they first got rid of the home button.
When they had a home button it used to be:
- Hold side button: power off/force restart
- Hold home button: use Siri
Then with the home button gone it became:
- Hold side button: use Siri
So they got rid of a dedicated button to restart the phone and instead mad it “volume up, volume down, then hold side button”… it’s not an entirely unreasonable approach given the constraints.
I don't have an iPhone, so I don't know if this is in the manual, but as family tech support, it's easy enough to find, direct from Apple, with a quick web search of "turn off iPhone", that I don't think you can say that this is "unadvertised".
what would be very telling is a message to restore the internet connection in order to properly power down the device, there are some people who yank the cords, and only stopped yanking batteries when they were glued in.
you should be suspicious of what any device is doing by wire nowadays, if a software has to prepare for a shutdown, and wont even give you a manifest of proposed shutdown tasks.
preserving a ram image in storage is cool, surruptitiously sending logs, and reports out of the device is not.
> So if it knows it won’t finish its jobs by ten seconds, it pleads with the user to stop pressing the button.
Might be related to https://devblogs.microsoft.com/oldnewthing/20261029-00/?p=11...:
> I believe that on Windows Insider builds of Windows, you get a message that says something like “Please let go of the power button so we can collect more information, and then we will turn off the computer.” This gives the kernel more time to finish capturing its kernel dump
>> 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.
You know what would work even better than that?
A power switch, where if you set it to "off", there's no power.
A bit less useful in normal circumstances, though.
My desktop has this feature- the power supply has its own switch that will cut power to everything. Ofc I could also just unplug it. But I bumped it once and it took me a little while to figure out why my computer wouldn't turn on.
IMO that's a necessary feature for any time when the wall-power stops being reliable.
For example, of the power goes out, I switch it to Off until it seems to be reliably back. Otherwise it might get cycled multiple times or damaged by brownouts.
I go upstream to the whole power strip or UPS in this case, but yeah, on the bench it's certainly nice to be able to kill the input and know +5VSB is truly off, etc.
This is dangerous thinking - a slippery slope into a world where words mean something. :)
> This gives the kernel more time to finish capturing its kernel dump
How large is the dump and how slow is the storage for it to take so much time? A modern SSD can write several megabytes in a fraction of a second; in a few seconds it can easily write 10s of MB even for garbage tier SSDs.
The skeptic in me says it's just MS doing a lazy job instead of trying to optimise their systems.
Just to give a sense of scale, copying a file between two nvme ssds is easily 1gb/s, even on your home computer, so this is now general and not lab numbers.
I wonder if, in case of certain types of crashes, it falls back to some sort of "safe mode" non-optimized drivers to minimize the chances of the dump being corrupted by the same problem that caused the crash.
If such drivers exist, I wouldn't be surprised if they were (as those of us old enough to remember 32BitDiskAccess=ON can readily tell you) at least an order of magnitude slower.
>This gives the kernel more time to finish capturing its kernel dump
But why does it need more than 10 seconds?
Even a mechanical hard drive is doing >150MB/s, so that's a gig and a half, and SSDs/NVMEs are doing multiples of that meaning you could write potentially write the entire RAM allocation to disk.
"Please release the power button" has a massive HAL9000 feel to it:
"I'm afraid, Dave... I can feel my brain going.... I can feel it... Stop, Dave. Will you stop Dave?"
Old computers not only used to have real, hard cut-off power switches, but also used to detect when they were used, by monitoring the voltage level, and spend its last remaining milliseconds of life on saving all registers and related information to persistent storage. This way, when the computer was turned on again, they could resume running exactly where they were before being turned off.
I read an amusing and probably apocryphal comment about the power button on an IBM zSeries machine: it's designed to be only used twice.
Care to share?
I believe that is the entire comment - the implication being that mainframes are designed to be reliable to the point that you turn them on, and then they just work 24/7 until your company folds
First time I've ever seen AVIF on an image I tried to save. (monster in the box)
Computers have had journalling filesystems for 25 years now. They should survive a power failure at any point...
So, use that ability! Don't shut anything down gradually - just pull the plug.
In a similar vein, don't worry about properly destructing and unloading everything when shutting down a program... Just call exit(0) and quit.
Journalling prevents corruption of the filesystem itself, but it does nothing to prevent individual programs from having their files corrupted. (Maybe all programs ought to use sqlite as their data format, but alas.)
Journaling saves you from catastrophic filesystem corruption, but it doesn't make sure data that's still in caches has been fully saved to disk. Applications may not have saved their work, and even if they have, the OS may not have written everything out yet.
I've increasingly come to dislike 'soft' power buttons. My recent, high-end Windows 11 laptop can get in a state where I have to hold a soft button down for over 30 seconds just to force it to fully power off. While I can understand soft buttons on computer devices which might be writing caches to media, they're now endemic on devices where there's no clear justification for them. There's no reason a $20 battery powered hand vacuum can only be turned on or off with a three second press-and-hold on a soft button!
Even when my television has explicitly been placed in the most "off" state a user can reach, it secretly powers itself on while leaving the screen black at least twice a day and attempts to 'phone home' (which I know because it's blocked at the firewall from internet access). Worse, things with soft buttons are hard to control via a smart plug and home automation, requiring a more advanced IR emitter device, learning the relevant codes, etc.
I hate how enshittification is prematurely turning all of us into "angry old man shakes fist at cloud."
Remember how laptops used to have an easily detachable battery, pull the latch, out it pops? Came in handy on multiple occasions in this very sort of situation. In order for us to be able to completely trust a soft power off, the mobo's firmware needs to not completely suck. An impossible ask for most manufacturers in my experience.
Just gonna leave this here for no particular reason: https://community.frame.work/t/upgrading-to-bios-3-20-on-ryz...
When all else fails, you can shut down your computer through explosive kinetic propulsion of high-density objects into the computer's power supply. Even Microsoft hasn't found a way to get around that.
I thought the hard powerdown was after 10 seconds, but apparently it's 12 seconds now. I can see that number creeping up further in the near future.
That technical support site that the article hyperlinks to is appalling.
Meanwhile I hit the power button once on a Proxmox (hence Debian Linux) machine with countless VMs and containers and everything is shut down cleanly in about three seconds: clean shutdowns of the everything, including clean shutdown of the VMs, then Proxmox shuts itself down and the machine turns off.
Three seconds.
I think TFA is another wonderful display of Microsoft products' "quality".
I can't begin to describe how obnoxious I find the "we" in Windows. If I remember correctly, it began with Windows 10 - before, each message was impersonal, as they should be.
Don’t forget “let’s”…
I literally returned a game on Steam because it said “let’s get you signed in” trying to make me sign in with a Microsoft account. I hate forced sign ins for single player games as it is, but I think I would’ve stuck with it and tried the game if they didn’t also use such infantilizing language on top of it.
Also "Welcome" instead of "Logging in" while Windows is actually still deciding whether or not the user is welcome and might still reject the login attempt.
And "Getting things ready for you" when I didn't ask for any "things" to be done. Microsoft is doing whatever they're doing for their own purposes, without informing me, without my permission, and definitely not "for you".
And "Don't turn off your computer". Is that an order or a threat?
All the messaging in recent Microsoft products feels deceptive, condescending and vaguely threatening.
I agree, and, sometimes this year ChatGPT started using the "I" pronoun. Old news for most people I'm sure but still unnerving to me - especially when it started describing humanity as "We" in recent summary of Blindsight/Echopraxia.
I feel like the evil villain from sci-fi movies but "stay in your box, LLM" :-/
A lot of the time when I ask chatgpt to explain something it gives me an unsolicited section about its own opinion on it. Like, okay, thanks for letting me know?
I am infinitely disturbed by the text "Don't turn off your computer" when I'm updating a computer that isn't mine. What does it know about that other computer?
Also, "You're 67% there." When I look at myself, I'm pretty sure I'm 100% there, thank you very much.
They could just say "Updates 67% finished. Don't turn off this computer." Equally clear, just as polite, and actually correct.
"please wait while we try to exfiltrate as much telemetry from memory as possible before shitting down"
This is the perfect time to remind everyone that Apple broke The Rule. You can no longer shut down iPhones by simply holding the power button. You now need to know a secret, unadvertised combo of buttons.
At least for me, this is power and volume-up.
It's worse if you have to force restart a frozen iPhone, which requires an even more complex button combination:
https://support.apple.com/guide/iphone/force-restart-iphone-...
This has been the case for 9 years now, since the iPhone 10 when they first got rid of the home button.
When they had a home button it used to be:
Then with the home button gone it became:
So they got rid of a dedicated button to restart the phone and instead mad it “volume up, volume down, then hold side button”… it’s not an entirely unreasonable approach given the constraints.
To turn off, type Up Up Down Down Left Right Left Right B A.
Weird, after I did that the error persisted and I had to kill my iphone 30(!) times before it finally submitted to the force shutdown
On a reasonable phone, for a hard reset you can remove the battery and put it back.
There's a power button in control center.
I don't have an iPhone, so I don't know if this is in the manual, but as family tech support, it's easy enough to find, direct from Apple, with a quick web search of "turn off iPhone", that I don't think you can say that this is "unadvertised".
https://support.apple.com/guide/iphone/turn-iphone-on-or-off...
what would be very telling is a message to restore the internet connection in order to properly power down the device, there are some people who yank the cords, and only stopped yanking batteries when they were glued in.
you should be suspicious of what any device is doing by wire nowadays, if a software has to prepare for a shutdown, and wont even give you a manifest of proposed shutdown tasks.
preserving a ram image in storage is cool, surruptitiously sending logs, and reports out of the device is not.
Preparing a load-bearing comment…