From d9d3d4f85d525fc031abc576716f85a95316c235 Mon Sep 17 00:00:00 2001 From: Marcel Bischoff Date: Wed, 30 Dec 2015 22:45:48 +0100 Subject: [PATCH] Add Bluetooth category and entry --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 1cf4f23..42910e1 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ For more terminal shell goodness, please also see this list's sister list [Aweso - [Fonts](#fonts) - [Functions](#functions) - [Hardware](#hardware) + - [Bluetooth](#bluetooth) - [Hardware Information](#hardware-information) - [Infrared Receiver](#infrared-receiver) - [Power Management](#power-management) @@ -601,6 +602,20 @@ Please see [this file](functions.md). ## Hardware +### Bluetooth + +```bash +# Status +defaults read /Library/Preferences/com.apple.Bluetooth ControllerPowerState + +# Enable (Default) +sudo defaults write /Library/Preferences/com.apple.Bluetooth ControllerPowerState -int 1 + +# Disable +sudo defaults write /Library/Preferences/com.apple.Bluetooth ControllerPowerState -int 0 && \ +sudo killall -HUP blued +``` + ### Hardware Information #### List All Hardware Ports