MAC OSX通过Terminal命令行控制蓝牙状态开关

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

posted @ 2015-08-15 22:26  zfann  阅读(10060)  评论(0编辑  收藏  举报