Bluetooth – How to Set Bluetooth Off by Default at Boot


Whenever I turn my bluetooth off from the settings menu, it's back on after reboot. I know this has already been asked but I've tried all answers that have been provided and nothing seems to work.

The most popular suggestion is: Run sudoedit /etc/rc.local and add this before line with exit 0:

rfkill block bluetooth

When I do this, an empty file opens up and it's not even rc.local if I'm correct. (see screenshot).
I'm running Ubuntu 18.04 LTS.


If I run ls -l /etc/rc.local this comes up:


If I run: sudo rfkill list all:


I've tried everything in this link except installing BUM: How can I deactivate Bluetooth on system startup?

Best Answer

I've tested this and it's persistent across reboots.

Click the bluetooth logo between the keyboard and battery icons on the system tray. Then click the "Bluetooth ON" selection and it changes to "Bluetooth OFF":

bluetooth off.gif

After comments I discovered that Ubuntu 18.04 with Gnome interface doesn't work like Ubuntu 16.04 with Unity interface.

The solution is to edit /etc/default/tlp and find:

# Radio devices to disable on startup: bluetooth, wifi, wwan.
# Separate multiple devices with spaces.
#DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi wwan"

Edit the last line to read:

Related Question