each time I open Ubuntu I have to turnoff bluetooth function from the top panel. my questions is that is there any method to make it disabled by default?
Asked
Active
Viewed 1.9k times
2 Answers
10
To disable bluetooth service on startup
sudo nano /etc/rc.local
add this line before exit 0
rfkill block bluetooth

jhilmer
- 1,195
- 9
- 13
-
Unfortunately I don't know what to do after adding the last code, In other words how can I save changes? – Muhammed Feb 13 '14 at 10:35
-
Press ctrl+x and ctrl+s to save your change. This script is running each time you turn on the computer. So this line will turn off the bluetooth – jhilmer Feb 14 '14 at 15:58
-
-
You can also use gedit to do this, if you are not comfortable with nano :) – user3459110 Nov 27 '14 at 08:58
-
0
Following the answer here, what worked for me (in Ubuntu 14.04) was
sudo gedit /etc/bluetooth/main.conf
InitiallyPowered = true # keep it that way
# add the following:
# start bluetooth on boot?
# compatibility note: if this variable is _not_ found bluetooth will start
BLUETOOTH_ENABLED=0
Save the file and reboot.
-
-
-
-
You shouldn't downvote it. I just posted what worked FOR ME in the hope it could be useful to someone. – Rodrigo Apr 22 '17 at 22:38