18

How do you disable Bluetooth from terminal in Ubuntu

Maythux
  • 84,289

6 Answers6

21

To stop :

sudo service bluetooth stop

To start again:

sudo service bluetooth start

To restart :

sudo service bluetooth restart

To check current status:

service bluetooth status

Or you can use rfkill command:

rfkill block bluetooth
Maythux
  • 84,289
6

You can also disable single adapters like

sudo hciconfig hci0 down

If hci0 is the only adapter, this means bluetooth is unavailable then.

Maythux
  • 84,289
3

Try this command:

rfkill block bluetooth
Maythux
  • 84,289
opu 웃
  • 2,137
  • 11
  • 29
  • 42
2

on more recent ubuntu, bluetooth can be controlled with: bluetoothctl power off and bluetoothctl power on

This method doesn't require root privileges, and also the changes are immediately visible on the gnome bluetooth applet.

ckjoris
  • 21
2

Also if you want to disable it permanently:

sudo mv /etc/init/bluetooth.conf /etc/init/bluetooth.conf.disabled

To re-enable:

sudo mv /etc/init/bluetooth.conf.disabled /etc/init/bluetooth.conf
JoKeR
  • 6,972
  • 9
  • 43
  • 65
1

Ubuntu version 20.04:

disable bluetooth service:

#disable bluetooth service
sudo systemctl disable bluetooth

#stop running instance sudo systemctl stop bluetooth

re-enable service later:

#re-enable bluetooth service later
sudo systemctl enable bluetooth

#start bluetooth service again sudo systemctl start bluetooth