How do you disable Bluetooth from terminal in Ubuntu
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
-
1
-
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
-
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
You can also disable single adapters like
sudo hciconfig hci0 down
If hci0 is the only adapter, this means bluetooth is unavailable then.
-
Would that switch the dongle mode to HDI and be able to use it on boot? – Automat Aug 12 '15 at 13:51
-
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
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
-
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
lsusbas I know another method that works – Jeremy31 Jun 19 '15 at 20:46