前言
沟通是有成本的,若能在提出问题的过程将对方所需的信息传达出去,那么沟通的成本就降低了很多,省去了大量的时间,而拥有一个好的格式,是提出好问题非常重要的一个部分。
一个很好的问题格式
下班后,我一般使用WIN+L来lock我的windows,但我并不期望lock之后windows自动sleep,而我又没有找到相关设置,于是查到了如下网页:
How do I stop Windows 10 going to sleep after locking with Win+L key
I’ve got a Dell XPS 13 (9360) with Windows 10 Home.
Steps to reproduce:
- Open power options (Win-X, O)
- Click change plan settings next to the current plan (“Dell” in my case)
- Set both “on battery” and “plugged in” change “Put the computer to sleep” to something high or “Never” (I have 15 mins for battery, 1 hour for plugged in, tried “Never” for both too)
- Click save changes
- Open screen saver settings (Win-S, Change screen saver)
- Ensure screen saver is off (None)
- Ensure “On resume, display logon screen” is off
- Click OK
- Lock computer with Win-L
- Wait…
Expected behaviour:
- Screen switches off after a short delay (~30 secs).
- Computer stays on, crunching whatever data you’ve left it to do.
Actual behaviour:
- Screen switches off after a short delay (~30 secs).
- Computer goes to sleep after a further ~15 seconds.
I would’ve thought this was a simple problem, but I’ve spent over two hours Googling etc for a solution. The closest I could find to my problem was this, which is similar but not the same, and the solution doesn’t work for me:
这个题主的问题格式让我见识到了什么是好的问题:
- 运行环境
- 重现过程
- 期望行为
- 实际行为
清晰明确地让人理解他的困惑所在,也可以在重现过程的阶段,轻松地排除掉他本身的行为存在隐患的可能。
当我见到这个问题,按照他的步骤遇到了同样的问题,很好地激发了我想要解决这个问题的意愿。
注:
这个问题的解决方案:
- 打开注册表(WIN+R:regedit)找到如下Key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0
- 将Attributes DWORD的值设置为2
- 打开控制面板->电源选项->高级设置->Sleep->System unattended sleep timeout->0