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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM