Open In App

How to Disable Bluetooth in Ubuntu

Last Updated : 02 Jun, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

Bluetooth technology is a low-power, high-speed wireless communication link designed to connect phones and other portable devices. It is an IEEE 802.15.1 protocol for using low-power radio communications to connect phones, computers, and other network devices across short distances without the use of wires. Bluetooth transmits wireless communications over short distances, often up to 30 feet (10 meters). 

Low-cost transceivers are embedded in the gadgets to do this. It operates on the 2.45GHz frequency spectrum and has a data rate of up to 721KBps, as well as three voice channels. This frequency range has been designated for the use of industrial, scientific, and medical equipment (ISM) by international agreements. rd-compatible with 1.0 devices

How to Disable Bluetooth in Ubuntu

To Stop Bluetooth in Ubuntu following command is used. This will Stop Bluetooth in your Ubuntu Operating System.

sudo service bluetooth stop

 

To Start Bluetooth in Ubuntu following command is used. This will Start Bluetooth in your Ubuntu Operating System.

sudo service bluetooth start

 

To check the status of the Bluetooth service you can use the following command in your Ubuntu operating system.

service bluetooth status

 

This command will show output as follows:

 

You can also Stop the Bluetooth vial GUI

Temporarily turning off Bluetooth in Ubuntu is probably the quickest and easiest way to go. This way, you can turn it off for the time being, but it won’t be forever, and you’ll still be able to use it when you need it. Start by pressing the Win key on your keyboard to temporarily disable Bluetooth using the Ubuntu GUI. When you press this button, the Gnome search bar appears. Type “Settings” into the search box. A few results will display after typing “Settings” into the search box. Find the app with the gear icon labeled “Settings” and click it with your mouse. After that, you’ll be taken to Ubuntu’s settings page.

 

Look to the left of the settings box for the sidebar. Then, in the list, look for “Bluetooth” and click on it with your mouse to enter Ubuntu’s Bluetooth settings.

 

Locate the slider in the top-right part of the Bluetooth settings box in Ubuntu and click it. When you select this slider, the Bluetooth radio on your Ubuntu PC will go into “Airplane mode,” just like on a smartphone or tablet. If the slider is turned off, you won’t be able to use Bluetooth.

 

Turn off the Bluetooth by default in Ubuntu using Terminal:

Command 1: Systemd is used in the novel approach to disable any service, including Bluetooth. All you need to do is enter the following command into the terminal:

sudo systemctl disable bluetooth.service

 

Command 2: Stop the Bluetooth service with the systemctl command.

 

This will temporarily disable the Bluetooth.

 Disable Bluetooth Auto-Enable Behavior via Configure file.

There’s a rule in the “/etc/bluetooth/main.conf” file in each of the three Linux distributions described above that directs it to auto-enable Bluetooth on startup. To accomplish the task, the user only needs to edit the file and disable that line.

Step 1: From the ‘Activities’ overview, look for and open the word ‘terminal’ (or start menu depending on desktop environment).

 

Step 2: Run the nano text editor command in the terminal to edit the configuration file.

sudo nano /etc/bluetooth/main.conf

 

Find and replace AutoEnable=true with AutoEnable=false once the file has opened. Finally, press “Ctrl+X,” type “y,” and press Enter to save the file.

 

 Disable Bluetooth by running a command at login:

Due to unexplained reasons, the prior procedure may not always work. As a solution, the rfkill block Bluetooth command can be run automatically at login.

To begin, go to the activity overview and look for and open the ‘Startup Applications’ utility.

 

Then, to add a new startup application, click ‘Add,’ and type in:

 

Name = Turn off Bluetooth is a command (or whatever as you prefer)
Command = /usr/sbin/rfkill /usr/sbin/rfkill /usr/sbin/rfkill /usr
Comment = Optional comment

 

Disable & Mask Bluetooth system service

In most circumstances, including ours, the aforementioned method should work. However, the user has the option of disabling the system service in order to use Bluetooth.

To do so, open the terminal from the start menu (under ‘Activities’) and run the commands one by one.

1. Use the following command to stop the Bluetooth service:

systemctl stop bluetooth.service

 

2. Use the following command to disable the service so that it does not start automatically at the next login:

sudo systemctl disable bluetooth.service

 

3. The user can also conceal the service to prevent it from being started by other processes:

sudo systemctl mask bluetooth.service

 



Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads