这条消息已经在屏幕上显示了将近两个小时了。
"This message has been on the screen for almost two hours now."

原始链接: https://unsung.aresluna.org/this-message-has-been-on-the-screen-for-almost-two-hours-now/

电源按钮从即时硬件断电演变为软件控制的关机,同时保留长按数秒后强制关机的故障保护。最近,Windows 在检测到长按但还需要时间关机时,可能会显示“请松开电源按钮”。一位用户的 Microsoft 笔记本在尝试硬重启时,该消息在 0% 显示了数小时;建议的解决方法是忽略消息并继续按住按钮。作者将此视为围绕曾很简单功能的复杂度日益增加的例子,并觉得 UI 文案令人不安,认为这种“请松开”状态可能表明到了重新思考设计的时候。

一个 Hacker News 帖子讨论了屏幕上停留近两小时的消息。评论者分享了相关的关机/电源按钮轶事:据报道,Windows Insider 版本会要求用户松开电源按钮,以便内核捕获转储;一位用户提到首次遇到 AVIF 图像格式;另一位批评苹果要求使用秘密按键组合关闭 iPhone,以及用更复杂的序列强制重启无响应设备。一位评论者怀疑设备在关机时通过网络执行未公开的任务,认为应提供拟执行任务的清单,并认为暗中发送日志不可接受。另一位不喜欢 Windows 消息中使用“我们”,说这从 Windows 10 开始。总体而言,该帖涉及不透明的关机行为、对用户不友好的电源控制,以及对软件执行未解释后台工作的不信任。
相关文章

原文

IBM’s mainframe computers in the 1970s sported particularly distinctive red power buttons:

These were rooted in computers still occasionally being close to industrial machinery – high vacuum, high voltages, memory tanks filled filled to the brim with mercury, punch cards flying through the system with astonishing speeds – but at some point, as we domesticated the machines and put them on our office and home desks, those power toggles became more of a branding element than anything else:

A physical power switch has a problem, however – it cuts off the power immediately and indiscriminately, without giving the system time to cleanly shut everything down, write everything to disk, park its drive heads, and so on.

So, computers slowly migrated to “power-by-wire,” if you will. Just like pressing the keys on the keyboard was no longer physically moving the typebars and only sending signals to the CPU, the power button was now also sending just a simple signal, allowing the computer to get ready for the night. It was only after all the necessary clean up that the computer would talk to the power supply and shut itself down to a minimal power state, where the only energy it would be spending was checking for the power button to be pressed again for next morning’s wake up.

Shutting down was now just as much software as it was previously hardware, and we know software has problems. So there had to be a failsafe, and the failsafe was designed this way: if you held the power button for 4 seconds, the machine would just shut down at that point. This was still software, but software directly on your motherboard, which was a lot more resilient: it could not fail and ignore your power button the same way Windows could when it was preoccupied dealing with some blue screen or another problem.

I believe that delay grew over time to be about 10 seconds. But more recently, a new state appeared:

In case you cannot read it, it says “Please release the power button. We just need a few more seconds to shut down.”

This is how I understand it: Windows now gets a signal whenever the user holds the power button. It knows that after 10 or however many seconds, the power will be cut off, no negotiation. So if it knows it won’t finish its jobs by ten seconds, it pleads with the user to stop pressing the button.

I have seen different explanations for it – some people say it’s only on some machines, or only for developers, to save enough debugging information and perform a clean shutdown.

I’m not sure, because I have also seen a new failure mode:

My Microsoft Laptop is displaying an error that says, “Please release the power button. We need a few more seconds to shut down. 0% complete.” I was attempting a hard reboot because the keyboard wasn’t functioning. That typically resolves the issue, but I couldn’t get it to shut down. I must have held the power button down and then received that message. This message has been on the screen for almost two hours now. How can I resolve this?

The answer is: do not listen to your computer, and keep holding.

I am not sure if I have a point here. I just thought it was a fascinating example of a growing complexity of what once was a simple thing.

I also found the machine saying “please release the power button” to be a wild user interface string. You can find all sorts of photos online of this state – they cannot be screenshots at this point – and they have this positively haunting, almost horror-like quality:

Maybe a potential lesson in here: If at some point you have to add a “please release the power button” function, perhaps it is time to step back and re-think the whole idea.

Personally? I prefer my machines to go the other way.

联系我们 contact @ memedata.com