cbatticon icon indicating copy to clipboard operation
cbatticon copied to clipboard

The Tooltip shows sometimes an additional line with absurd times on a T470p

Open friedrichromstedt opened this issue 1 year ago • 1 comments

This is for ~/.xinitrc:

cbatticon \
    --icon-type symbolic \
    ((configuration of thresholds and left-clicking)) &

with cbatticon-64ff8935 (9 Feb 2022) on a Lenovo T470p using the fluxbox window manager.

The battery of this machine has been tuned on Windows to stop charging at 90% and to not start charging above 80%. It seems that this configuration is respected also while booted into Arch Linux on the same machine.

Here is the behavioural pattern I am interested in:

  1. Startup the X server. The cbatticon is shown in the the Toolbar at the bottom of the screen. To achive this, I needed to add to a line in .fluxbox/init:
    session.screen0.toolbar.tools:	prevworkspace, workspacename, nextworkspace, iconbar, clock
    
    the systemtray element, s.t. it runs now
    session.screen0.toolbar.tools:	prevworkspace, workspacename, nextworkspace, iconbar, systemtray, clock
    
    After startup, cbatticon shows in the Tooltip a single-line text of the form "Battery is not charging (88% remaining)".
  2. After some time (something on the order of hours), a second line appears, telling about several thousands of hours remaining (and some minutes). This is while the battery is still not charging nor discharging.

I'd like to speculate a little: Maybe the battery's remaining capacity changes slightly, not often, only once in a while, when the hardware detects some ordinary self-discharging at a very small rate. This isn't consistent with a battery doing nothing. So maybe cbatticon is mislead here.

friedrichromstedt avatar Jun 03 '24 16:06 friedrichromstedt

This has been fixed in batticonplus

artist4xlibre avatar Oct 18 '25 10:10 artist4xlibre