Comments (5)
I have the same problem. the output of
upower -d
doesn't show my bluetooth device. However in my android phone it is showing the percentage of battery.
Have you tried enabling experimental features in Bluez? My device started appearing in upower
(however it only repliies with mutiples of 20%, the same as my phone).
from bluetooth_headset_battery_level.
Can you provide more information about your device (make and model)? Also if it's mentioned in the output of upower -d
and whether you can see its battery levels in other devices (phone, Mac or Windows)
I have the same problem with an Edifier W800BT and it was due to it not reporting battery at all.
from bluetooth_headset_battery_level.
Almost the same issue here
$ ./bluetooth_battery.py My_MAC_Addr.3
Traceback (most recent call last):
File "<string>", line 3, in connect
_bluetooth.error: (111, 'Connection refused')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/dilip/Downloads/Bluetooth_Headset_Battery_Level-master/./bluetooth_battery.py", line 166, in <module>
main()
File "/home/dilip/Downloads/Bluetooth_Headset_Battery_Level-master/./bluetooth_battery.py", line 163, in main
print("Battery level for {} is {}".format(device, str(query)))
File "/home/dilip/Downloads/Bluetooth_Headset_Battery_Level-master/./bluetooth_battery.py", line 93, in __str__
return "{:.0%}".format(self._perform_query() / 100)
File "/home/dilip/Downloads/Bluetooth_Headset_Battery_Level-master/./bluetooth_battery.py", line 101, in _perform_query
sock.connect(self._bt_settings)
File "<string>", line 5, in connect
bluetooth.btcommon.BluetoothError: [Errno 111] Connection refused
from bluetooth_headset_battery_level.
I have the same problem.
the output of upower -d
doesn't show my bluetooth device.
However in my android phone it is showing the percentage of battery.
from bluetooth_headset_battery_level.
@jrom99 Thx, The problem has been solved after enabling experimental features in Bluez
from bluetooth_headset_battery_level.
Related Issues (20)
- Container does seems not to work HOT 5
- unclear exception on usage attempt HOT 2
- Couldn't find the RFCOMM port number in F35
- SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats HOT 2
- Apple Air Pods Pro HOT 1
- Systemerror using Python 3.10 HOT 1
- It works on Raspberry Pi 3B/Raspberry OS(Buster) with Anker soundcore a3102 BT speakers
- bluetooth.btcommon.BluetoothError: [Errno 111] Connection refused HOT 22
- Device or resource busy HOT 16
- PY_SSIZE_T_CLEAN macro must be defined for '#' formats HOT 4
- support for Google Pixel Buds HOT 1
- Couldn't find the RFCOMM port number. Perhaps the device is offline? HOT 6
- error in PyBluez setup command: use_2to3 is invalid. HOT 2
- error: command '/usr/bin/gcc' failed with exit code 1 HOT 2
- after a one commit broken on some devices
- SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats HOT 2
- Why BatteryStateQuerier send messaged to sock? HOT 1
- bluetooth.btcommon.BluetoothError: [Errno 16] Device or resource busy HOT 3
- SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bluetooth_headset_battery_level.