你的位置:首页 > 软件开发 > 操作系统 > MAC OSX通过Terminal命令行控制蓝牙状态开关

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

发布时间:2015-08-15 23:00:06
defaults write /Library/Preferences/com.apple.Bluetooth.plist ControllerPowerState 0#关闭蓝牙服务 defaults write /Library/Preferences/com.apple. ...

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


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

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录