> ## Content Index
> Fetch the complete content index at: https://itsfoss.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Turn Off Bluetooth By Default in Ubuntu [Quick Tip]
- URL: https://itsfoss.com/turn-off-bluetooth-by-default-in-ubuntu-14-04/
- Published: 2014-05-25T21:06:32.000Z
- Updated: 2023-01-11T09:56:07.000Z
- Author: Abhishek Prakash
- Tags: Quick Tip, #Import 2022-12-26 08:27

I recently bought a new Dell Inspiron 7437 and one of the first few things I did was to [dual boot the pre-installed Windows with Ubuntu](https://itsfoss.com/install-ubuntu-1404-dual-boot-mode-windows-8-81-uefi/ "Guide To Install Ubuntu 14.04 In Dual Boot Mode With Windows 8 Or 8.1 UEFI"). My older laptop did not have Bluetooth, strange but true. This is why I never noticed that **bluetooth is always on at each boot in Ubuntu**.

Since, I hardly use Bluetooth, so why should I have Bluetooth enabled by default? It impacts the battery life a little after all.

While you can turn off Bluetooth in one click in Ubuntu, doing it in each session is a repetitive and frustrating task. 

A simpler solution is to **deactivate Bluetooth at start up in Ubuntu**.

[![disable bluetooth by default in Ubuntu ](https://itsfoss.com/content/images/wordpress/2014/05/Bluetooth_Ubuntu.jpeg)](https://itsfoss.com/content/images/wordpress/2014/05/Bluetooth%5FUbuntu.jpeg)

In this quick post, I’ll share with you how to disable Bluetooth by default at each start up.

## Turn off Bluetooth by default in Ubuntu

The new method is [using systemd to disable any service](https://itsfoss.com/start-stop-restart-services-linux/) including Bluetooth. All you have to do is to run this command in the terminal:

```
sudo systemctl disable bluetooth.service
```

If you are interested, you can expand the below section and check out the older way of disabling Bluetooth at each boot.

#### Older method to turn off Bluetooth by default

Open a terminal and use the following command to open gedit with sudo:

```
sudo gedit /etc/rc.local
```

It will open the rc.local file. Just add the following line just before exit 0.

```
rfkill block bluetooth
```

Altogether, your rc.local file look like this:

[![disable bluetooth by default in Ubuntu 14.04](https://itsfoss.com/content/images/wordpress/2014/05/rfkill_Bluetooth.png)](https://itsfoss.com/content/images/wordpress/2014/05/rfkill%5FBluetooth.png)

That would be it. Restart the computer and you should see that Bluetooth has been disabled. 

Of course you can turn it back on whenever you want by going to the system tray on the top panel or accessing the [Bluetooth settings on Ubuntu](https://itsfoss.com/bluetooth-speakers-ubuntu/).

### Explanation of what you did here

This little section is just to give a brief explanation of what we did here. It’s not obligatory to read this section. You can skip to comment section for your suggestions or thanks :)

**rc.local** file is used to run various shell commands at start up time. These commands are user defined. 

In a clean install, rc.local has no commands to run. What we did here was to add **rfkill block bluetooth**. [rfkill](http://wireless.kernel.org/en/users/Documentation/rfkill?ref=itsfoss.com) is a tool to query the state of various switches, buttons and subsytem interfaces. 

With this command in rc.localm we are basically soft blocking Bluetooth at each start up time. 

I hope you find this quick little tip helpful.