 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

5th August 2012, 05:56 PM
|
|
Registered User
|
|
Join Date: Mar 2012
Location: Carrboro, NC, USA
Posts: 17

|
|
How do you have bluetooth off at boot?
In F17 with Gnome3 my laptop boots with Bluetooth enabled. I would like to have bluetooth off when the computer is turned on, but still available for use if I want it.
A simple systemctl disable bluetooth.service does not stop bluetooth from starting and being on.
I notice there is a bluetooth.target as well, and reading http://fedoraproject.org/wiki/Systemd it is stated as an example under the definition of targets:
"bluetooth.target which is requested as soon as a bluetooth dongle becomes available and which simply pulls in bluetooth related services that otherwise would not need to be started: bluetoothd and obexd and suchlike"
It seems to me from reading the above that on boot this bluetooth.target is started when the system finds the bluetooth hardware? In /etc/systemd/system/bluetooth.target.wants there is a sym link to the bluetooth.service file in /usr/lib/systemd/system/.
So what I really want to do is disable bluetooth.target? systemctl disable bluetooth.target is not a thing.
I have a suspicion that if I blow away that symlink that it will stop the service from starting, but is that really the "right" way to go about this, and would that disable bluetooth for good (which I don't want to do)?
edit: Funny story. Bluetooth is disabled at boot, but the gnome bluetooth-applet starts with the icon lit and says it is enabled, when really there is nothing behind it.
Last edited by patrick; 5th August 2012 at 06:29 PM.
|

5th August 2012, 07:25 PM
|
 |
Registered User
|
|
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,449

|
|
|
Re: How do you have bluetooth off at boot?
You can also use "mask" which is a stronger way of turning off a service
Quote:
systemctl mask bluetooth.service
|
from 'man systemctl'
Quote:
mask [NAME...]
Mask one or more unit files, as specified on the command line. This will link these units to /dev/null, making it impossible to
start them. This is a stronger version of disable, since it prohibits all kinds of activation of the unit, including manual
activation. Use this option with care.
|
|

5th August 2012, 07:59 PM
|
|
Registered User
|
|
Join Date: Aug 2012
Location: USA
Posts: 12

|
|
|
Re: How do you have bluetooth off at boot?
Quote:
Originally Posted by marko
You can also use "mask" which is a stronger way of turning off a service
from 'man systemctl'
|
I don't think that's the goal here. I'd also like to hear of a way to do this. Completely disabling (mask) the service isn't what most people want. Most of us want it to be available, but off by default (just like we've been able to do in Windows since XP). But, if BT is enabled in the BIOS, it doesn't matter what the previous setting was in Fedora, on reboot, it turns BT back on.
I'd like to see an option to persist BT off across reboots / power cycles. Then, if/when I want to use it, I can simply click it and turn it on. The first thing I do every time I reboot my laptop is click the BT icon and click Off. It's annoying.
|

5th August 2012, 08:13 PM
|
|
Registered User
|
|
Join Date: Nov 2011
Posts: 229

|
|
|
Re: How do you have bluetooth off at boot?
I ended up having to disable it in BIOS myself (probably shouldn't have gotten BT with the laptop at all since I never use it, but at the time it seemed like I might need it for college and we thought our cell phone BT would actually not be useless at the time). It's a shame that power management is something open source developers never seem to consider.
|

5th August 2012, 08:13 PM
|
|
Registered User
|
|
Join Date: Mar 2012
Location: Carrboro, NC, USA
Posts: 17

|
|
|
Re: How do you have bluetooth off at boot?
Quote:
Originally Posted by BillBauman
I don't think that's the goal here. I'd also like to hear of a way to do this. Completely disabling (mask) the service isn't what most people want. Most of us want it to be available, but off by default (just like we've been able to do in Windows since XP). But, if BT is enabled in the BIOS, it doesn't matter what the previous setting was in Fedora, on reboot, it turns BT back on.
I'd like to see an option to persist BT off across reboots / power cycles. Then, if/when I want to use it, I can simply click it and turn it on. The first thing I do every time I reboot my laptop is click the BT icon and click Off. It's annoying.
|
As per my edit in the first post, it seems that the bluetooth.service does stay disabled, but that gnome bluetooth-applet starts as if bluetooth is enabled/available. So the bluetooth icon is "on" when you first log in to gnome. If you open the bluetooth control panel, it shows as disabled.
So maybe this is a bluetooth-applet bug?
I suppose the other issue is, that having disabled the bluetooth service, I doubt bluetooth-applet has the rights to turn it back on for us.
This would probably all be a lot easier if bluetooth-applet just remembered the last state bluetooth was in and set it off it was off on shutdown, etc.
|

3rd September 2012, 12:21 AM
|
|
Registered User
|
|
Join Date: Sep 2012
Location: Seoul, KR
Posts: 21

|
|
|
Re: How do you have bluetooth off at boot?
Same problem here. My Laptop is thinkpad X201 and I'm running FC17 Gnome with kernel 3.5.2
From my observations (my laptop has LED indicators for bluetooth being on/off and so..), disabling bluetooth services really doesn't help at all. The bluetooth service is stopped (from #service bluetooth status) but bluetooth hardware is on.
I think it is problem of Gnome 3 - their should be an option to turn bluetooth on or off on boot or gnome should remember its last status on shutdown/reboot and keep that status on boot.
Last edited by thkang; 3rd September 2012 at 12:24 AM.
|

7th September 2012, 02:25 PM
|
|
Registered User
|
|
Join Date: Mar 2011
Age: 22
Posts: 85

|
|
|
Re: How do you have bluetooth off at boot?
I would like to remove bluetooth support forever. But when I did:
Code:
rpm -e --no-deps gnome-session-bluetooth
rpm -e --no-deps pulseaudio-module-bluetooth
it was fine, but when I did:
Code:
rpm -e --no-deps bluez
It removed gnome-session and gnome-panel and lots of things so I could not run a terminal to get them back. And so I'm now reinstalling the system. Weird.
I would wish to remove everything related to bluetooth forever or at least prevent it from booting.
|

7th September 2012, 03:10 PM
|
 |
"Registered User" T-Shirt Winner
|
|
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,128

|
|
|
Re: How do you have bluetooth off at boot?
"--no-deps" is NOT an option to the rpm command, so it was ignored. The rpm option you needed to use was "--nodeps".
|

7th September 2012, 03:17 PM
|
|
Registered User
|
|
Join Date: Mar 2011
Age: 22
Posts: 85

|
|
|
Re: How do you have bluetooth off at boot?
Yes, I did it with '--nodeps'. Sorry, I misstyped. Otherwise it would say me "I do not understand what is --no-deps". Still the problem remains.
---------- Post added at 05:17 PM ---------- Previous post was at 05:16 PM ----------
I'm sorry, Seville is in Spain, not in USA.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 23:13 (Friday, 24-05-2013)
|
|
 |
 |
 |
 |
|
|