[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Power-Management



Marc Haber - 26.04.18, 15:12:
> On Thu, Apr 26, 2018 at 10:12:40PM +1000, Russell Stuart wrote:
> > laptop-mod-mode tools seems to put the laptop into pretty optimal
> > settings without me having to touch anything, or so powertop says.
> 
> Can Laptop-mode-tools in Thinkpads also limit charging of that battery
> to 70 % or another non-100 percentage?
> 
> Unfortunately laptop-mode-tools conflicts tlp which is currently my
> tool to implement the battery saving charge limit.

tp-smapi can:

/sys/bus/platform/drivers/smapi/smapi/BAT0> ls -l st*_charge_thresh
-rw-r--r-- 1 root root 4096 Apr 26 16:21 start_charge_thresh
-rw-r--r-- 1 root root 4096 Apr 26 16:21 stop_charge_thresh
/sys/bus/platform/drivers/smapi/smapi/BAT0> echo "80" > stop_charge_thresh
/sys/bus/platform/drivers/smapi/smapi/BAT0> cat stop_charge_thresh 
80

Oh, it can even set the start charge threshold meanwhile, nice:

/sys/bus/platform/drivers/smapi/smapi/BAT0> echo 95 > stop_charge_thresh 
/sys/bus/platform/drivers/smapi/smapi/BAT0> LANG=C echo 90 > start_charge_thresh
/sys/bus/platform/drivers/smapi/smapi/BAT0>

I think I set just the start_charge_threshold, I am not sure of the benefit
of stopping charging at below the maximum capacity the battery can still
hold.

But charging for just a few percent of capacity having been used up does
not make sense.

You need tp-smapi-dkms debian package.

ThinkPad T520 with 4.16.3 self compiled kernel.

Its getting somewhat off-topic here as its not about what the project can do
anymore. Well it could provide some defaults, probably.

Thanks,
-- 
Martin



Reply to: