"This message has been on the screen for almost two hours now." (unsung.aresluna.org)

232 points by firloop a day ago

144 comments:

by drillsteps5 4 hours ago

For what it's worth Windows 11 has been unable to shut down on my regularly updated gaming desktop most of the time for the last couple years.

I shut it down through the UI or using the power button (which seems to do the same thing) and the machine seems to turn off (screen is off) but it's still on (I can hear the fans still spinning). No reaction to the power or reset buttons button whatsoever, so my power button now is the power switch on the back of my PSU which cuts the power for good. When I turn it back on it boots up like nothing happened.

Annoying but hey... it's Windows.

by rr808 4 hours ago

Try asking your favorite AI with that symptom. I had similar problem and it helped track down the problem and suggested the fix. I think it was a crappy driver that I didn't even use from Corel, can't remember the exact cause.

by drillsteps5 43 minutes ago

Yes essentially there's a driver somewhere which isn't shutting down properly and preventing the system from completing the shutdown. I went over the list and disabled quite a few and ended up disabling some peripherals that I barely was able to bring back and then I thought you know what... I think I can live with the power button being on the back of the case instead of in the front. It's just a gaming box after all...

by NooneAtAll5 3 hours ago

power button not connected to actual power in any way seems like a motherboard design problem...

by dspillett 3 hours ago

MS calls it “modern standby”. It is why proper hibernate is usually hidden, and broken on some laptops if you unhide it.

For a long time most laptops have had no true hardware power button. Long-press-to-properly-go is enforced in hardware (though not before the signal to the OS now, apparently) so is close enough the vast majority of the time, though I have seen that fail and had to just wait out the laptop battery completely running dry (it was not one that could be easily removed to cut power that way).

by drillsteps5 38 minutes ago

Some (many?) laptops have a hard reset button (similar to cellphones) that you can press with an end of a paperclip which interrupts power and thus resets the system. Saves you a few minutes to open the back to disconnect the battery

by mzajc a day ago

> 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

by humblefly 8 hours ago

Given the report that a user had this message on the screen for two hours, this still feels like shoddy engineering. Even on the off chance that the OS can't wrap it up in 10 seconds and that capturing a dump is really that important (why?), it should obviously give up and at least hide the message (but ideally, power off) if it can't get stuff done for, say, 30 secs.

by goodmythical a day 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.

by cshokie 8 hours ago

A full kernel dump is indeed writing the entire contents of RAM to disk. If you have 64GB of RAM then it is writing 64GB to disk.

Also it doesn’t get the full ten seconds. The power button timer is ~5 seconds before dump collection is even triggered. That is then racing the 10 seconds before the hardware restarts.

Five seconds to write potentially tens of GB to disk is not much time, even with an NVME SSD.

by Dylan16807 7 hours ago

"Kernel dump" sounds like the wrong word for that... But is that what windows insider builds do? Normal windows throws out a minidump in the megabyte range.

by cshokie 6 hours ago

It is configurable. The defaults may differ for insider builds. A full kernel dump includes all memory. A small kernel dump is only in the kilobyte range and has no user mode memory.

https://learn.microsoft.com/en-us/windows-hardware/drivers/d...

by justsomehnguy a day 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.=

[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

by taneq 5 hours ago

Is the page file not contiguous?

by p_l 5 hours ago

Not guaranteed to be, not at all, given that windows grows and shrinks it dynamically

by goodmythical a day ago

Sure, sure, but the question stands.

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.

by zitterbewegung 8 hours ago

Linux doesn’t care about you shutting down before the whole kernel dump and or a clean shutoff. Even macOS doesn’t do this. A clean shutoff though might prevent file system integrity . This is also an aside but macOS can reserve some RAM so you can close an application or process that is exhausting your RAM.

by toast0 8 hours ago

> 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?

Windows really wants to shut down cleanly. Shutting down cleanly often took more than 10 seconds, or you wouldn't be holding the button.

Now it's detecting you are holding the power button, and at least it triggers user messaging. Maybe it tries to shutdown again, with feeling? Maybe it includes a memory dump or other telemetry?

> 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.

I mean, brutual experience has taught developers that users will not read any information provided to them. For shutdown, you get a message to please let it shut down nicely, and then you'll get another message when you start it up telling you it's taking longer and you may have lost data because you did it wrong.

For USB, it's similar, when you insert it after you removed it uncleanly, it takes longer and yells at you some more.

by thaumasiotes 2 hours ago

> Shutting down cleanly often took more than 10 seconds, or you wouldn't be holding the button.

I don't follow. The normal case for a forced power off is that the computer has crashed. The problem isn't that the shutdown process takes more than 10 seconds, it's that the shutdown process isn't working.

Under the assumption that a clean shutdown never takes more than one second, you'd still need to hold the button down for 12 seconds, because you can't trigger a shutdown anyway.

by justsomehnguy 15 hours ago

First of all you are comparing very different OSes with very different behaviours under the boot. You can't translate how it goes in one OS to another one.[0]

Also, "10 seconds" are clearly related to the laptops because they don't have the proper power button and need both the "ACPI shutdown" and "Force power-off". The latter should be controlled by the BMC but considering this is a tablet...

And to clarify:

> This is how I understand it: Windows now gets a signal whenever the user holds the power button

in the TFA is exactly the ACPI shutdown signal received by the OS from BMC.

Now:

> 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?

Well, considering this is happening at the attempt to force a power-off then I can suggest this:

- there were enough edge cases when the user needed to perform a forced power-off

- quite unsurprisingly there not a lot of things still working when the shutdown sequence already initiated

- there was some addition telemetry added to capture these edge cases but the forced power-off prevented the capture of the data would could help to diagnose the issue => plead was added

And the things aren't fast because:

- the last thing you want to do when you are writing the telemetry at the shutdown is to mess up the filesystem, up to the unusable state => so you do write it with the write caching turned off. This is slow even on SSD, just check it

- (maybe, I don't know) this is a bit more than just a 'memory dump' so the system actually runs some tests - these take time despite all the bazillions of IOPS in tehe normal operations environment

So you have at least:

- the half of the OS aren't running - it's shutdown sequence

- things aren't right in the first place - that's why the user is holding the power button!

- things aren't fast because you don't want them to get even worse

- last, but not least: at least previously there were the Surface tablets with the eMMC. These are slow.

Now add the last ingredient to the mix: Average Joe who doesn't understand shit. He doesn't care about 'write buffers aren't flushed', he only notices the files he wrote to a thumbdrive aren't there - and blames the OS, Gates personally and whoever else - but not himself. Capisce?

[0] even more amusing what you are thinking what Linux is just good and fast OS. I have a lot of different servers running different distros and versions - and most of them aren't shutting down fast nor even try to.

by pbhjpbhj 7 hours ago

>even more amusing what you are thinking what Linux is just good and fast OS.

That's my experience even using Ubuntu; on my hardware it takes about twice as long for Win11 to boot as for Kubuntu 26.04, and about five times as long to shutdown (normal shutdown; updates take forever).

Sometimes Windows decides after a while doing it's shutdown that it doesn't want to and pops a dialog (eg that another user is logged on {they aren't, it's a bug}). If you already left the room then it's just going to stay on until the next day.

Kubuntu has had slow boot before, but it gives you simple tools to see what it's doing, it's not obfuscating telemetry nor keeping programs running that you don't want.

When I say startup, I mean to the login prompt - going from login to desktop takes ages on Win 11 too, and it doesn't load up the previous application states/positions so you still have that to do. Then when you do load an app, eg Outlook, it tries to use the network before it is ready, claims it can't authenticate (it's right, but...) and messes up the session.

Sorry, I'm moaning. Essentially I'm surprised you don't find Windows slow.

by alpaca128 5 hours ago

> Average Joe who doesn't understand shit. He doesn't care about 'write buffers aren't flushed', he only notices the files he wrote to a thumbdrive aren't there - and blames the OS, Gates personally and whoever else - but not himself

Why should he blame himself for poorly designed systems and user interfaces? Why should he not expect Windows to eject a USB drive quickly when it doesn't even bother to communicate the reason it takes longer?

We shouldn't blame users who still somehow manage to have standards instead of silently accepting that computers are simply always broken.

And would it really be so catastrophically bad if the OS just flushed the buffers right after the file copy operation? Would it be that much worse than potential data loss?

by rmunn an hour ago

> And would it really be so catastrophically bad if the OS just flushed the buffers right after the file copy operation? Would it be that much worse than potential data loss?

For writes to USB drives, that's a pretty good plan. But for general purposes, most file writes are followed by other, related, file writes, and buffering them can end up putting less strain on hardware since you'll be able to batch writes that went to similar disk areas. So flushing buffers immediately (which is not quite the same as not having buffers at all but comes pretty close) does have a real cost. It's not the obviously correct answer in all cases.

by Den_VR 7 hours ago

Sounds like an on-access situation “antivirus” is famous for

by user_7832 a day 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.

by myself248 a day 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.

by 63stack a day 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.

by thaumasiotes a day 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.

by pfooti a day 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.

by Terr_ a day 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.

by myself248 a day 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.

by rcxdude a day ago

A bit less useful in normal circumstances, though.

by happymellon 9 hours ago

It would probably be less of an issue if Windows would reliably give feedback.

But shutdown doesn't.

Copy has improved, but we all remember progress bars that went backwards.

1 second remaining for 30 mins+.

Microsoft burnt trust over decades and continues with dark patterns. No wonder people don't believe them when they claim to be saving state.

by trashcan_man a day ago

This is dangerous thinking - a slippery slope into a world where words mean something. :)

by justsomehnguy a day ago

You would really like it on a laptop, do you? Especially the ones with Power button in the place of Delete button.

by xattt 8 hours ago

It would be a lot more effective (or less effective … depending on users’ latent psychopathy) if the computer started screaming at the 5 second mark.

by NikolaNovak a day 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?"

by starcommander 8 hours ago

Beggars can't be choosers.

by Andrex 4 hours ago

At least it was polite.

"Release the power button, shithead! I'm not done yet."

by teddyh a day 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.

by SoftTalker 7 hours ago

I don't think they did that. They maybe tried to park the hard drive heads, back when that mattered. Saving registers isn't much use without the rest of RAM.

by teddyh 5 hours ago

When Digital Equipment Corporation (DEC) first created the PDP-11, it didn’t realize the mainframe was capable of things DEC hadn’t foreseen. The creators made it with a function that is very fast and has certain interrupt levels, so the function runs around saying, “Oh, I’m running, I’m running a Level 5 job and here comes a Level 7 interrupt. That’s okay, I’m more important. I’ll keep on working here. Oh my God! A Level 2 interrupt. This guy must really want me.” And runs up there.

“What do you want?” he asks.

And the program says, “Oh, ah, am I finished yet?”

“No!” he yells, then runs back down to Level 5 and says to himself, “Okay, fine. I can start again right down here. Oh, I’m finished. Oh! I have this little Level 7 interrupt that I guess I should look at. Oh oh! It says my terminal is free so I can print things on it. Okay, I’ll print such and such.”

There are certain higher levels of interrupt. If one interrupt hits the function as it’s running along, it says, “Oh my God! The line current has dropped to 109 volts! I bet somebody has just flicked the switch, and I’ve only got 329 nanoseconds before the whole system goes down. That’s okay. That gives me more than enough time to save all the registers, load them in the locations they should be in, this, that, and the other thing.”

So the function scurries around, does all this, says, “Ah! Whew, I’ve got a couple of nanoseconds, I guess I’ll wait here until, you know, I go to sleep.” So you flip off the switch and the thing is dead

When you flip the switch on the function jumps up and exclaims, “Oh my God! I’m over 109 volts. I must be on. Well, quick, load everything back up in the accumulators and start running again right where I was.”

— Karla Jennings, The Devouring Fungus: Tales of the Computer Age (1990), chapter 3, The Hacker’s Universe

by antonvs 4 hours ago

Many PDP-11 models had magnetic core memory which didn't lose state on a power cycle, which is what allowed this to work. All that needed to be saved on shutdown was the quite small CPU state. Once machines switched to volatile memory, this was no longer possible.

by myself248 a day 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.

by ErroneousBosh 8 hours ago

At least on very old power supplies it was derived from one of the feedback windings on the switched-mode regulator transformer so it would go off somewhat quicker than the smoothing capacitors would discharge.

by Waterluvian 4 hours ago

That sixth photo (the recessed power switch on a beige chassis)… I can smell the public library.

by JoeAltmaier 5 hours ago

I use a desktop, partially because there's a power cord in the back I can pull out.

by Andrex 4 hours ago

I got quite quick at ripping my first laptop's battery and slamming it back in at one point.

by kitd a day 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.

by mx7zysuj4xew a day ago

Care to share?

by Shish2k a day 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

by myself248 a day 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.

by SoftTalker 7 hours ago

Because you can replace any component including memory and CPUs while the mainframe is running.

by nign 8 hours ago

Or perhaps more optimistically, you decommission the machine to replace it with a new one.

by kamk3 4 hours ago

I liked the allegory of domesticating servers to breed them into smaller, cuter versions of their ancestors. Computers evolve like chickens.

by nubinetwork a day ago

Related thread from a month ago: https://news.ycombinator.com/item?id=50314243

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.

by bartread 8 hours ago

This is yet another reason I don’t like Windows, and particularly enterprise managed Windows.

When I tell my computer to shut down I mean turn off RIGHT NOW.

Don’t install updates or fanny around with other bullshit: just turn off the power NOW.

Because if I’m turning off my computer that means something else is about to happen, and that something else might be leaving the office to catch a train, or going to pick the kids up.

It doesn’t matter: I’m not going to be delayed, and possibly late, because my operating system thinks it’s OK to do a bunch of stuff I haven’t asked it to - and which might take a long time - before finally doing the one thing I have asked it to.

Microsoft need to remember that the computer is supposed to do what I tell it and not the other way around. They need to give control back to the user.

by allthetime 7 hours ago

The user regains control by removing Windows from their life.

by bartread 7 hours ago

I did that about 15 years ago. Unfortunately in the professional world it's almost unavoidable.

by hiitsmyaccount 6 hours ago

Our shop is 99% macOS workstations.

by claaams 3 hours ago

As someone who can make IT decisions, I will never ever willingly bring on a windows device and will fight whoever in accounting asks for a windows machine.

by Hobadee an hour ago

Good luck... Those accounting people sure do love their Windows Excel...

by lucb1e 4 hours ago

The two I've worked at were 'bring your own OS'. It all depends on the business and your role

by mtlmtlmtlmtl 6 hours ago

The decision to tie software updates to shutdown/boot is also just poor design. Anyone who has seen Windows enter a boot loop because the "configuring updates" stage during boot crashed the OS, can attest to that.

by lucb1e 4 hours ago

This is due to Windows not being able to write to files that are being read by another program. Updates need a process to be stopped before it can overwrite its files. It's not that every other OS can magically update a running process, but on those you can put the files in place in the background and then relaunch the binary when the user is ready. A database server will still take a while, but most software will be down for only a few milliseconds. Only kernel updates require a reboot (or hacks) but there, again, you can do all the updating work before starting the reboot process.

On Windows, the easiest way to ensure all your files are unlocked is doing updates upon reboot, at which point it still has to get busy writing the update files to disk now that the processes are not running. You can prep things or work with parallel installations (write the new version to AppData/myProgram/update_v13.9) but in the end, "update when it goes down" it's not so much a design choice as a technical requirement (not that this locking is not also a design choice, to be fair)

by violiner 6 hours ago

I used to have a batch file on my work computer that would turn off the machine immediately, as if it been unplugged. It may not have been good for it but, again, work machine. You might be able to do something like that still.

by thih9 8 hours ago

In practice it does “turn off right now” - you close the lid of the laptop, done. And when you open it, it’s ready almost instantly.

by yehoshuapw 7 hours ago

ready to continue the shutdown sequence

by bartread 7 hours ago

Yes, exactly this. Or it's run its battery down because sleep seems to be completely broken on every Windows laptop I've had over the past 17 years.

by jazzyjackson 4 hours ago

Sleep modes are CPU dependent and lots of CPU have sleep bugs.

My favorite laptop has been a GPD mini laptop with the ryzen max chip. Instant sleep and wake via fingerprint scan.

But as a point against windows, a good experience will be ruined by a regression of a forced security update. I wanted to love the bleeding edge and bought a 48GB Blackwell surface book. In typical fashion everything felt instantaneous and fluid on first boot, and after the 24-48 hours of letting Windows Update do its thing, lag and sleep problems were introduced. so disappointing. returned it and went back to my macbook air.

by yehoshuapw 5 hours ago

at least in some cases the laptop itself is partly to blame for this specifically.

"modern standby" is a microsoft designed feature implemented in (some? many?) business laptops, which keeps them partially awake (for wifi, updates, and other things we mostly did not ask for when putting to sleep)

by ryandrake an hour ago

Some time in the last 30 or so years, the idea that the user should be the ultimate authority of what his computer is doing, has been disappearing. Now, for some reason, your OS vendor gets to have an opinion, and if that opinion differs from yours, the OS vendor wins.

by kamk3 4 hours ago

You can control all of that in Group Policy and with Registry settings. I never understood the "I don't like Windows because I refuse to learn how it works" argument, it's like an inverse "The Bible is true because The Bible says it's true". Microsoft is making it more and more of a pain in the ass to control and change all that, but you can still do it, nothing is stopping you outside of your own drive to learn how your tools work. I've disabled all auto-updates and Copilot junk in GP and everything's been smooth as butter. I don't know why so many people who spend all their time learning Linux then turn to Windows and go "huh, nope, zero idea how that works, must be black magic, better stay away from it". It's a tool, with controls, just like any other, it can be more annoying when the controls are less ergonomic, but you're basically just submitting to your own ignorance if you think less ergonomic means statements about it should be exaggerated enough to claim it's genuinely unusable, when that's hyperbolic at best.

by Telaneo 3 hours ago

Expecting users to have to learn group policy settings to have their OS not be broken is unreasonable.

by bartread 2 hours ago

Group policy is often enforced at domain level as well: even with local admin rights there’ll be a lot that you can’t control. Depending on the company you work for it can be possible to get changes made, but in a large enterprise? Forget it.

by F3nd0 7 hours ago

> Microsoft need to remember that the computer is supposed to do what I tell it and not the other way around. They need to give control back to the user.

Giving control to the user is the core idea of the Free Software movement, which Windows (and Microsoft) has always been antithetical to. I don’t think that’s likely to change.

by SoftTalker 7 hours ago

Pull the power cord.

by bartread 7 hours ago

In these situations I do just use the hold down the power button for 10 seconds trick: sometimes I just don't have the time for faffing round.

by lofaszvanitt 19 hours ago

These are the little things we are missing from everyday life so it would be more meaningful.

by LoganDark a day ago

First time I've ever seen AVIF on an image I tried to save. (monster in the box)

by busymom0 a day ago

I just used my iPhone screen recording to save it and send it to a friend

by LoganDark 20 hours ago

Luckily the services I use support AVIF relatively well, otherwise I easily could've converted it! But the first AVIF in my memes collection is something to celebrate :)

by dmitshur 8 hours ago

It is indeed a nice format to see more of. If you visit the "/photos" page on my personal website in bio, you'll find me using it for photos. (Not linking it directly because it's still a bit of a work in progress.)

by londons_explore a day 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.

by wavemode a day 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.)

by cozzyd 8 hours ago

can't most applications ... write to a temp file and rename? Maybe that's not atomic on Widows?

by dezgeg 8 hours ago

Using fsync() is still required to be correct in power-loss situation, as the filesystem can otherwise reorder the rename to happen before the temp file contents are persisted. It's harder problem than one'd think.

by aaronmdjones 3 hours ago

Drives also sometimes lie about the data having been written (they will return success after completely reading the data into their DRAM, before they've finished writing it to their NAND flash for example). This means fsync() will return before the data is actually stored.

USB flash drives in particular are notorious for this, if you've ever wondered why the file copy dialog closed minutes ago but the drive indicator LED is still flashing and the eject (Linux) / safely remove drive (Windows) dialog tells you that the drive isn't ready to be removed yet.

If this is the case, shutting off the power will cause that data to be lost. If you're thinking SSDs have enough power loss protection capacitors for this to not be true, you are sorely mistaken; this protection only guarantees that the SSD's idea of which pages are still erased and what LBAs map where isn't corrupted during wear-levelling for example. It protects the data structures that the drive firmware needs to operate correctly, not your data.

The paranoid might want to journal all of their filesystem writes, metadata and data (ordinarily, on most journalling filesystems, only metadata writes are journalled). Using fsync() then guarantees that either the entire contents of the new temporary file and the file rename operation are in the journal and will be replayed if they don't complete (after power loss or kernel panic for example), or that the file rename operation will not be replayed and the old file will still exist. This reduces write throughput considerably.

A lot of database software is written with the assumption that the underlying storage will lie to it, and does this by itself by default but in a more performant specialised manner, so you don't need to journal all writes in cases like this.

Some filesystems are immune to this problem. For example, ZFS won't process the rename if the filesystem transaction that wrote the temporary file to-be-renamed didn't complete (assuming you used fsync()). It is able to determine this automatically with its data and transaction checksums.

by kelnos a day 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.

by SoftTalker 7 hours ago

Any application that depends on cached state must be able to start up in a sane way if that state is corrupted. If it can't, it's not worth using.

by Ulkopuolinen 4 hours ago

You edit a file in a text editor. You save the file. You close the text editor. You cut power.

The file is lost because it was not written to the disk.

How is this a sign that the text editor is not worth using?

by lxgr 3 hours ago

Consistency isn’t everything. Sometimes people also just don’t want to lose their changes, i.e. durability.

by 1970-01-01 2 hours ago

>So, computers slowly migrated to “power-by-wire,” if you will.

I won't. They did not slowly migrate. Intel made the ATX spec, and the Hadware Abstraction Layer that came with Windows '95 provided you the actual feature.

https://en.wikipedia.org/wiki/PS-ON_Signal

by Hobadee an hour ago

If you hold the power button on a Mac during an update, the progress bar will jump to the end and it will say something like "Under a minute remaining". Release it and the time remaining will slowly creep back up. Found this out on accident when I was screwing around with a test device. Pretty ingenious UX if you ask me.

by mrandish a day 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."

by myself248 a day 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.

by starkrights a day 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.

[0]: https://support.apple.com/guide/iphone/force-restart-iphone-...

by justsomehnguy a day ago

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

by starkrights a day 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

by Hobadee an hour ago

Just tell them you are looking up the incantation for that particular device.

Restartus iPhoneous!

by wtallis 8 hours ago

I recently got a laptop into a state where it couldn't finish booting into Windows, but it made it far enough that it didn't trigger the failed-boot fallbacks to present the menu where safe mode and factory reset were available. Holding the power button down took something like 30+ seconds to actually power the system down, so it was useless for interrupting a boot. I had to unscrew the bottom cover of the laptop, disconnect the battery, and boot it off the charger alone so that I could pull the plug to interrupt the boot. Then I was able to proceed and spend the next few hours restoring the machine to a usable state.

It is incredibly disheartening to see how thoroughly is designed to second-guess or outright reject the intentions of the user. We're only holding on to a few shreds of true ownership at this point.

by moffkalast a day 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.

Just gonna leave this here for no particular reason: https://community.frame.work/t/upgrading-to-bios-3-20-on-ryz...

by bovermyer a day 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.

by cozzyd 8 hours ago

They seem to have abandoned IronRubyDome

by codewench a day 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"

by Telaneo 3 hours ago

I kind of like the idea of that message, but honestly, Microslop should probably just accept the fact that it's OS is in a world where a user might need to turn of their computer right now and act on that intent and not try to skirt around that desire. It's like the mirror version of there only being a 'Maybe later' button and no 'No'. The vast majority of users are trained to not use the power button unless they have to. Using the button shows an intent Microslop should be able to understand. Then again, they don't understand consent, so I'm not sure why I expect them to understand this either.

Not to mention that whatever logic is behind that button should also be able to recognise 'bruh, it's been 5 minutes, something's fucked, yo, I should just die and try again on next boot'.

by gpvos a day ago

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.

by netsharc a day ago

I know (knew?) it as 4 seconds...

by kulahan a day 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.

by firloop a day 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.
https://support.apple.com/guide/iphone/force-restart-iphone-...
by ninkendo a day ago

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.
by gpvos a day ago

On a reasonable phone, for a hard reset you can remove the battery and put it back.

by Animats a day ago

To turn off, type Up Up Down Down Left Right Left Right B A.

by rf15 a day 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

by Jhsto a day ago

I tried doing this once while getting into a US airport... I did a wrong sequence and the phone dialed 911.

by xattt 8 hours ago

The interesting thing is that it’s unintuitive in that users are accustomed to an unresponsive device responding to a sequence of button presses.

by MathMonkeyMan 8 hours ago

My Pixel does this too.

Holding the power button down used to open "the power menu," which means I need to look at my phone and tap a button to do the thing that I intended for it to do anyway.

More recently, the gesture instead opens an app "Let's get started: Your personal AI assistant [...]".

I had to go into settings (System -> Gestures -> hold power button) to get rid of the AI nonsense and make the power button do power things.

I'd like for it to just shut the thing off, but that's not in the cards.

by dfxm12 a day 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".

https://support.apple.com/guide/iphone/turn-iphone-on-or-off...

by kulahan a day ago

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.

by dfxm12 a day 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.

by kulahan 7 hours ago

You’re siding with the Vogons because they did, in fact, file a notice for 50 Earth-years at the department of public works in Alpha Centauri.

by Hamuko a day ago

There's a power button in control center.

by kulahan a day ago

Useful if you’re not trying to restart because your phone is locked up.

by SoftTalker 7 hours ago

My iPhone has never locked up. Apps have, but not the phone.

by LexGray 8 hours ago

I can’t guarantee this is the cause but tons of blogs would advise iPhone “maintenance” of forcing a restart daily which at best just managed to corrupt a few caches.

I am guessing their next step down this path will be to prevent apps from being closed with a swipe (at least not without confirmation) to combat blogs that claiming it helps performance.

by Skyfall106 12 hours ago

And holding it just gets you Siri, which is the last thing you want when it's frozen. And also Siri just sucks now

by baal80spam a day 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.

by NikolaNovak a day 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" :-/

by Starlevel004 a day 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?

by ninkendo a day 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.

by ptx a day 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.

by gpvos a day 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.

by bschwindHN an hour ago

This one makes me so mad, as if I was the one to choose to update when I selected "restart" and it conveniently didn't tell me it would apply updates.

And then it gets to 100% and just sits there for about half the time it took to get to 100 in the first place.

I only use windows for occasional gaming, I'm looking forward to the day 100% of the games I play are runnable on Linux.

by Night_Thastus 4 hours ago

I know this is sort of tangential, but it came to mind:

From a software perspective, I completely understand 'soft shutdowns'.

However, as someone who has learned that software (and firmware) absolutely cannot be trusted even a little - I like my nice, physical switches.

You may (easily) bypass software lockouts intending to prevent data collection or advertisement. You cannot bypass the power going to the machine physically being disconnected. Similarly - good luck connecting to public wifi when the module's wires are cut in half.

by GenerocUsername a day ago

"please wait while we try to exfiltrate as much telemetry from memory as possible before shitting down"

by JdeBP a day ago

That technical support site that the article hyperlinks to is appalling.

by rolph a day 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.

by TZubiri 6 hours ago

the transition went something like this:

- please wait before shutting down the computer

-please don’t shut down the computer

-you can’t shut down the computer until you unplug it

-you can’t unplug the computer since we have a battery now

-you can’t even remove the battery now, the computer stops when the computer says it stops

by phendrenad2 6 hours ago

Seems like this was added as a (half-baked) debugging feature[1] over 9 years ago[2].

To me, this is just a consequence of tech orgs being full of people who only know how to code, but can't think. We laugh at interview questions like "why are manhole covers round?" but maybe people hired under such conditions would be able to think a step or two beyond the next sprint. "What happens when we train the users that long-press doesn't work?"

[1] - https://devblogs.microsoft.com/oldnewthing/20261029-00/?p=11... [2] - https://www.reddit.com/r/Windows10/comments/7z66n1/please_re...

by TacticalCoder a day 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".

by snvzz 9 minutes ago

>Three seconds.

Does it NOT use systemd?

With systemd, I've had trouble having machines power off at all. Waiting forever for things that will never happen.

by therein 7 hours ago

Microsoft is weird. The downturn started by a shift in their mindset where now the OS was working for them, and not for the user. And then they added complete incompetence on top of it. At this point Microsoft is a lost cause.

by sweetdingoes a day ago

Preparing a load-bearing comment…

Data from: Hacker News, provided by Hacker News (unofficial) API