Brikwerk/nxbt

Failed to activate service 'org.bluez'

v1ra1 opened this issue · 2 comments

v1ra1 commented

Traceback (most recent call last): File "/usr/local/bin/nxbt", line 8, in <module> sys.exit(main()) File "/usr/local/lib/python3.8/dist-packages/nxbt/cli.py", line 325, in main demo() File "/usr/local/lib/python3.8/dist-packages/nxbt/cli.py", line 152, in demo adapters = nx.get_available_adapters() File "/usr/local/lib/python3.8/dist-packages/nxbt/nxbt.py", line 645, in get_available_adapters adapters = find_objects(bus, SERVICE_NAME, ADAPTER_INTERFACE) File "/usr/local/lib/python3.8/dist-packages/nxbt/bluez.py", line 78, in find_objects bus.get_object(service_name, "/"), File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in get_object return self.ProxyObjectClass(self, bus_name, object_path, File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 250, in __init__ self._named_service = conn.activate_name_owner(bus_name) File "/usr/lib/python3/dist-packages/dbus/bus.py", line 182, in activate_name_owner self.start_service_by_name(bus_name) File "/usr/lib/python3/dist-packages/dbus/bus.py", line 277, in start_service_by_name return (True, self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH, File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking reply_message = self.send_message_with_reply_and_block( dbus.exceptions.DBusException: org.freedesktop.DBus.Error.TimedOut: Failed to activate service 'org.bluez': timed out (service_start_timeout=25000ms)

Has anyone ran into this situation?

v1ra1 commented

image

Not sure if the bluetooth service needs to be running. Anytime I try and start it this is the result.

I did however run these commands and it then the bluetooth service was able to start up

Before:
image

sudo rmmod btusb
sleep 1
sudo modprobe btusb

Then

sudo service bluetooth start
sudo service bluetooth status

After:
image

But then nxtb just stops working and says it cannot find any bluetooth adapter

image

Where as before it would stall for a bit and then say timeout

Very helpful link but not the solution: https://ukbaz.github.io/howto/python_gio_1.html

Im assuming my bluetooth is just not connected correctly.

image

v1ra1 commented

The solution was unplugging the bluetooth usb and then plugging it back in.