nxbt
nxbt copied to clipboard
org.bluez.Error.Failed: Not Powered
Hello, thanks for the program, but I encountered an issue when using it.
After running sudo nxbt demo
command, I noticed the Bluetooth was being constantly turned off and on, and eventually, I got the error below:
An error occurred while running the demo: Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/nxbt/controller/server.py", line 96, in run itr, ctrl = self.connect() File "/usr/local/lib/python3.8/dist-packages/nxbt/controller/server.py", line 371, in connect self.bt.set_discoverable(True) File "/usr/local/lib/python3.8/dist-packages/nxbt/bluez.py", line 549, in set_discoverable self.device.Set(ADAPTER_INTERFACE, "Discoverable", dbus_value) File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 141, in __call__ return self._connection.call_blocking(self._named_service, 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.bluez.Error.Failed: Not Powered
I am using this program on elementary OS 6.1 which is based on Ubuntu 20.04 LTS (focal) with Python 3.9.
Have you turned bluetooth on?
Have you turned Bluetooth on?
The Bluetooth was powered on and can detect devices normally, but it will be constantly turned off and on until the terminal throws an error. If I have Blueman installed, the Bluetooth will also be soft blocked in rfkill list after the error.