Turn off bluetooth mac command line

I would not expect any of the proposed solutions to cause that. Try this command: rfkill block bluetooth. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. Medical School or Games Industry? Featured on Meta.

Can't turn off Bluetooth on macOS Mojave (Solved)

Custom Filters release announcement. Linked 2. Stephen January 28, , pm 6.

Just using applescript, the following works for me:- Script1. Damoeire March 6, , pm 9. JimmyHartington October 21, , pm Has something changed on your system? Updated OS or anything like that.

Command Line Mac: Disabling hardware via kernel extensions

Damoeire October 21, , pm You could split it up into shell scripts in KM. And let KM do the logic. Maybe that will work. Damoeire October 24, , pm JimmyHartington October 24, , pm Run this command in the terminal to find where blueutil is. Athena January 22, , pm Hey Athena , Would you please share with the class? Hey Folks, I'm posting version 2. Like Jimmy I used Homebrew to build it.

Copy or move the exe into that directory. Athena January 23, , pm Proceed with the correct actions based on your test. This kind of logic isn't overly difficult once you've done it a few times. Does KM support multiple icons for a macro on a palette? Athena January 26, , pm Sorry if this comment runs counter to necro etiquette on this Stack, but I thought it might add something useful If you bind this script to a keyboard shortcut e.

I wanted to mention a little known feature of the OS: If you reboot and unplug the keyboard, the OS will automatically enable Bluetooth and start looking for BT keyboards and mice. From Apple's official documentation : Turn on your Mac. If no USB mouse is detected, the Mac will power up to the Bluetooth trackpad or mouse setup assistant.


  • Cannot Turn Bluetooth Off | MacRumors Forums.
  • Post navigation.
  • Subscribe to RSS.
  • macos - How to enable Bluetooth in Mac with shortcut or command line? - Super User.

The screen should alternate between an image of the trackpad and one of the mouse, as below. However, this is apparently controlled by a Bluetooth setting which might be disabled: If this setting has been disabled by the user it is enabled by default then this method will not work. Josh Josh 5, 9 9 gold badges 40 40 silver badges 69 69 bronze badges. This is arguably better than any of the other answers :. Very little technical knowledge required. But what if you don't have a wired keyboard or mouse - only Bluetooth ones?

Turn On / Off Bluetooth on Mac via Apple Script

As far as I can tell the computer won't enable Bluetooth even with a reboot. I believe that the login screen will automatically enable Bluetooth if there's no HID devices connected. EdAvis: Apple Support Docs say: 1. Turn on your Mac. Following some instructions elsewhere, I unplugged everything from the iMac, plugged back just the power cord, and then switched it on.

That worked after a short delay at the login screen when it appeared not to. Worked on Mavericks, too!

Recent Posts

Alternatively, you can launch System Preferences and click the checkbox: tell application "System Preferences" set current pane to pane id "com. For Yosemite I just get an error which suggests that application System Events isn't running? A light blue frame appears arround the activate box. Press spacebar, finished! JayRizzo 1 1 silver badge 5 5 bronze badges. Pixxit Pixxit 51 1 1 bronze badge. This sounds like a Windows keyboard shortcut instead of a OS X shortcut. I don't really know why anyone down-voted this response.

Maybe they didn't actually put in the effort to try it and see it does give a bit of help? Ramhound it actually works. I just tested it on my MacBook.

It selects the Bluetooth in the menubar. So, yes, it's actually a OS X shortcut, not a Windows shortcut. And just to add to this, I think it's ridiculous we all go and down-vote a new user for what reason without at least adding some comments to their answer to be more productive so we know and they know where in future it might be more clear or helpful.

I don't know when the votes came in, before or after the comment about this sounding like it's a Windows keyboard shortcut. Did anyone actually bother to try this and compare it against the results of other users? I don't think so. I made the comment nearly 2 years, the answer honestly, seems incomplete. I don't find short answers like this very helpful, compared to the other answers, this was a late answers to an old question after 4 years. I like the answer and I do not think it deserves down vote - in my mac is configured to use F8 and all F keys directly without the need to press fn first.