You are not logged in.

#1 2010-08-11 23:47:52

MekeorMelire
Member
Registered: 2010-08-11
Posts: 6

[SOLVED]Turn off Bluetooth automatically or rather don't even start it

Yead, actually the topic of this thread says what i want to do:
I want my arch linux not starting my bluetooth but my bluetooth-applet (for gnome).

if there is no easy resolution for that an other way would be to turn off it automatically - but that's worse.

do you have any ideas?

Last edited by MekeorMelire (2010-08-15 16:11:51)

Offline

#2 2010-08-11 23:48:46

ablepharus
Member
From: Berlin
Registered: 2010-05-23
Posts: 129

Re: [SOLVED]Turn off Bluetooth automatically or rather don't even start it

I think blacklisting could work.

Offline

#3 2010-08-12 10:35:33

MekeorMelire
Member
Registered: 2010-08-11
Posts: 6

Re: [SOLVED]Turn off Bluetooth automatically or rather don't even start it

if "blacklisting" means writing "!bluetooth" into the the DAEMONS in rc.conf - it doesn't work!
my current rc.conf DAEMONS:

DAEMONS=(syslog-ng netfs crond alsa !network hal networkmanager fam gdm cpufreq httpd samba !bluetooth)

but I changed my /etc/bluetooth/xxx files. e.g.:
that's my /etc/bluetooth/main.conf :

[General]

# List of plugins that should not be loaded on bluetoothd startup
#DisablePlugins = network,input

# Default adaper name
# %h - substituted for hostname
# %d - substituted for adapter id
Name = %h

# Default device class. Only the major and minor device class bits are
# considered.
Class = 0x000100

# How long to stay in discoverable mode before going back to non-discoverable
# The value is in seconds. Default is 180, i.e. 3 minutes.
# 0 = disable timer, i.e. stay discoverable forever
DiscoverableTimeout = 0

# How long to stay in pairable mode before going back to non-discoverable
# The value is in seconds. Default is 0.
# 0 = disable timer, i.e. stay pairable forever
PairableTimeout = 0

# Use some other page timeout than the controller default one
# which is 16384 (10 seconds).
PageTimeout = 8192

# Discover scheduler interval used in Adapter.DiscoverDevices
# The value is in seconds. Defaults is 0 to use controller scheduler.
DiscoverSchedulerInterval = 0

# What value should be assumed for the adapter Powered property when
# SetProperty(Powered, ...) hasn't been called yet. Defaults to true
InitiallyPowered = false

# Remember the previously stored Powered state when initializing adapters
RememberPowered = true

# Use vendor, product and version information for DID profile support.
# The values are separated by ":" and VID, PID and version.
#DeviceID = 1234:5678:abcd

# Do reverse service discovery for previously unknown devices that connect to
# us. This option is really only needed for qualification since the BITE tester
# doesn't like us doing reverse SDP for some test cases (though there could in
# theory be other useful purposes for this too). Defaults to true.
ReverseServiceDiscovery = false

# Enable name resolving after inquiry. Set it to 'false' if you don't need
# remote devices name and want shorter discovery cycle. Defaults to 'true'.
NameResolving = false

# Enable runtime persistency of debug link keys. Default is false which
# makes debug link keys valid only for the duration of the connection
# that they were created for.
DebugKeys = false


other ideas? do you turn off your bluetooth always manually?

Offline

#4 2010-08-12 11:36:21

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED]Turn off Bluetooth automatically or rather don't even start it

I think the hint is gnome's bluetooth applet will have bluetooth started (wouldn't be unlogical). Why would you want to keep the applet but disable the underlying functionality? That's like buying a car and throwing out the engine.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#5 2010-08-12 12:23:46

MekeorMelire
Member
Registered: 2010-08-11
Posts: 6

Re: [SOLVED]Turn off Bluetooth automatically or rather don't even start it

.:B:. wrote:

Why would you want to keep the applet but disable the underlying functionality?

because with the applet I can turn on/off my bluetooth easily.

Offline

#6 2010-08-12 12:55:33

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED]Turn off Bluetooth automatically or rather don't even start it

Then find a way to get the applet to disable bluetooth by default if you need that. Not the other way around.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#7 2010-08-12 13:21:44

George.Harmony
Member
From: Off The Wire
Registered: 2010-04-30
Posts: 97

Re: [SOLVED]Turn off Bluetooth automatically or rather don't even start it

I use two scripts, one to start bluetooth and one to stop it. I have them as shortcuts off of my start menu. It's almost as easy as having the icon in the systray. I don't use a panel but I suspect it would be easy to create a launcher if you have a panel.

Here's my scripts. I suspect there are better ways to do it but these two work for me.

Turn on

#! /bin/bash
gksu /etc/rc.d/bluetooth start
blueman-applet

Turn off

#! /bin/bash
gksu /etc/rc.d/bluetooth stop
killall -e obex-data-server
exec pkill blueman-applet

Desktop:  Compiz Stand Alone w/ Cairo Dock.
Laptop:    Pekwm w/ Tint2
Jukebox:   MPD w/ cli
Gateway: Vuurmuur w/dialog

Offline

#8 2010-08-15 12:53:14

MekeorMelire
Member
Registered: 2010-08-11
Posts: 6

Re: [SOLVED]Turn off Bluetooth automatically or rather don't even start it

hmm, nope. that doesn't work.

Offline

#9 2010-08-15 15:55:07

sepo
Member
Registered: 2010-03-04
Posts: 2

Re: [SOLVED]Turn off Bluetooth automatically or rather don't even start it

Have you tried rfkill?

Offline

#10 2010-08-15 16:10:19

MekeorMelire
Member
Registered: 2010-08-11
Posts: 6

Re: [SOLVED]Turn off Bluetooth automatically or rather don't even start it

Yes!!!
RFKILL WORKS! Thank you!

Offline

Board footer

Powered by FluxBB