Git Product home page Git Product logo

Comments (5)

jrom99 avatar jrom99 commented on June 2, 2024 1

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.

jrom99 avatar jrom99 commented on June 2, 2024

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.

meetdilip avatar meetdilip commented on June 2, 2024

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.

peylight avatar peylight commented on June 2, 2024

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.

peylight avatar peylight commented on June 2, 2024

@jrom99 Thx, The problem has been solved after enabling experimental features in Bluez

from bluetooth_headset_battery_level.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.