Currently, the bluetooth radio is by default allways on after booting. How to set bluetooth radio default off?
Printable View
Currently, the bluetooth radio is by default allways on after booting. How to set bluetooth radio default off?
You may have to look around in /proc/acpi to find where this is in your system. I suggest:Add a line above 'exit 0' as follows:Code:sudo gedit /etc/rc.local
This may or may not be located in /proc/acpi/ibm in your system, please look around and customize to suit. On boot, the bluetooth LED blinks off in the last few seconds for me.Code:echo "disabled" > /proc/acpi/ibm/bluetooth
I've found this to work better:
Still edit the /etc/rc.local file, but instead add this line:
This will keep bluetooth turned off when you boot/login but you can still turn it on at will with the bluetooth applet in the panel.Code:rfkill block bluetooth
I know this is a very old thread and all, but I had to chime in to say this worked great on my CR-48! Thanks!
Worked perfectly, bluetooth applet is still running and can turn it back on, but radio is off after boot! :) :) :)
*edit: This turns off the bluetooth LED on my ThinkPad as well, so it actually turns it off, in case others wanted to know...
the only problem is, when I turn bluetooth on, then off again, for some reason the bluetooth-applet icon goes away, but can still use it through System -> Preferences -> Bluetooth
(didn't do this before, but not a real issue)
Thanks for the post!
This worked for me on Natty, but I have since upgraded to Oneiric. /etc/rc.local still contains the line, but bluetooth is still on by default. Any advice?
For me, I noticed that at least on Ubuntu 11.10 (Oneiric), you can run rfkill without any other special permissions, so I just added
to gnome's "Startup Applications..." configuration menu.Code:rfkill block bluetooth
If it still doesn't work for you, try running the command in the terminal and see if you get some error back.
Thanks [Knuckles], that worked like a charm.
Funnily enough, bluetooth is reenabled after the computer is back from suspend, so if you or anyone know how to deal with that as well, I'd much appreciate it!
I haven't tried this, but it should work.
Create a file in /etc/pm/sleep.d/ called 70_disablebluetooth with the following contents.
Don't forget to mark it as executable:Code:#!/bin/bash
case $1 in
thaw|resume)
rfkill block bluetooth
;;
*)
;;
esac
exit $?
sudo chmod +x /etc/pm/sleep.d/70_disablebluetooth