[arch-general] bluetooth pairing with cellphone

Dieter Plaetinck dieter at plaetinck.be
Mon Aug 24 13:08:44 EDT 2009


hey dudes.
I fail (sort of) at pairing my pc with my phone via bluetooth.
(sony ericsson k810i, pc uses broadcom dongle)

I have a system where everything is up to date, bluez is installed etc.
the configs are all pretty much default.
I did need to enable HID2HCI_ENABLE="true" in /etc/conf.d/bluetooth otherwise the bluetoothd daemon would abort immediately after startup ( ? )
I can do `hcitool scan` and see my phone.

But to pair...

1) the bluez-simple-agent way: I start `sudo bluez-simple-agent`,it listens, and on the phone I search new devices.  phone cannot find pc :(
2) the blueman way:
   2a ) If I run as regular user, I get:

dieter at dieter-ws-a7n8x-arch ~ blueman-manager 
Loading configuration plugins
_________
on_bluez_name_owner_changed (/usr/bin/blueman-manager:99)
org.bluez owner changed to  :1.6 
Using gconf config backend
_________
SetAdapter (/usr/lib/python2.6/site-packages/blueman/gui/DeviceList.py:293)
None 
ERROR:dbus.proxies:Introspect error on org.bluez:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 2 matched rules; type="method_call", sender=":1.33" (uid=1000 pid=5982 comm="/usr/bin/python /usr/bin/blueman-manager ") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply=0 destination="org.bluez" (uid=0 pid=4642 comm="/usr/sbin/bluetoothd "))
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 578, in msg_reply_handler
    reply_handler(*message.get_args_list(**get_args_opts))
  File "/usr/bin/blueman-manager", line 148, in on_bluez_name_owner_changed
    self.List = ManagerDeviceList(adapter=self.Config.props.last_adapter, inst=self)
  File "/usr/lib/python2.6/site-packages/blueman/gui/manager/ManagerDeviceList.py", line 71, in __init__
    DeviceList.__init__(self, adapter, data)
  File "/usr/lib/python2.6/site-packages/blueman/gui/DeviceList.py", line 120, in __init__
    self.SetAdapter(adapter)
  File "/usr/lib/python2.6/site-packages/blueman/gui/DeviceList.py", line 324, in SetAdapter
    except dbus.DBusServiceUnknownError:
AttributeError: 'module' object has no attribute 'DBusServiceUnknownError'


do i need to be in some kind of group or something? There was no post install message, nor info about this on the wiki page (http://wiki.archlinux.org/index.php/Bluetooth)

   2b) if I run blueman-manager as root I can pair (hooray).


But actually I don't want to run stuff as root, nor do I want to use the bloatware that is blueman-manager.

Dieter


More information about the arch-general mailing list