I'm working on gumstix overo/oe so the regular gnome stuff is not
available. This system is running bluez 3.36. I can work on updating
to 4.x if it helps.
I was able to use this simple script to connect a mouse by specifying
its bdaddr on the command line. (Device-initiated reconnect does not
seem to work, but this succeeded on the first attempt anyway)
devices = sys.argv
bus = dbus.SystemBus()
bmgr = dbus.Interface(bus.get_object('org.bluez', '/org/bluez'),
bus_id = bmgr.ActivateService('input')
imgr = dbus.Interface(bus.get_object(bus_id, '/org/bluez/input'),
for device in devices:
path = imgr.CreateDevice(device)
idev = dbus.Interface (bus.get_object(bus_id, path),
but it doesn't work for connecting a think outside keyboard:
[email protected]:~# ./pairconnect.py 00:03:51:C9:EA:53
Traceback (most recent call last):
File "./pairconnect.py", line 19, in <module>
File "/usr/lib/python2.5/site-packages/dbus/proxies.py", line 68, in __call__
return self._proxy_method(*args, **keywords)
File "/usr/lib/python2.5/site-packages/dbus/proxies.py", line 140, in __call__
File "/usr/lib/python2.5/site-packages/dbus/connection.py", line
622, in call_blocking
org.bluez.Error.ConnectionAttemptFailed: Required key not available
also, what should I do to look up a device first so I don't get this
on subsequent attempts:
dbus.exceptions.DBusException: org.bluez.Error.AlreadyExists: Input
I'll document whatever works out on the wiki.
> I'm working on gumstix overo/oe so the regular gnome stuff is not
> available. This system is running bluez 3.36. I can work on updating
> to 4.x if it helps.
you should do that since the 3.x series is kinda outdated.