Take over Mac OS X Bluetooth Control

Bluetooth on Mac OS X

Quite annoying when Bluetooth on Mac OS X is off, you can’t turn it on manually via Systme Preferences interface. Now you can install blueutil from https://github.com/toy/blueutil to solve this issue.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
igloo:cheatsheets root# blueutil --help
blueutil v2.1.0

Usage:
blueutil [options]

Without options outputs current state

-p, --power output power state as 1 or 0
-p, --power STATE set power state
-d, --discoverable output discoverable state as 1 or 0
-d, --discoverable STATE set discoverable state

-h, --help this help
-v, --version show version

STATE can be one of: 1, on, 0, off, toggle

Firstly, turn off Bluetooth service via command line:

1
2
igloo:cheatsheets root# blueutil -p 0
igloo:cheatsheets root# blueutil -d 0

Then turn on Bluetooth service via command line:

1
2
igloo:cheatsheets root# blueutil -d 1
igloo:cheatsheets root# blueutil -p 1

Contents