I would like to make a USB Bluetooth dongle discoverable upon start-up (or whenever it's plugged in) on Debian Squeeze or Wheezy.
If I use
hciconfig initially, I can see the device in this mode:
UP RUNNING PSCAN
hciconfig hci0 piscan manually works fine. This puts the device in this mode (and the device can be discovered):
UP RUNNING PSCAN ISCAN
A number of documents (for example, on the Debian wiki or this Ubuntu issue) point to settings in
It would seem that setting
iscan enable; pscan enable; in this file should work. Unfortunately, the versions of Bluez I'm using (4.x) don't have this file (even with the
bluez-compat package installed).
# 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
This doesn't work, though. The device starts up in
PSCAN mode, but not
Even manually, the following command taken from the Debian wiki doesn't work:
dbus-send --system --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.SetMode string:discoverable
Is there a recommended way to set the device in
PSCAN ISCAN mode upon start-up (or when the dongle is inserted)?