MAC OSX通过Terminal命令行控制蓝牙状态开关
时间:2015-08-15 23:00:59
收藏:0
阅读:2219
defaults write /Library/Preferences/com.apple.Bluetooth.plist ControllerPowerState 0
#关闭蓝牙服务
defaults write /Library/Preferences/com.apple.Bluetooth.plist ControllerPowerState 1
#打开蓝牙服务
killall blued
#结束所有蓝牙服务进程
launchctl unload /System/Library/LaunchDaemons/com.apple.blued.plist
#卸载蓝牙Daemon
launchctl load /System/Library/LaunchDaemons/com.apple.blued.plist
#载入蓝牙Daemon
launchctl start com.apple.blued
#重启蓝牙Daemon
原文地址:https://discussions.apple.com/thread/2619301?tstart=0
评论(0)