黑苹果 Monterey 博通 BCM94360CS2蓝牙睡眠卡死 完整最终版教程
这是最简单、最稳定、一次配置永久生效的完整版,从安装到成功一步到位。
一、核心原理(一句话)
合盖瞬间 → 强制关闭蓝牙(杀死蓝牙进程)
开盖唤醒 → 自动打开蓝牙 + 重启蓝牙服务
彻底解决黑苹果博通网卡蓝牙睡死、卡死、无法唤醒问题。
二、前置安装(从头开始,全部复制运行)
1. 安装 sleepwatcher(监听睡眠 / 开盖)
bash
运行
sudo rm -f /usr/local/sbin/sleepwatcher
sudo rm -rf /usr/local/share/man/man8
brew link --overwrite sleepwatcher
brew install sleepwatcher
2. 安装 blueutil(命令行开关蓝牙,免 Xcode)
bash
运行
cd ~/Downloads
curl -LO https://github.com/toy/blueutil/releases/download/v2.9.1/blueutil-macos.zip
unzip blueutil-macos.zip
sudo mv blueutil /usr/local/bin/
sudo chmod +x /usr/local/bin/blueutil
三、清理旧服务(必须做)
bash
运行
sudo pkill -9 sleepwatcher
rm -f ~/Library/LaunchAgents/de.bernhard-baehr.sleepwatcher.plist
rm -rf ~/.sleep
四、最终稳定脚本(合盖关、开盖开)
直接复制下面整段代码,粘贴到终端回车
bash
运行
mkdir -p ~/.sleep
cat > ~/.sleep/rc.sleep << 'EOF'
#!/bin/bash
pkill -9 bluetoothd
/usr/local/bin/blueutil -p 0
date "合盖关闭蓝牙: %Y-%m-%d %H:%M:%S" >> ~/.sleep/bt.log
EOF
cat > ~/.sleep/rc.wakeup << 'EOF'
#!/bin/bash
/usr/local/bin/blueutil -p 1
launchctl stop com.apple.bluetoothd
launchctl start com.apple.bluetoothd
date "开盖打开蓝牙: %Y-%m-%d %H:%M:%S" >> ~/.sleep/bt.log
EOF
chmod +x ~/.sleep/rc.sleep ~/.sleep/rc.wakeup
cat > ~/Library/LaunchAgents/de.bernhard-baehr.sleepwatcher.plist << 'EOF'
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>de.bernhard-baehr.sleepwatcher</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/sbin/sleepwatcher</string>
<string>-s</string>
<string>/Users/licong/.sleep/rc.sleep</string>
<string>-w</string>
<string>/Users/licong/.sleep/rc.wakeup</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
</dict>
</plist>
EOF
launchctl load ~/Library/LaunchAgents/de.bernhard-baehr.sleepwatcher.plist
echo "✅ 全部配置完成!合盖休眠、开盖唤醒即可!"
五、必须开启的权限(否则不生效)
打开
系统设置 → 隐私与安全性 → 辅助功能
把 终端 (Terminal) 打勾 ✅
六、测试是否成功
1. 合盖 等待 5 秒
2. 开盖
3. 查看日志:
bash
运行
cat ~/.sleep/bt.log
出现下面内容 = 100% 成功
plaintext
合盖关闭蓝牙: 2026-05-30 00:xx:xx
开盖打开蓝牙: 2026-05-30 00:xx:xx
七、最终效果
✅ 合盖 → 蓝牙立刻关闭
✅ 开盖 → 蓝牙自动打开
✅ 蓝牙永远不会睡死、卡死
✅ 开机自动运行,永久生效
✅ 黑苹果 Monterey 完美稳定