mate-desktop / mate-power-manager

Power management tool for the MATE desktop
https://mate-desktop.org
GNU General Public License v2.0
59 stars 51 forks source link

Display battery percentage #335

Open kikislater opened 4 years ago

kikislater commented 4 years ago

Expected behaviour

Display battery percentage near icon without clicking on it

Actual behaviour

No battery percentage available before clicking on icon

Steps to reproduce the behaviour

Why two applet for battery indicator ? One is complete and included in mate indicator applet but without direct view on battery percentage whereas other one is not included in mate indicator, display percentage and time remaining lacking battery stats and preferences ... image

MATE general version

1.24.0

Package version

1.24.0

Linux Distribution

Manjaro

Link to downstream report of your Distribution

andy9a9 commented 4 years ago

Maybe I didn't catch the right problem, but what's wrong here? battery_issue

kikislater commented 4 years ago

Interesting, I was thinking I had it in previous distribution and now I don't have it but I'm on Manjaro. May be they removed it. Any idea where to look ? mate-panel or mate-power-manager package ?

image

Thank you

andy9a9 commented 4 years ago

I realized, that is handled by /usr/lib/x86_64-linux-gnu/indicator-power/indicator-power-service which is part of indicator-power package.

apt-cache policy indicator-power
indicator-power:
  Installed: 12.10.6+17.10.20170829.1-0ubuntu4
  Candidate: 12.10.6+17.10.20170829.1-0ubuntu4
  Version table:
 *** 12.10.6+17.10.20170829.1-0ubuntu4 500

So try to install this package.

kikislater commented 4 years ago

Ok thank you, unfortunately this does not work ! Package doesn't in arch/manjaro exist but I build my own PKGBUILD to install it.

I think it's a different system, indicator-power add me a dconf entry under canonical but with no effects ... Do you know if it rely on Ayatana indicator ?

andy9a9 commented 4 years ago

Try to build it from sources here https://packages.ubuntu.com/bionic/indicator-power. I have no idea about Ayatana indicator.

kikislater commented 4 years ago

That's what I did building from sources with help to PKGBUILD to easily uninstall it if needed later ...

andy9a9 commented 4 years ago

That's what I did building from sources with help to PKGBUILD to easily uninstall it if needed later ...

Ok, is there any error, when it's going to build/install or start?

kikislater commented 4 years ago

No errors and only a compiled library and gschemas are built. It depends on indicator-application which of course was build before

image

andy9a9 commented 4 years ago

So looks like indicator-power-service binary wasn't built. (Just check build log.) From CMakefile looks like, it should be build as well.

set(SERVICE_EXEC "indicator-power-service")
add_definitions(-DSERVICE_EXEC="${SERVICE_EXEC}")

On the other hand Could you please directly check build directory and run the binary from there?