Skip to content

Instantly share code, notes, and snippets.

@dyndna
Created April 27, 2015 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dyndna/38f0ae3de72190038c3a to your computer and use it in GitHub Desktop.
Save dyndna/38f0ae3de72190038c3a to your computer and use it in GitHub Desktop.
sudo cp /etc/bluetooth/main.conf /etc/bluetooth/main.conf.OLD
sudo nano /etc/bluetooth/main.conf

#Search for the entry:
InitiallyPowered = true

#and change the value to:
InitiallyPowered = false

#Next, look for:
# DisablePlugins = network,input

#and uncomment the DisablePlugins line

Next modify a file simply called bluetooth:

sudo nano /etc/default/bluetooth

#if not present, make one.
#uncomment or add following line with value set to 0
BLUETOOTH_ENABLED=0

Reboot the machine. Bluetooth should stay off. If bluetooth service still appears, then disable loading bluetooth modules as follows:

sudo nano /etc/modprobe.d/blacklist-rare-network.conf

#Adding these two lines:

#Disable bluetooth
alias net-pf-31 off

Now, edit /etc/modprobe.d/blacklist.conf and following lines at the end of file:

###### User defined #######
# disable bluetooth; to enable, run sudo modprobe btusb
blacklist btusb

Reboot machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment