Does this program still work? I could not get it to run under Ubuntu 16.04.
./keyboard.py
2018-02-23 09:39:36,705 INFO Running hciconfig for hci0
Can't write local class of device on hci0: Operation not permitted (1)
Can't change local name on hci0: Operation not permitted (1)
Can't set scan mode on hci0: Operation not permitted (1)
2018-02-23 09:39:36,713 INFO Advertising via sdb
Traceback (most recent call last):
File "./keyboard.py", line 105, in
sys.exit(main())
File "./keyboard.py", line 50, in main
init_adapter(arguments.interface, "Linux Keyboard")
File "./keyboard.py", line 33, in init_adapter
adapter_path = manager.FindAdapter(interface)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in call
return self._proxy_method(*args, **keywords)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in call
**keywords)
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "FindAdapter" with signature "s" on interface "org.bluez.Manager" doesn't exist