Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
friedrichromstedt opened this issue Jun 3, 2024 · 0 comments

Comments

@friedrichromstedt
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant