15

How do you disable Bluetooth from terminal in Ubuntu

4
  • possible duplicate of Disable bluetooth in Kubuntu 14.04 – Snake Eyes Jun 19 '15 at 7:42
  • @Hunter Not really a dupe. Its about Kubuntu. This is about Ubuntu – Universal Electricity Jun 19 '15 at 8:30
  • 2
    @UniKitty the difference is in the GUI. Why would it matter for a command line question? – muru Jun 19 '15 at 10:12
  • Can you post the results of lsusb as I know another method that works – Jeremy31 Jun 19 '15 at 20:46
18

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
4
  • 1
    @downvoter!!! WHY? – Maythux Jun 19 '15 at 7:43
  • Someone doesn't like you. But I can't upvote or downvote, since I don't have Ubuntu. Do you think this will work on a tablet? – Ismael Miguel Jun 19 '15 at 12:01
  • 1
    yes it should be – Maythux Jun 19 '15 at 12:15
  • I need to set up a chroot with ubuntu and a USB bluetooth adapter to test. Or try a VM. – Ismael Miguel Jun 19 '15 at 12:17
5

You can also disable single adapters like

sudo hciconfig hci0 down

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

2
  • Would that switch the dongle mode to HDI and be able to use it on boot? – Automat Aug 12 '15 at 13:51
  • I would not expect any of the proposed solutions to cause that. – cschramm Sep 16 '15 at 11:53
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
1

Try this command:

rfkill block bluetooth
0

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
1
  • Can you add a few more explanations? Also, giving how to restart / re-enable it is a good tip – damadam Dec 13 '19 at 12:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.