> 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
goodmythical 8 hours ago [-]
>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.
justsomehnguy 6 hours ago [-]
> Even a mechanical hard drive is doing >150MB/s,
Only in a sequential read/write operations and only for 3.5" and 2.5" 10k drives. 2.5" can do it on the outside tracks sometimes.
Now add the fragmentation of the filesystem and now it's sub 10MB/s.
> SSDs/NVMEs are doing multiples of that
Only in 'good' conditions. Fragmentation of the filesystem, fragmentation of the flash itself, size of the erase block, write amplification - all of these can plummet the performance[0] of a flash drive. And some cheap tablets/2-in-1 are using eMMC which is way worse than even a SATA SSD.=
When I hold the power button for 10 seconds on my linux machine because I want it off 'now' and not 'when it's good and ready', it is off very shortly after 10 seconds. When I did so on the same device when it was running Windows a year ago, there was no "please give us a sec".
So the "why" is "why does this (the machine turns off gracefully in the time I ask it to) not hold for only the most recent versions of a Windows machine"? What is the Windows machine doing now that it didn't do before that it cannot accomplish in the timeframe it's had for a very long time? Is there no optimization that can be done to avoid yet another userspace interruption? Is it that it needs some extra time for telemetry? That it needs some new undocumented verification step? That it's calling home to check for updates it could apply during this 'unscheduled' shutdown? What? What is it? Why? Why is it?
This just rings of the old "eject your USB" thing where the only reason to do so was the OS deciding to cache writes for the future instead of doing them at or as near as possible to the time the user requested them. The only reason my USB wouldn't have the files I expected it to is if the OS is behaving counter to the expectation that it'd already set for me of files being written at the time the button/script was executed.
There is no reason that we couldn't get a "your device is ensuring synchronization with the USB device" message back then, and no reason we can't get a "your machine may experience issues if you continue to hold the power button" message now.
As it stands, there is no reason to suspect (from only the message) that there will be any issues, and so users will ignore it. There is no reason in either the USB case or this one to not include a sentence detailing potential ramifications to allow the user to decide whether or not the requested action is genuinely required.
user_7832 8 hours ago [-]
> 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.
myself248 7 hours ago [-]
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.
63stack 8 hours ago [-]
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.
pooploop64 4 hours ago [-]
[dead]
thaumasiotes 8 hours ago [-]
>> 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.
pfooti 8 hours ago [-]
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.
Terr_ 8 hours ago [-]
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.
myself248 7 hours ago [-]
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.
rcxdude 8 hours ago [-]
A bit less useful in normal circumstances, though.
trashcan_man 7 hours ago [-]
This is dangerous thinking - a slippery slope into a world where words mean something. :)
justsomehnguy 6 hours ago [-]
You would really like it on a laptop, do you? Especially the ones with Power button in the place of Delete button.
NikolaNovak 8 hours ago [-]
"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?"
teddyh 7 hours ago [-]
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.
myself248 7 hours ago [-]
The PSU still outputs a Power Good signal, though I don't know if it actually goes false before the rails fall out of regulation. Easy enough to check with a 'scope, I guess.
The argument at the time was that motherboards shut down too fast before being able to even display this message. I don't believe I've ever seen it on "frozen" PCs I come across.
kitd 8 hours ago [-]
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.
mx7zysuj4xew 8 hours ago [-]
Care to share?
Shish2k 7 hours ago [-]
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
myself248 7 hours ago [-]
Same with telephone equipment, it doesn't have power switches. You slap in the fuses, in a very specific sequence, and it stays that way for decades.
LoganDark 9 hours ago [-]
First time I've ever seen AVIF on an image I tried to save. (monster in the box)
busymom0 4 hours ago [-]
I just used my iPhone screen recording to save it and send it to a friend
londons_explore 8 hours ago [-]
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.
wavemode 8 hours ago [-]
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.)
kelnos 7 hours ago [-]
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.
bovermyer 8 hours ago [-]
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.
codewench 7 hours ago [-]
First rule of engineering: any problem can be solved with strategic application of high explosives.
This is often generalized to the concept of "percussive maintenance"
mrandish 8 hours ago [-]
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."
myself248 7 hours ago [-]
While I was traveling last week, my work iPhone got itself into a state where an "Unable to install OneDrive" popup was at the frontmost layer of the screen, the button did nothing when tapped, and it inhibited interacting with all other controls.
Including the power-off function, which requires interacting with the touchscreen.
It was completely unusable. Couldn't check my email, couldn't make or receive calls, couldn't call 911 if I'd needed to, couldn't use my translate app, couldn't show the customs agent my confirmed flight to leave the country, without which they would deny me entry... Couldn't even start hotspot to pull the same data from my laptop. (Thankfully my traveling companion was able to convince them that we were on the same flight and they seemed satisfied with that, but holy crap, of all the dumb reasons to be caught in international limbo! If that hadn't worked, I would've tried hotspot off her phone. If I'd been alone, I would've been Very Boned™.)
I did manage to capture a screenshot of it in this state, amusingly enough, because THAT function uses a side-button interaction, and doesn't require the screen at all.
But somehow, POWERING THE DAMN THING OFF is not possible by the side buttons anymore.
I had just charged it when it got wedged, so it took 4 days for the battery to die.
Right there with ya shaking my fist, compadre.
starkrights 6 hours ago [-]
You have to do a sequence of buttons[0]. It’s stupid, especially when you only use it once in a blue moon and have to look it up to remember it, which you can’t do if you’re out and about and your only computing device is your phone.
They really love to complicate the things just for the sake of it.
NB Android uses 'hold VOL- and Power till poweroff' for 15+ years
starkrights 5 hours ago [-]
It’s always kinda funny when someone’s phone is fritzing out and they hand it to me, being the nearest tech dork, thinking I know how to restart it. Only for me to have to google whatever the particular restart sequence is because I think there’s been at least three different ones over the years.
sigh lol
moffkalast 7 hours ago [-]
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.
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.
netsharc 7 hours ago [-]
I know (knew?) it as 4 seconds...
TacticalCoder 8 hours ago [-]
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".
baal80spam 9 hours ago [-]
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.
NikolaNovak 8 hours ago [-]
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" :-/
Starlevel004 8 hours ago [-]
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?
ninkendo 9 hours ago [-]
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.
ptx 8 hours ago [-]
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.
gpvos 8 hours ago [-]
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.
kulahan 9 hours ago [-]
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.
firloop 9 hours ago [-]
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.
gpvos 8 hours ago [-]
On a reasonable phone, for a hard reset you can remove the battery and put it back.
Animats 9 hours ago [-]
To turn off, type Up Up Down Down Left Right Left Right B A.
rf15 8 hours ago [-]
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
Jhsto 7 hours ago [-]
I tried doing this once while getting into a US airport... I did a wrong sequence and the phone dialed 911.
dfxm12 9 hours ago [-]
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".
The information being available to you if you specifically search it out doesn’t imply it is advertised. The whole point of the word is that they bring your attention to something. It is explicitly unadvertised.
dfxm12 6 hours ago [-]
You're used "unadvertised" in a non literal way previously, but are trying to pretend you meant it in a more literal sense. Your original post with this meaning of "unadvertised" would be incredibly disingenuous.
It's also not secret because they published it.
Hamuko 9 hours ago [-]
There's a power button in control center.
kulahan 7 hours ago [-]
Useful if you’re not trying to restart because your phone is locked up.
GenerocUsername 8 hours ago [-]
"please wait while we try to exfiltrate as much telemetry from memory as possible before shitting down"
JdeBP 8 hours ago [-]
That technical support site that the article hyperlinks to is appalling.
rolph 10 hours ago [-]
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.
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
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.
Only in a sequential read/write operations and only for 3.5" and 2.5" 10k drives. 2.5" can do it on the outside tracks sometimes.
Now add the fragmentation of the filesystem and now it's sub 10MB/s.
> SSDs/NVMEs are doing multiples of that
Only in 'good' conditions. Fragmentation of the filesystem, fragmentation of the flash itself, size of the erase block, write amplification - all of these can plummet the performance[0] of a flash drive. And some cheap tablets/2-in-1 are using eMMC which is way worse than even a SATA SSD.=
[0] https://ssd.userbenchmark.com/SpeedTest/1218310/Samsung-SSD-... scroll to "User Benchmarks" under "Average Bench", look at "Random 4k" - oops, average is ~50MB/s
When I hold the power button for 10 seconds on my linux machine because I want it off 'now' and not 'when it's good and ready', it is off very shortly after 10 seconds. When I did so on the same device when it was running Windows a year ago, there was no "please give us a sec".
So the "why" is "why does this (the machine turns off gracefully in the time I ask it to) not hold for only the most recent versions of a Windows machine"? What is the Windows machine doing now that it didn't do before that it cannot accomplish in the timeframe it's had for a very long time? Is there no optimization that can be done to avoid yet another userspace interruption? Is it that it needs some extra time for telemetry? That it needs some new undocumented verification step? That it's calling home to check for updates it could apply during this 'unscheduled' shutdown? What? What is it? Why? Why is it?
This just rings of the old "eject your USB" thing where the only reason to do so was the OS deciding to cache writes for the future instead of doing them at or as near as possible to the time the user requested them. The only reason my USB wouldn't have the files I expected it to is if the OS is behaving counter to the expectation that it'd already set for me of files being written at the time the button/script was executed.
There is no reason that we couldn't get a "your device is ensuring synchronization with the USB device" message back then, and no reason we can't get a "your machine may experience issues if you continue to hold the power button" message now.
As it stands, there is no reason to suspect (from only the message) that there will be any issues, and so users will ignore it. There is no reason in either the USB case or this one to not include a sentence detailing potential ramifications to allow the user to decide whether or not the requested action is genuinely required.
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.
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.
You know what would work even better than that?
A power switch, where if you set it to "off", there's no power.
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'm afraid, Dave... I can feel my brain going.... I can feel it... Stop, Dave. Will you stop Dave?"
The argument at the time was that motherboards shut down too fast before being able to even display this message. I don't believe I've ever seen it on "frozen" PCs I come across.
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.
This is often generalized to the concept of "percussive maintenance"
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."
Including the power-off function, which requires interacting with the touchscreen.
It was completely unusable. Couldn't check my email, couldn't make or receive calls, couldn't call 911 if I'd needed to, couldn't use my translate app, couldn't show the customs agent my confirmed flight to leave the country, without which they would deny me entry... Couldn't even start hotspot to pull the same data from my laptop. (Thankfully my traveling companion was able to convince them that we were on the same flight and they seemed satisfied with that, but holy crap, of all the dumb reasons to be caught in international limbo! If that hadn't worked, I would've tried hotspot off her phone. If I'd been alone, I would've been Very Boned™.)
I did manage to capture a screenshot of it in this state, amusingly enough, because THAT function uses a side-button interaction, and doesn't require the screen at all.
But somehow, POWERING THE DAMN THING OFF is not possible by the side buttons anymore.
I had just charged it when it got wedged, so it took 4 days for the battery to die.
Right there with ya shaking my fist, compadre.
[0]: https://support.apple.com/guide/iphone/force-restart-iphone-...
NB Android uses 'hold VOL- and Power till poweroff' for 15+ years
sigh lol
Just gonna leave this here for no particular reason: https://community.frame.work/t/upgrading-to-bios-3-20-on-ryz...
Three seconds.
I think TFA is another wonderful display of Microsoft products' "quality".
I feel like the evil villain from sci-fi movies but "stay in your box, LLM" :-/
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.
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.
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.
At least for me, this is power and volume-up.
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.https://support.apple.com/guide/iphone/turn-iphone-on-or-off...
It's also not secret because they published it.
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.