-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
$ powermon -C ../neey.yaml -a info
Received an adhoc command
Running adhoc command to non-connected device
not found error BleakDeviceNotFoundError()
2024-11-06 09:40:53,796:ERROR:device:run@204: Error decoding result: Unable to connect to port: None
Traceback (most recent call last):
File "/home/johnb/.cache/pypoetry/virtualenvs/powermon-0AIXnVh3-py3.11/bin/powermon", line 6, in <module>
sys.exit(main())
^^^^^^
File "/home/johnb/powermon/powermon/runner.py", line 175, in main
_run_async(device.run(True))
File "/home/johnb/powermon/powermon/runner.py", line 36, in _run_async
return async_loop.run_until_complete(coroutine)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/johnb/powermon/powermon/device.py", line 205, in run
raise exception
File "/home/johnb/powermon/powermon/device.py", line 199, in run
result: Result = await self.port.run_command(command)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johnb/powermon/powermon/ports/abstractport.py", line 84, in run_command
raise ConnectionError(f"Unable to connect to port: {self.error_message}")
ConnectionError: Unable to connect to port: Nonebluetoothctl shows controller 'stuck'??
$ bluetoothctl
Agent registered
[GW-24S4EB]#bleReset (sometimes) clears the problem
$ powermon-cli --bleReset
$ bluetoothctl
Agent registered
[bluetooth]#other times it fails are requires bluetooth service restart
$ powermon-cli --bleReset
command execution failed
Command '['bluetoothctl', 'power', 'off']' returned non-zero exit status 1.
$ bluetoothctl
Agent registered
[GW-24S4EB]# exit
$ sudo systemctl restart bluetooth
$ bluetoothctl
Agent registered
[bluetooth]# exitReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels