Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display battery percentage #335

Open
kikislater opened this issue Mar 17, 2020 · 9 comments
Open

Display battery percentage #335

kikislater opened this issue Mar 17, 2020 · 9 comments

Comments

@kikislater
Copy link

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
Copy link
Contributor

andy9a9 commented Jun 9, 2020

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

@kikislater
Copy link
Author

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
Copy link
Contributor

andy9a9 commented Jun 10, 2020

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
Copy link
Author

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
Copy link
Contributor

andy9a9 commented Jun 10, 2020

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

@kikislater
Copy link
Author

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

@andy9a9
Copy link
Contributor

andy9a9 commented Jun 10, 2020

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
Copy link
Author

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

image

@andy9a9
Copy link
Contributor

andy9a9 commented Jun 10, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants