The officially official Devuan Forum!

You are not logged in.

#1 2020-01-07 01:31:35

randomer
Member
Registered: 2019-10-24
Posts: 30  

XFCE Power Manager doesn't show current charge in tray

The XFCE Power Manager doesn't update the current charge. It shows 100% battery and plugged in even though it is not plugged in and the charge is decreasing. When i click on tray icon and open battery/device info, the info seems correct and updated. It worked fine in ASCII. Any idea?

battery.jpg

Offline

#2 2020-01-07 01:42:39

aut0exec
Member
Registered: 2018-11-21
Posts: 71  

Re: XFCE Power Manager doesn't show current charge in tray

Cinnamon has the same issue. I know that doesn't help much but you can check it from the CLI with Upower periodically until things get fixed!

Offline

#3 2020-01-07 01:47:39

randomer
Member
Registered: 2019-10-24
Posts: 30  

Re: XFCE Power Manager doesn't show current charge in tray

aut0exec wrote:

Cinnamon has the same issue. I know that doesn't help much but you can check it from the CLI with Upower periodically until things get fixed!

Ur reply is actually very helpful. Now i know the issue isn't on my end, right?

Offline

#4 2020-01-07 11:28:40

HevyDevy
Member
Registered: 2019-09-06
Posts: 133  

Re: XFCE Power Manager doesn't show current charge in tray

I can confirm this behavior also with power manager on the laptop.

If you are using the xfce4 panel, there is a battery monitor plugin you can configure. You can have the panel icon show or a few other display options, you can also set levels and actions similar to power manager.

Last edited by HevyDevy (2020-01-07 11:30:31)

Offline

#5 2020-01-07 20:41:01

GNUser
Member
Registered: 2017-03-16
Posts: 508  

Re: XFCE Power Manager doesn't show current charge in tray

I don't use a power manager on my Devuan ASCII laptop, but like having a battery icon in system tray. So I wrote a minimalistic utility that does only that:
https://github.com/bdantas/battery-monitor

Last edited by GNUser (2020-01-07 20:41:29)

Offline

#6 2020-01-08 00:20:43

randomer
Member
Registered: 2019-10-24
Posts: 30  

Re: XFCE Power Manager doesn't show current charge in tray

HevyDevy wrote:

I can confirm this behavior also with power manager on the laptop.

If you are using the xfce4 panel, there is a battery monitor plugin you can configure. You can have the panel icon show or a few other display options, you can also set levels and actions similar to power manager.

I prefer the XFCE Power Manager because it integrates with the notification area and doesn't just sit on the panel.

GNUser wrote:

I don't use a power manager on my Devuan ASCII laptop, but like having a battery icon in system tray. So I wrote a minimalistic utility that does only that:
https://github.com/bdantas/battery-monitor

That looks cool. Thank you for sharing.

Offline

#7 2020-01-08 00:53:25

golinux
Administrator
Registered: 2016-11-25
Posts: 1,805  

Re: XFCE Power Manager doesn't show current charge in tray

GNUser is cool.  Provides lots of goodies like that.

Offline

#8 2020-01-08 02:39:52

bgstack15
Member
Registered: 2018-02-04
Posts: 108  

Re: XFCE Power Manager doesn't show current charge in tray

Thank for sharing the battery icon utility, GNUser. The world needs more simple utilities like this one.


This space intentionally left blank.

Offline

#9 2020-01-08 05:53:43

randomer
Member
Registered: 2019-10-24
Posts: 30  

Re: XFCE Power Manager doesn't show current charge in tray

Will the XFCE Power Manager bug be fixed in the Beowulf stable release or is it also existent in Debian Buster and therefore won't be fixed?

@GNUser I tried your battery monitor but the icon was not displayed correctly. Instead there was a blank icon in the notification area. I followed the steps on the GitHub and double-checked if the icon files are present in /usr/share/icons/battery-monitor.

Offline

#10 2020-01-08 10:27:29

HevyDevy
Member
Registered: 2019-09-06
Posts: 133  

Re: XFCE Power Manager doesn't show current charge in tray

GNUser wrote:

I don't use a power manager on my Devuan ASCII laptop, but like having a battery icon in system tray. So I wrote a minimalistic utility that does only that:
https://github.com/bdantas/battery-monitor

A nice addition to your script would be to allow the users preferred icon theme battery icons to show.

Offline

#11 2020-01-08 15:00:24

GNUser
Member
Registered: 2017-03-16
Posts: 508  

Re: XFCE Power Manager doesn't show current charge in tray

@randomer - Did you follow all the steps under "Installation"? What architecture are you using (x86, x86_64, or something else)?

Also, I failed to mention that mktrayicon depends on gtk3. Is gtk3 installed on your system? If not, do this: sudo apt install libgtk-3-0 then give it another try.

If it still doesn't work, try manually creating a systray icon with mktrayicon -i /path/to/any/icon.png. If gtk3 is installed and that doesn't work, it may be a bug in your system tray/desktop environment.

Last edited by GNUser (2020-01-08 15:51:26)

Offline

#12 2020-01-08 15:08:24

GNUser
Member
Registered: 2017-03-16
Posts: 508  

Re: XFCE Power Manager doesn't show current charge in tray

BTW I added 2>/dev/null to line 36 to prevent the cosmetic 'divide by 0' error when on a/c power.
The github repository has been updated to reflect this.

Last edited by GNUser (2020-01-08 16:17:28)

Offline

#13 2020-01-08 15:10:29

GNUser
Member
Registered: 2017-03-16
Posts: 508  

Re: XFCE Power Manager doesn't show current charge in tray

@HevyDevy - gtk3 and mktrayicon have built-in support for icon themes. If you'd like to use my script with your icon theme:
1. delete every instance of .png in the script
2. on line 61, change $icon_dir/$icon to just $icon

Last edited by GNUser (2020-01-08 16:12:21)

Offline

#14 2020-01-08 15:18:13

GNUser
Member
Registered: 2017-03-16
Posts: 508  

Re: XFCE Power Manager doesn't show current charge in tray

@bgstack15 - You're welcome!

Last edited by GNUser (2020-01-08 20:21:50)

Offline

#15 2020-01-09 10:52:07

HevyDevy
Member
Registered: 2019-09-06
Posts: 133  

Re: XFCE Power Manager doesn't show current charge in tray

GNUser wrote:

@HevyDevy - gtk3 and mktrayicon have built-in support for icon themes. If you'd like to use my script with your icon theme:
1. delete every instance of .png in the script
2. on line 61, change $icon_dir/$icon to just $icon

Ok thanks for that.

Offline

Board footer