You are not logged in.

#1 2013-10-03 04:27:33

XURL
Member
Registered: 2013-09-26
Posts: 24

[SOLVED] tint2/Openbox: strange new item appeared

Today, after starting up my laptop, a new item has been added to my tint2 bar - there's now a percentage of *something* and time, which doesn't change and all the time stays at 00:00.

I didn't change any config files yesterday and I certainly did not update any tint2-related packages.

abokf6P2.png

What is it?

Update: I noticed the value (percentage) changes quite frequently up and down (not much, but still), so I guess it is not related to having no AC Power (battery info) or anything like that.

/var/log/pacman.log

[2013-10-02 19:10] [PACMAN] Running 'pacman -S whois'
[2013-10-02 19:10] [PACMAN] installed whois (5.0.26-1)
[2013-10-02 22:17] [PACMAN] Running 'pacman -S weechat'
[2013-10-02 22:18] [PACMAN] installed weechat (0.4.1-4)

tint2rc

# Background definitions
# ID 1
rounded = 0
border_width = 0
background_color = #000000 100
border_color = #FFFFFF 16

# ID 2
rounded = 0
border_width = 0
background_color = #FFFFFF 40
border_color = #FFFFFF 48

# ID 3
rounded = 0
border_width = 0
background_color = #FFFFFF 16
border_color = #FFFFFF 68

# Panel
panel_monitor = all
panel_position = bottom center horizontal
panel_size = 100% 26
panel_margin = 0 0
panel_padding = 2 0 7
panel_dock = 0
wm_menu = 0
panel_layer = top
panel_background_id = 1
panel_items = LTSBC

# Panel Autohide
autohide = 0
autohide_show_timeout = 0.3
autohide_hide_timeout = 2
autohide_height = 2
strut_policy = follow_size

# Taskbar
taskbar_mode = single_desktop
taskbar_padding = 0 3 3
taskbar_background_id = 0
taskbar_active_background_id = 0

# Tasks
urgent_nb_of_blink = 8
task_icon = 1
task_text = 1
task_centered = 0
task_maximum_size = 180 35
task_padding = 6 2
task_background_id = 3
task_active_background_id = 2
task_urgent_background_id = 2
task_iconified_background_id = 3

# Task Icons
task_icon_asb = 70 0 0
task_active_icon_asb = 100 0 0
task_urgent_icon_asb = 100 0 0
task_iconified_icon_asb = 70 0 0

# Fonts
task_font = sans 7
task_font_color = #FFFFFF 68
task_active_font_color = #FFFFFF 83
task_urgent_font_color = #FFFFFF 83
task_iconified_font_color = #FFFFFF 68
font_shadow = 0

# System Tray
systray = 1
systray_padding = 0 4 5
systray_sort = ascending
systray_background_id = 0
systray_icon_size = 16
systray_icon_asb = 70 0 0

# Clock
time1_format = %H:%M
time1_font = sans bold 8
#time2_format = %A %d %B
#time2_font = sans 6
clock_font_color = #FFFFFF 74
clock_padding = 1 0
clock_background_id = 0
#clock_rclick_command = orage

# Tooltips
tooltip = 0
tooltip_padding = 2 2
tooltip_show_timeout = 0.7
tooltip_hide_timeout = 0.3
tooltip_background_id = 1
tooltip_font = sans 10
tooltip_font_color = #000000 80

# Mouse
mouse_middle = none
mouse_right = close
mouse_scroll_up = toggle
mouse_scroll_down = iconify

# Battery
battery = 0
battery_low_status = 10
battery_low_cmd = notify-send "battery low"
battery_hide = 98
bat1_font = sans 8
bat2_font = sans 6
battery_font_color = #FFFFFF 74
battery_padding = 1 0
battery_background_id = 0

# Launchers
launcher_icon_theme = Faenza
launcher_padding = 3 3 5
launcher_background_id = 9
launcher_icon_size = 22
launcher_item_app = /usr/share/applications/firefox.desktop
launcher_item_app = /usr/share/applications/Thunar.desktop
launcher_item_app = /usr/share/applications/urxvt.desktop

Last edited by XURL (2013-10-03 17:32:09)


☑ CPU: Single core Intel Pentium M (-UP-) clocked at 1733.000 Mhz
☑ MEM: 490.1 MB
☑ HDD: 40.1 GB

Offline

#2 2013-10-03 12:19:12

bjornoslav
Member
Registered: 2011-11-01
Posts: 137

Re: [SOLVED] tint2/Openbox: strange new item appeared

That's battery percentage and remaining time for charging/using. big_smile


asus ux303la, core i5@1.6ghz, 8 gb ram, 500gb hdd, hd4400 gpu, crux x64 with openbox

Offline

#3 2013-10-03 12:20:44

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: [SOLVED] tint2/Openbox: strange new item appeared

That looks like it has nothing to do with tint2 or your tint2rc itself.  That is just a new systray widget.

EDIT: I believe the post above is correct and this is wrong.  But why would it just suddenly appear?

Last edited by Trilby (2013-10-03 12:21:55)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2013-10-03 12:22:32

bjornoslav
Member
Registered: 2011-11-01
Posts: 137

Re: [SOLVED] tint2/Openbox: strange new item appeared

panel_items = LTSBC

B stands for Battery, remove that, save the config file, restart tint2 and it will be gone. smile


asus ux303la, core i5@1.6ghz, 8 gb ram, 500gb hdd, hd4400 gpu, crux x64 with openbox

Offline

#5 2013-10-03 14:45:25

XURL
Member
Registered: 2013-09-26
Posts: 24

Re: [SOLVED] tint2/Openbox: strange new item appeared

bjornoslav wrote:

That's battery percentage and remaining time for charging/using. big_smile

What could have caused it to appear? I've been using tint2 for a week or so and haven't seen it till today.

It appeared *from nowhere* and guess what .. now, after starting up my laptop for the second time today, it's gone.

Am I missing something here?

bjornoslav wrote:
panel_items = LTSBC

B stands for Battery, remove that, save the config file, restart tint2 and it will be gone. smile

Should it be visible with this even if batery is set to 0 (disabled)?


☑ CPU: Single core Intel Pentium M (-UP-) clocked at 1733.000 Mhz
☑ MEM: 490.1 MB
☑ HDD: 40.1 GB

Offline

#6 2013-10-03 14:59:41

bjornoslav
Member
Registered: 2011-11-01
Posts: 137

Re: [SOLVED] tint2/Openbox: strange new item appeared

Maybe tint2 couldn't find the necessary parameters from /sys/class/power_supply/*, so that's why it didn't appear before.
Maybe the panel_items directive was overriden by battery = 0 before, but now it isn't. Disable them both and then try again, does it appear again?


asus ux303la, core i5@1.6ghz, 8 gb ram, 500gb hdd, hd4400 gpu, crux x64 with openbox

Offline

#7 2013-10-03 16:08:18

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: [SOLVED] tint2/Openbox: strange new item appeared

XURL wrote:
...
battery_hide = 98
...

Has your battery not gone below 98% before?  This would be one reason it wouldn't have been displayed.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2013-10-03 16:20:06

XURL
Member
Registered: 2013-09-26
Posts: 24

Re: [SOLVED] tint2/Openbox: strange new item appeared

Trilby wrote:
XURL wrote:
...
battery_hide = 98
...

Has your battery not gone below 98% before?  This would be one reason it wouldn't have been displayed.

Never (at least within the period we're talking about here). Actually, this morning it acted strange - it slowly (like 1% per every two or three seconds) went from 99% down to 85% and then back up.

What's even funnier? I tried to enable this feature by changing battery to 1 (enabled) and restarting tint2, but all I get is that block appearing for a second or two (max) and disappearing. tint2 doesn't produce any error messages though. hmm


☑ CPU: Single core Intel Pentium M (-UP-) clocked at 1733.000 Mhz
☑ MEM: 490.1 MB
☑ HDD: 40.1 GB

Offline

#9 2013-10-03 17:27:09

bjornoslav
Member
Registered: 2011-11-01
Posts: 137

Re: [SOLVED] tint2/Openbox: strange new item appeared

Perhaps you use the laptop always plugged into the electrical grid, with the battery attached to it (but probably malfunctioning due to use and age), so it didn't come apparent to you until now. Since we lack any details about your computer, we can only speculate.


asus ux303la, core i5@1.6ghz, 8 gb ram, 500gb hdd, hd4400 gpu, crux x64 with openbox

Offline

#10 2013-10-03 17:31:56

XURL
Member
Registered: 2013-09-26
Posts: 24

Re: [SOLVED] tint2/Openbox: strange new item appeared

Thank you all for your answers!

For the sake of not running into the same surprise again, I've removed the B tag for now and it doesn't even try to load it. Good.

bjornoslav wrote:

Perhaps you use the laptop always plugged into the electrical grid, with the battery attached to it (but probably malfunctioning due to use and age), so it didn't come apparent to you until now. Since we lack any details about your computer, we can only speculate.

Yes, my laptop *is* like from the past century, but the battery still holds it for about 4-5 hours, so ..


☑ CPU: Single core Intel Pentium M (-UP-) clocked at 1733.000 Mhz
☑ MEM: 490.1 MB
☑ HDD: 40.1 GB

Offline

Board footer

Powered by FluxBB