1

Everytime I start my computer Bluetooth is on. I turn it off. But when I restart my computer it is on again. I don't want to turn it off every time I start my computer. How can I make ubuntu remember the Bluetooth setting from previous session?

These are not options, please suggest something different:

  • Never turn off your computer
  • Remove Bluetooth hardware
  • Permanently turn off Bluetooth
  • Recompile your kernel
zarax
  • 191

4 Answers4

2

gksudo gedit /etc/default/tlp and go to line 5 which should read

RESTORE_DEVICE_STATE_ON_STARTUP=0

Change it to

RESTORE_DEVICE_STATE_ON_STARTUP=1

Save, exit gedit, reboot and see if problem is solved

Jeremy31
  • 12,602
  • 10
  • 58
  • 114
2

Install TLP and enable the setting

DEVICES_TO_DISABLE_ON_STARTUP="bluetooth" 
linrunner
  • 1,387
  • 1
    As I stated, I don't want to turn it off permanently. I just want it to rememver its last state before shutdown. – zarax Sep 22 '15 at 19:58
  • No problem, then use RESTORE_DEVICE_STATE_ON_STARTUP=1:-) And by the way: DEVICES_TO_DISABLE_ON_STARTUP is not permanent, you may always switch bluetooth in the panel or command line (bluetooth on|off). – linrunner Sep 22 '15 at 21:18
  • This should NOT be the accepted answer. Comments aren't answers and this answer disables bluetooth permanently. Maybe editing the answer to include the actual solution. – Heliton Martins Feb 22 '21 at 14:37
1

This answer is aware of the latest version of TLP (1.3) and doesn't suggest disabling the device permanently as some answers did.


After installing TLP, run sudo editor /etc/tlp.conf (if, and only if it doesn't exist, try /etc/defaults/tlp) and search for the line:

#RESTORE_DEVICE_STATE_ON_STARTUP=0

Change it to:

RESTORE_DEVICE_STATE_ON_STARTUP=1

Reboot and test it.

  • Hint: if your terminal editor is Nano, you can use Ctrl+W, RESTORE_DEVICE_STATE_ON_STARTUP (or a part of it) and hit Enter to quickly find the line. Edit it and then hit Ctrl+O, Enter to save and Ctrl+X to close Nano.
0

In /etc/bluetooth/main.conf, uncomment (remove the '#') the line that has the option AutoEnable and set it to false.

# AutoEnable defines option to enable all controllers when they are found.
# This includes adapters present on start as well as adapters that are plugg
# in later on. Defaults to 'true'.
AutoEnable=false

Refer to the Arch Wiki for more info.

Edit: This will make the Bluetooth be turned off on startup. It will not remember the state from last boot.

Danilo
  • 1