You are not logged in.

#1 2013-02-08 14:55:14

Kubouch
Member
From: Czech Republic
Registered: 2013-01-03
Posts: 25

Battery charging threshold - stuck percentage when plugged AC

I have Thinkpad T530 laptop and wanted to set battery charging to start/stop when a battery capacity reaches certain percentage. I installed tpacpi-bat, loaded

modprobe acpi_call

and exetuted these:

perl /usr/lib/perl5/vendor_perl/tpacpi-bat -v startChargeThreshold 0 40
perl /usr/lib/perl5/vendor_perl/tpacpi-bat -v stopChargeThreshold 0 80

as described here or  here. I also blacklisted tp_smapi module since systemd-modules-load.service failed.

The problem is that it somehow broke cbatticon. It appeares on my toolbar but no icon shows up and when I hover my cursor upon it only "Battery Monitor" text appears (normally it shows battery percentage and how long it takes to discharge/fully charge). No error messages. (More info in the following post.)
Any hints?

Kubouch

Last edited by Kubouch (2013-02-09 13:43:52)

Offline

#2 2013-02-09 10:05:39

Kubouch
Member
From: Czech Republic
Registered: 2013-01-03
Posts: 25

Re: Battery charging threshold - stuck percentage when plugged AC

The issue occurs only when an adapter is plugged in.
Here is an output of

acpitool -B

when the adapter is plugged in:

  Battery #1     : present
    Remaining capacity : 43600000, 78.02%
    Design capacity    : 56160000
    Last full capacity : 55880000, 99.50% of design capacity
    Capacity loss      : 0.4986%
    Present rate       : 0
    Charging state     : Unknown
    Battery type       : Li-ion 
    Serial number      : SA

The "Remaining capatity" remains constant. It always shows 78.02%.

When I unplug my adapter and issue the same command:

  Battery #1     : present
    Remaining capacity : 43210000, 77.33%, 03:42:27
    Design capacity    : 56160000
    Last full capacity : 55880000, 99.50% of design capacity
    Capacity loss      : 0.4986%
    Present rate       : 11654000
    Charging state     : Discharging
    Battery type       : Li-ion 
    Serial number      : SANYO

The "Remaining capacity" now slowly decreases (as expected). Also cbatticon works normally.

When I plug the adapter again - with cbatticon running - my battery monitor gets stuck again. "Charging state" changes to "unknown" and "Remaining capacity" is constant. Also the remaining capacity time disappears. Icon is now shown on the toolbar but it is  stuck as well. It shows constant percentage and remaining time and it doesn't recognize that it's charging.

Offline

#3 2013-02-09 11:09:25

eruditorum
Member
Registered: 2012-11-12
Posts: 130

Re: Battery charging threshold - stuck percentage when plugged AC

why don't you post into cbatticon's thread?

Offline

#4 2013-02-09 13:40:51

Kubouch
Member
From: Czech Republic
Registered: 2013-01-03
Posts: 25

Re: Battery charging threshold - stuck percentage when plugged AC

eruditorum wrote:

why don't you post into cbatticon's thread?

I already posted a whole bunch of messages there and I didn't want to spam it completely. It also seems to be more an issue of tpacpi-bat than cbatticon. maybe I should rename the thread properly.

Offline

#5 2013-02-11 12:39:34

Kubouch
Member
From: Czech Republic
Registered: 2013-01-03
Posts: 25

Re: Battery charging threshold - stuck percentage when plugged AC

More info:
When I plug AC and the capacity is below 40% then charging works normally even if it goes beyond 40%. When I unplug AC and I'm in the interval of 40-80% and then plug it again the percentage gets stuck.
At least I managed to revert the changes back to normal by uninstalling tpacpi-bat and then removing and re-inserting the battery.
Really noone knows what went wrong?

Offline

#6 2014-02-18 19:58:37

alroar
Member
Registered: 2012-10-15
Posts: 27

Re: Battery charging threshold - stuck percentage when plugged AC

Have you tried using TLP? It takes care of your thresholds aswell (/etc/default/tlp) and offers you fullcharge options ("tlp fullcharge") or even discharge.

Last edited by alroar (2014-02-18 19:59:08)

Offline

#7 2014-02-18 20:15:03

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: Battery charging threshold - stuck percentage when plugged AC

alroar wrote:

Have you tried using TLP? It takes care of your thresholds aswell (/etc/default/tlp) and offers you fullcharge options ("tlp fullcharge") or even discharge.

This post is over a year old.

Offline

#8 2014-02-18 20:17:12

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 19,031
Website

Re: Battery charging threshold - stuck percentage when plugged AC

Please don't resurrect the dead: https://wiki.archlinux.org/index.php/Fo … Bumping.27



Closing


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB