You are not logged in.
No news on the 2 issues.
As I posted above, 'upower -d' suggests that it wants to display 'battery-missing-symbolic', same as one poster on the Papirus issue. That's on a VM with of course no battery - up to now it's displayed the same AC power icon I get on this Debian Buster desktop machine.
The strace output seems to imply it's passing over ac-adapter.svg and choosing image-missing.svg
I don't see what new icons a theme would have to provide to get this working. If we had some names that work it wouldn't be hard to add them to our tweaked icon theme.
Everything I read in those 2 issues points to changes in xfce4-power-manager resulting in icon theme incompatibility.
Your strace output from post #1 suggests that xfce4-power-manager is looking for different sizes - 48px first, then 16 and 24 iirc.
Maybe if you increase the panel's system tray icon size to >=48 the icon will change?
Maybe if you make sure that the relevant icons are not only provided, but provided in all relevant sizes?
Unfortunately I cannot reproduce the issue on my laptop, which is Archlinux but uses tint2 and xfce4-power-manager, but I did notice some changes (as ceeslans posted: correct icons, but dark instead of light, and wrong size).
This makes me confident that a fix is on the way.
Of course, for Debian-stable users there's the problem with freezes for testing - if upstream doesn't hurry up you could be stuck with this for 2 years
Offline
Another option (the actual tray icon) would be to script something up using some yad magic, example
yad --notification --image="geany" --command="echo 'Hello World'" --text="The notification's tooltip"
Offline
Unfortunately I cannot reproduce the issue on my laptop, which is Archlinux but uses tint2 and xfce4-power-manager, but I did notice some changes (as ceeslans posted: correct icons, but dark instead of light, and wrong size).
This makes me confident that a fix is on the way.
Of course, for Debian-stable users there's the problem with freezes for testing - if upstream doesn't hurry up you could be stuck with this for 2 years
There is hardly any time left now for the fix to arrive in Debian Bullseye. I guess if something arrives in unstable we might be able to backport it.
It's a pity because I don't know of any other app that handles power/screen/suspend without being tied into a big DE. (There are various other ways of getting a battery status icon though.) It's all less important on a desktop with AC only of course. The main thing I missed on a laptop was effective notification when the battery is running out, before suspend kicks in. There is another xfce app xfce4-battery-plugin which although it's supposed to be an xfce4-panel plugin, still manages to do notifications by itself. A bit tricky to configure though.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
I don't know how useful this is but I've used mate-power-manager with tint2 and openbox in the past.
This is the installation output on a fairly vanilla Lithium/Buster system:
rkw@rose:~$ sudo apt install mate-power-manager
[sudo] password for rkw:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libmate-panel-applet-4-1 mate-power-manager-common
Suggested packages:
mate-polkit
The following NEW packages will be installed:
libmate-panel-applet-4-1 mate-power-manager mate-power-manager-common
0 upgraded, 3 newly installed, 0 to remove and 3 not upgraded.
Need to get 2,927 kB of archives.
After this operation, 14.1 MB of additional disk space will be used.
Do you want to continue? [Y/n]
The depends according to apt show
Depends: default-dbus-session-bus | dbus-session-bus, mate-notification-daemon | notification-daemon, mate-power-manager-common (= 1.20.3-2), policykit-1, systemd | elogind | consolekit, upower, libatk1.0-0 (>= 1.12.4), libc6 (>= 2.27), libcairo-gobject2 (>= 1.10.0), libcairo2 (>= 1.10.0), libcanberra-gtk3-0 (>= 0.25), libcanberra0 (>= 0.2), libdbus-1-3 (>= 1.9.14), libdbus-glib-1-2 (>= 0.88), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.37.3), libgtk-3-0 (>= 3.21.4), libmate-panel-applet-4-1 (>= 1.18), libnotify4 (>= 0.7.0), libpango-1.0-0 (>= 1.22.0), libpangocairo-1.0-0 (>= 1.14.0), libupower-glib3 (>= 0.99.0), libx11-6, libxext6, libxrandr2 (>= 2:1.2.99.2)
Maybe an alternative to consider
Offline
^Thanks for the idea Nick.
I've just tried an install on a VM for a quick look. For some reason, installing the same 3 packages took 17MB not 14 for me, anyway quite a bit more than xfce-p-m. RAM usage was about the same. The settings interface is somewhat simpler.
m-p-m has come up in the past too, let's keep it in mind if x-p-m turns out to be unusable.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
DeepDayze wrote:Then maybe a tint2 executor would be a good workaround to correct this "bug". Perhaps share your executor setup for this?
Here you go.
You can either set the icon path to the 'Papirus' panel icons in /usr/share/icons - or to the icon folder in ~/.config/tint2 (grab the archive in below link).
The script is set to the commonly used BAT0 levels. If so needed, change the path to BAT1.~/.config/tint2/executors/battery
#!/bin/bash iconpath="/usr/share/icons/Papirus-Dark/24x24/panel/" #iconpath="$HOME/.config/tint2/executors/icons/battery/" status=$(cat /sys/class/power_supply/BAT0/status) perc=$(cat /sys/class/power_supply/BAT0/capacity) if [[ $status = "Discharging" ]]; then if [[ $perc -ge 91 ]]; then echo "${iconpath}battery-full.svg" echo "$perc%" elif [[ $perc -ge 71 ]]; then echo "${iconpath}battery-good.svg" echo "$perc%" elif [[ $perc -ge 51 ]]; then echo "${iconpath}battery-medium.svg" echo "$perc%" elif [[ $perc -ge 31 ]]; then echo "${iconpath}battery-low.svg" echo "$perc%" elif [[ $perc -ge 16 ]]; then echo "${iconpath}battery-caution.svg" echo "$perc%" elif [[ $perc -ge 1 ]]; then echo "${iconpath}battery-empty.svg" echo "$perc%" fi elif [[ $status = "Charging" ]]; then if [[ $perc -ge 90 ]]; then echo "${iconpath}battery-full-charging.svg" echo "$perc%" elif [[ $perc -ge 70 ]]; then echo "${iconpath}battery-good-charging.svg" echo "$perc%" elif [[ $perc -ge 50 ]]; then echo "${iconpath}battery-medium-charging.svg" echo "$perc%" elif [[ $perc -ge 30 ]]; then echo "${iconpath}battery-low-charging.svg" echo "$perc%" elif [[ $perc -ge 15 ]]; then echo "${iconpath}battery-caution-charging.svg" echo "$perc%" elif [[ $perc -ge 1 ]]; then echo "${iconpath}battery-empty-charging.svg" echo "$perc%" fi else echo "${iconpath}battery-full-charged.svg" echo "$perc%" fi
tint2rc configuration for the battery executor (adept to your personal preferences)
#------------------------------------- # Executor (battery status) execp = new execp_command = ~/.config/tint2/executors/battery execp_interval = 15 execp_has_icon = 1 execp_cache_icon = 0 execp_continuous = 0 execp_markup = 1 execp_tooltip = execp_lclick_command = b=$(acpi -b) && notify-send "$b" execp_rclick_command = xfce4-power-manager -c execp_mclick_command = execp_uwheel_command = execp_dwheel_command = execp_font = Noto Sans 8 execp_font_color = #eeeeee 100 execp_padding = 3 0 2 execp_background_id = 0 execp_centered = 0 execp_icon_w = 24 execp_icon_h = 24
here is the archive with the Papirus *.svg icons as called by the executor script.
~
This code doesn't give me the icons to the tint panel, only the percentage value. I do have the proper path for the icons, and when I run the executor from a terminal, it gives me the correct icon file path.
Is there something trivial I'm missing here?
The only change I did to the lithium default tint2 config file is this line:
panel_items = PTSBCP
and of course I added the lines above to the end of the tint2 config file.
What else would be needed from me so someone could help me troubleshoot this?
Thanks,
ghorvath
Offline
The only change I did to the lithium default tint2 config file is this line:
panel_items = PTSBCP
and of course I added the lines above to the end of the tint2 config file.
What else would be needed from me so someone could help me troubleshoot this?
Noticed that your panel_items line doesn't include an 'E' for the executor.
It should look something like this:
panel_items = PTESBCP
hope this helps
Offline
Noticed that your panel_items line doesn't include an 'E' for the executor.
It should look something like this:panel_items = PTESBCP
hope this helps
This is exactly what I needed. Works perfectly now. Thanks!
Offline
I just installed Beryllium on a "new" laptop that I was gifted and it is not that the power manager icon is missing from the theme but that as pointed out by manyroads, it is black. A different tint2 configuration (lithium-light.tint2rc) works fine.
Last edited by kozimodo (2021-05-29 00:20:45)
Offline
This issue still needs work, obviously.
Without a battery (ie AC only) I get the same "icon missing" icon with both regular lithium and lithium-light tint2s.
I need to install Beryllium on a real laptop to test the battery icon issue more. That is a bit complicated because of the encrypted drive I have...
Since we are already shipping a tweaked papirus icon theme with a couple of substituted icons, once we knew the icon names needed to make this work again it should be easy enough to add them in. Maybe even symlinks would be enough.
Does anyone know if xfce4-power-manager has changed recently?
Needs some more websearching maybe...
Last edited by johnraff (2021-05-29 01:12:15)
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
A big version jump, unless they changed their version scheme...
No, he can't sleep on the floor. What do you think I'm yelling for?!!!
Offline
^The latter I think, but there were a lot of changes between buster & bullseye.
That release came out in December but I couldn't see any commits after that whose titles looked at all relevant:
https://gitlab.xfce.org/xfce/xfce4-powe … its/master
The issue turns up here and there, but because it's a systray icon the xfce devs seem to be giving it low priority, as something only for hacked-together systems (like BL), not regular xfce which uses the xfce4 panel.
Some links (including a couple that appeared early in this thread):
https://gitlab.xfce.org/xfce/xfce4-powe … issues/104
https://forum.xfce.org/viewtopic.php?id=14578
https://bbs.archlinux.org/viewtopic.php?id=262003
https://github.com/PapirusDevelopmentTe … ssues/2484
https://github.com/PapirusDevelopmentTe … ssues/2615
https://forum.manjaro.org/t/battery-ico … ager/57775
There was a hint about making symlinks in the icon theme that might conceivably help...
Needs some more digging into upower?
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
A big version jump, unless they changed their version scheme...
I think it's the versioning scheme that changed to bring it into line with XFCE.
Real Men Use Linux
Offline
^ Right, what John said, but still a bunch of upgrades.
No, he can't sleep on the floor. What do you think I'm yelling for?!!!
Offline
This issue still needs work, obviously.
Without a battery (ie AC only) I get the same "icon missing" icon with both regular lithium and lithium-light tint2s.
I recently tried the pocillo icon theme designed for the Ubuntu budgie desktop and it seems quite acceptable to me. It also has the advantage that it has an icon for system updates.
It is not available in the Debian repos but it could be easily built for the Bunsen repo.
Offline
^Hi @kozimodo - does the icon for xfce-power-manager show correctly in the tint2 system tray when using the pocillo icons on a Debian Bullseye system?
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
Ah, never mind. Looking at it on my Bullseye system, the icon is also black.
Last edited by kozimodo (2021-07-14 12:29:46)
Offline
Posting the relevant bug report (maybe?)
No, he can't sleep on the floor. What do you think I'm yelling for?!!!
Offline
^That issue is in the list I posted a few posts above, but thanks for the reminder - there is a bit more to read there now.
For a moment I thought removing libxfce4panel-2.0-4 might do it, but no go.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
Moving this issue to the top of my TODO list. We can't really ship Beryllium with that "image-missing" icon in the system tray.
Spent a good chunk of time yesterday with not much to show however.
If anyone runs into a hint somewhere, please share!
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline