MichalW / gnome-bluetooth-battery-indicator

Gnome-Shell extension displaying battery percentage for bluetooth devices
GNU General Public License v3.0
118 stars 39 forks source link

[Info] to get this to work on arch linux #52

Open min-xu-ai opened 1 year ago

min-xu-ai commented 1 year ago

It took me a while to figure it out. I thought I outline the steps it took for me to make this extension work on arch linux as of today

  1. Install dependencies: yay -S upower bluez-utils
  2. start upower: sudo systemctl start upower
  3. stop bluetooth: sudo systemctl stop bluetooth
  4. edit /etc/bluetooth/main.conf: sudo vim /etc/bluetooth/main.conf, enable the experimental feature (checkout arch wiki)
  5. restart bluetooth: sudo systemctl stop bluetooth; sudo systemctl start bluetooth
  6. install this extension and the icon and battery percentage should show up:

image

min-xu-ai commented 1 year ago

Perhaps this note could be include in the README or some doc here.

min-xu-ai commented 1 year ago

BTW, thank you so much for making this useful extension!

tech-nickel commented 1 year ago

Thank you, worked out perfectly!

Carlos-err406 commented 1 year ago

worked for me in ubuntu 22.04 following theese steps thank you @min-xu-ai

p2er1n commented 1 year ago

thank you! I find that i didn't install the bluez-utils package!

befabry commented 1 year ago

@Carlos-err406 How did you manage ? I couldn't make it work on Ubuntu 23.04 while it worked on my Arch setup. What bluez-utils did you install ? It doesn't have one in the 23.04 repos.

Have you installed all these ? sudo apt install bluez libbluetooth-dev python3-dev python3-bluez

min-xu-ai commented 11 months ago

As of sept 2023, on arch linux, it seems that the bluetooth daemon's experimental d-bus feature has a bug or something. upower isn't able to find the bluetooth device and query its battery level. At least this is what I observed.

min-xu-ai commented 11 months ago

As of sept 2023, on arch linux, it seems that the bluetooth daemon's experimental d-bus feature has a bug or something. upower isn't able to find the bluetooth device and query its battery level. At least this is what I observed.

Actually, it is only specific to one of the system I have with a BT speaker. It still works with another system. So maybe this is not a bug.

abuturabofficial commented 9 months ago

This fix works on Fedora 39 for me as well. (Please install requirements for Fedora as mentioned in the README)

toniovr7 commented 6 months ago

Hi! Had some trouble trying to checkout this: "enable the experimental feature (checkout arch wiki)". Which line is? 'Cause I try to find it using Ctrl+W but found nothing.

flying-x commented 6 months ago

here: image