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