前段时间发了一个帖子: https://www.v2ex.com/t/652143。
大概意思是 MacOS Catalina 中蓝牙音频设备会不定时的断开音频,很多 v2er 表示也遇到了相同的问题,包括:
Apple Community 中也出现了很多类似的故障,包含 AirPods 以及其他的蓝牙音频设备:
- https://discussions.apple.com/thread/250793838
- https://discussions.apple.com/thread/251061620
- https://discussions.apple.com/thread/251167121
- https://discussions.apple.com/thread/251142499
原因
当系统内存压力变成「黄色」时,bluetoothaudio 这个进程会被系统当作闲置进程杀掉导致的。

个人猜测,最主要的原因是:在/System/Library/LaunchDaemons中,com.apple.bluetoothaudio.plist这个文件里EnablePressuredExit这个值为true导致内存不足是被 kill 掉了。(不知道 Mojave 中这个值是什么
解决方式
先关闭系统的 SIP,修改这个值为false,再恢复 SIP。
Catalina 中关闭 SIP 仍不能修改系统文件,只要
sudo mount -uw /
killall Finder
一下就可以编辑了。
目前已经正常使用一天,内存压力变成红色也没有出现bluetoothaudio被 kill 掉或者蓝牙音频设备断开的问题。
