3

macOS Ventura Developer Beta5/Public Beta3 休眠期间重启Bug的解决方案

 2 years ago
source link: https://nyan.im/p/ventura-beta-hibernate-bug
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

macOS Ventura Developer Beta5/Public Beta3 休眠期间重启Bug的解决方案

Frank

August 18, 2022

我在我的2019 MacBook Pro上升级了macOS Ventura Public Beta3(22A5321d)之后出现了合盖休眠期间重启,并在唤醒之后丢失之前工作内容的问题。

在macOS Ventura Developer Beta5/Public Beta3中,将MacBook合盖休眠后可能会遇到如下两个问题:

1.再次开盖唤醒时无法从休眠中恢复,屏幕显示如下界面。长按电源键强行重启后可以正常启动。

macos-big-sur-startup-screen-prohibitory-sign.jpg!s

2.启动后屏幕弹出如下对话框,点击任意选项之后可以正常进入系统,但是之前的工作内容会丢失。(相当于系统重启),无论问题1有没有出现。

you_shutdown_your_computer2.png!s

这时一个在macOS Ventura Developer Beta5/Public Beta3中新出现的Bug,我们只能等待苹果在新的测试版中修复这个Bug。在等待的过程中,我们可以使用如下命令暂时缓解这个问题:

sudo pmset -a hibernatemode 0

根据pmset命令的文档[2],这条命令的意思是将休眠模式设置为0。

这里的休眠模式有0, 3, 25三种值可选,每个值的解释如下:

  • 0是桌面mac设备(如iMac)上的默认值。在休眠时内存内容仍然保存在内存中,如果休眠期间断电则会失去上下文。
  • 3是便携mac设备(如MacBook)上的默认值。在休眠时内存内容仍然保存在内存中,并同时在硬盘上保存一份副本。唤醒时会首先尝试直接从内存中恢复,如果休眠期间断电,则会从硬盘上的副本恢复。
  • 25只能通过pmset命令设置。在休眠时内存内容会被保存到硬盘,并将设备断电。唤醒时从硬盘恢复。类似于传统Windows上的休眠。

当这个问题在之后的版本中被修复后,使用如下命令将pmset恢复为默认设置即可。

sudo pmset restoredefaults

References

[1] Ventura beta 5 rebooting after closing the lead, is it only me? : MacOSBeta

[2] pmset – Manual for macOS


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK