You are not logged in.

#1 2023-01-27 18:18:10

Peregrino69
Member
Registered: 2016-03-11
Posts: 99

[SOLVED] Tint2 taskbar not showing battery status

Hi guys

Preferences/Tint2/Edit Tint2s/Running Tint2s shows the one I've chosen in Tint2 Manager - beryllium.tint2rc.

# Panel
panel_items = PTSCP

As per https://forums.bunsenlabs.org/viewtopic.php?id=450 and https://github.com/BunsenLabs/tint2/blo … c/tint2.md battery status should show up by adding B in the panel_items string, but done that (PTSCBP), restarted tint2, and nothing happens.

Interestingly, when I open Default Tint2rc in Edit Tint2s menu, Geany opens lithium.tint2rc, which was the original target of .config/Tint2/tint2rc symlink, even after I've changed the default to beryllium.tint2rc.

I fixed the symlink manually and reloaded tint2. No change. I removed the symlink and copied beryllium.tint2rc to tint2rc, reloaded tint2; still no change. Rebooting doesn't help either.

What am I not understanding this time?

Last edited by Peregrino69 (2023-01-28 10:14:55)

Offline

#2 2023-01-27 19:54:46

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: [SOLVED] Tint2 taskbar not showing battery status

Peregrino69 wrote:

As per https://forums.bunsenlabs.org/viewtopic.php?id=450 and https://github.com/BunsenLabs/tint2/blo … c/tint2.md battery status should show up by adding B in the panel_items string, but done that (PTSCBP), restarted tint2, and nothing happens.

You need to have a section for the battery in tint2. You could use:

#-------------------------------------
# Battery
battery = 1
# boolean (0 or 1) : Whether to enable the battery item.
battery_hide = never
# never/integer (0 to 100) : At what battery percentage the battery item is hidden.
battery_low_status = 15
# integer: At what battery percentage the low command is executed.
battery_low_cmd = notify-send "battery low" 
# notify-send "battery low" : Command to execute when the battery is low.
bat1_font = sans 9
# [FAMILY-LIST] [STYLE-OPTIONS] [SIZE]
bat2_font = sans 9
#[FAMILY-LIST] [STYLE-OPTIONS] [SIZE]
battery_font_color =  #ffffff 100
# color opacity (0 to 100)
battery_padding =  1 0
#horizontal_padding vertical_padding
battery_background_id = 0
# integer : Which background to use for the battery.

Instead of show status in the panel, you can let xfce4-power-manager set an power icon in the systray. Run xfce4-power-manager-settings in terminal, enable status notifications and system tray icon. See https://docs.xfce.org/xfce/xfce4-power- … references


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

#3 2023-01-28 02:40:06

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,550
Website

Re: [SOLVED] Tint2 taskbar not showing battery status

Leaving aside the battery button for a moment:

Peregrino69 wrote:

Preferences/Tint2/Edit Tint2s/Running Tint2s shows the one I've chosen in Tint2 Manager - beryllium.tint2rc.

OK

Interestingly, when I open Default Tint2rc in Edit Tint2s menu, Geany opens lithium.tint2rc

Sorry about this - beryllium.tint2rc is being opened OK, but the comment at the top of the file still says lithium.tint2rc. It's the right file though - check the filename. There is a separate lithium.tint2rc with slightly different contents.

...which was the original target of .config/Tint2/tint2rc symlink

Yes, tint2rc is a symlink pointing to beryllium.tint2rc

I fixed the symlink manually

It should already have been pointing to beryllium.tint2rc. What did you change it from/to?

I removed the symlink and copied beryllium.tint2rc to tint2rc, reloaded tint2; still no change. Rebooting doesn't help either.

So, one way or the other, you are using the correct tint2rc file. smile

So why isn't the battery item working?

One point: Debian now ship tint2 16.7-1 in Bullseye so that's what we are using in Beryllium, not the BL fork in GitHub. The tint2 docs now refer to tint2 17.0.2 but the battery settings don't seem to have changed. You might find a hint there.


...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 )

Introduction to the Bunsenlabs Boron Desktop

Online

#4 2023-01-28 09:30:50

Peregrino69
Member
Registered: 2016-03-11
Posts: 99

Re: [SOLVED] Tint2 taskbar not showing battery status

Booted up this morning, and now battery percentage is showing just where I configured it, between clock and power button. Go figure big_smile

@rbh - sorry for being incomplete, the Battery section in the rc files is present.

@johnraff - thx for the clarification on the rc files. The original tintrc symlink was however pointing to lithium's file, and changing the default in Tint2 Manager didn't change it. This installation is originally Lithium, recently upgraded.

Thanks again, guys smile

Offline

#5 2023-01-29 08:16:41

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,550
Website

Re: [SOLVED] Tint2 taskbar not showing battery status

Peregrino69 wrote:

The original tintrc symlink was however pointing to lithium's file, and changing the default in Tint2 Manager didn't change it. This installation is originally Lithium, recently upgraded.

Ah yes, the upgrade will not overwrite a user's personal config files, so yours would still have been what came with Lithium. And there would have been no beryllium.tint2rc at all.

You can get any current user config files you want by copying them from /usr/share/bunsen/skel, or alternatively if you run 'bl-user-setup' it will offer to import any files that are different from what you have. You can check each one and agree or refuse.


...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 )

Introduction to the Bunsenlabs Boron Desktop

Online

#6 2023-01-29 23:42:47

tynman
Member
Registered: 2015-10-13
Posts: 93

Re: [SOLVED] Tint2 taskbar not showing battery status

One other little thing..  The battery status will appear/disappear depending on (1) the setting of the battery_hide parameter in tint2rc (explained in rbh's sample above) and (2) the battery's charge level. I set it thus

battery_hide = never

so it is always visible, and I no longer wonder if tint2 is acting funny.

Offline

Board footer

Powered by FluxBB