blueman icon indicating copy to clipboard operation
blueman copied to clipboard

How to display device battery percentage?

Open alexandremsouza1 opened this issue 3 years ago • 11 comments

blueman: 2.2.5 BlueZ: Distribution: Ubuntu 22.04 LTS x86_64 Desktop environment: GNOME

I'm not able to do it. And the version that this feature was available is 2.2.5?

https://drive.google.com/file/d/1UNK3gsZi53u0oBwSukks2kgpTHEbmVMd/view?usp=sharing

alexandremsouza1 avatar Jun 28 '22 16:06 alexandremsouza1

blueman 2.2 supports the LE Battery Service. Your device might not provide one but instead provide battery information via the audio profiles. That is supported by recent versions of audio servers, an experimental BlueZ API and blueman 2.3 (of which I just released beta1).

cschramm avatar Jun 28 '22 17:06 cschramm

where do i download this beta 2.3?

alexandremsouza1 avatar Jun 28 '22 23:06 alexandremsouza1

https://github.com/blueman-project/blueman/releases/tag/2.3.beta1

A debian package is only at mentors yet. You can build a binary package if you like. In short, something like:

apt-get build-dep blueman
dget -u https://mentors.debian.net/debian/pool/main/b/blueman/blueman_2.3~beta1-1.dsc
cd blueman-2.3~beta1
debuild -b -uc -us
apt install ../blueman_2.3~beta1-1_amd64.deb

cschramm avatar Jun 29 '22 07:06 cschramm

when trying to build an error occurs

image

alexandremsouza1 avatar Jun 29 '22 15:06 alexandremsouza1

passing the d parameter, this other error occurs

image

alexandremsouza1 avatar Jun 29 '22 15:06 alexandremsouza1

Does not seem like you did something like apt-get build-dep blueman from my snippet.

cschramm avatar Jun 29 '22 18:06 cschramm

image

alexandremsouza1 avatar Jun 29 '22 18:06 alexandremsouza1

So you need to put (probably just uncomment) some deb-src URIs in your sources.list first.

cschramm avatar Jun 29 '22 20:06 cschramm

could you point me to some from Ubuntu?

alexandremsouza1 avatar Jun 29 '22 22:06 alexandremsouza1

According to https://wiki.ubuntuusers.de/sources.list/#Jammy everything should be in place and, as I said, you just need to uncomment. Otherwise just duplicate the main deb URI as a deb-src URI.

Remember that 2.3 does not support audio profile battery levels on it's own. First step is to get batteries to show up in UPower or nothing will change in blueman. You can find plenty of hints here and on the Internets and it goes way beyond the non-blueman support I can provide here.

cschramm avatar Jun 30 '22 06:06 cschramm

helped a lot. Thank you very much for your time. I will research about UPower

alexandremsouza1 avatar Jun 30 '22 13:06 alexandremsouza1

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Aug 30 '22 00:08 github-actions[bot]