delphiki / AirStatus

Check AirPods battery levels on Linux
GNU General Public License v3.0
135 stars 23 forks source link

It just doesn't work #21

Closed anlsergio closed 1 year ago

anlsergio commented 1 year ago

I did everything as the instructions says:

The result is always the same:

I tried rebooting, tried keeping the lid of the case open while connected, but nothing, just nothing. I'd be happy to at least see an error to know what actually is going wrong, to find out at least where to start looking.

My system is Manjaro Gnome:

image

I don't see any recent activity around here, it's been more than a year since this repository was updated so I'm not sure if it's not working anymore or if it's just me missing something...

delphiki commented 1 year ago

Hello @anlsergio,

The project should still be functional (I'm using it right now). Did you check the ControllerMode in you bluetooth config file (/etc/bluetooth/main.conf)? It should be "dual":

ControllerMode = dual
anlsergio commented 1 year ago

Hello @anlsergio,

The project should still be functional (I'm using it right now). Did you check the ControllerMode in you bluetooth config file (/etc/bluetooth/main.conf)? It should be "dual":

ControllerMode = dual

Yep, mine was set as dual by default (implicitly) but I tried by explicitly setting it as well, and the result is still the same. Sorry for not putting that in my original commentary, since it's relevant information too.

anlsergio commented 1 year ago

Bluetooth restart won't help either, because I tried many combinations of even restarting the computer altogether after the modifications made

anlsergio commented 1 year ago

So I managed to make it work!

image

It turns out that my sh**ty Bluetooth adapter is probably too weak which makes the Airpods signal poor enough to be excluded from the script filter:

By adding some print logs I've been able to see what was going wrong in my specific case so I changed the value of MIN_RSSI to -100 so that my Airpods are under the threshold.

image

Perhaps it would be good to have this kind of information available from the README.md documentation or even give the possibility of the user to easily tweak it from a config file because I believe this might be the case of many people giving it a try and not being able to make it work.