Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[T400 (UNIX/GNU/Linux)] set battery charge thresholds?

27 views
Skip to first unread message

David Chmelik

unread,
Jan 7, 2024, 12:57:50 AMJan 7
to
TLP setting battery charging thresholds no longer works on my Slackware
GNU/Linux ThinkPad T400 laptop (says like can't get thresholds) though
apparently similar (battery_ctl.sh) may work on FreeBSD UNIX. I tried
this on two batteries (though I've had them several years)... should I get
a new battery or is this evidence of other hardware breakage?

Marco Moock

unread,
Jan 7, 2024, 6:14:40 AMJan 7
to
I assume a software problem.
Can you provide more information which software do you use to get those
tresholds?

If it is a Slackware-specific question you can also try to ask in
alt.os.linux.slackware.

David Chmelik

unread,
Jan 22, 2024, 1:27:22 AMJan 22
to
On Sun, 7 Jan 2024 12:14:38 +0100, Marco Moock wrote:

> Am 07.01.2024 um 05:57:47 Uhr schrieb David Chmelik:
>
>> TLP setting battery charging thresholds no longer works on my Slackware
>> GNU/Linux ThinkPad T400 laptop (says like can't get thresholds) though
>> apparently similar (battery_ctl.sh) may work on FreeBSD UNIX. I tried
>> this on two batteries (though I've had them several years)... should I
>> get a new battery or is this evidence of other hardware breakage?
>
> I assume a software problem.
> Can you provide more information which software do you use to get those
> tresholds?

TLP

Marco Moock

unread,
Jan 22, 2024, 3:03:29 AMJan 22
to
I think you should ask in the alt.os.linux.slackware group for that
specific to slackware.

Does that tool work from live systems (e.g. try Ubuntu)?

>

unread,
Feb 5, 2024, 3:32:46 PMFeb 5
to
Uh for T400 I think that's old enough to still use tp_smapi kernel module
to control charge thresholds. You can use a utility to adjust thresholds or
adjust directly using the sysfs interface. Pretty much all the info you'd
need to work with it can be found here:
https://www.thinkwiki.org/wiki/Tp_smapi

Newer thinkpads tp-acpi gets used (later than sandy bridge) which uses the
acpi_call kernel module instead.

Joe

David Chmelik

unread,
Feb 5, 2024, 11:51:57 PMFeb 5
to
It's not Slackware-specific!

David Chmelik

unread,
Feb 5, 2024, 11:57:33 PMFeb 5
to
On Mon, 05 Feb 2024 20:32:44 GMT, joe...@this.is.invalid wrote:

> Marco Moock <mm+use...@dorfdsl.de> wrote:
>> Am 22.01.2024 um 06:27:20 Uhr schrieb David Chmelik:
>>
>>> On Sun, 7 Jan 2024 12:14:38 +0100, Marco Moock wrote:
>>>
>>>> Am 07.01.2024 um 05:57:47 Uhr schrieb David Chmelik:
>>>>
>>>>> TLP setting battery charging thresholds no longer works on my
>>>>> Slackware GNU/Linux ThinkPad T400 laptop (says like can't get
>>>>> thresholds) though apparently similar (battery_ctl.sh) may work on
>>>>> FreeBSD UNIX. I tried this on two batteries (though I've had them
>>>>> several years)... should I get a new battery or is this evidence of
>>>>> other hardware breakage?
>>>>
>>>> I assume a software problem.
>>>> Can you provide more information which software do you use to get
>>>> those tresholds?
>>>
>>> TLP
>>
>> I think you should ask in the alt.os.linux.slackware group for that
>> specific to slackware. [...]
>>
> Uh for T400 I think that's old enough to still use tp_smapi kernel
> module to control charge thresholds. You can use a utility to adjust
> thresholds or adjust directly using the sysfs interface. Pretty much all
> the info you'd need to work with it can be found here:
> https://www.thinkwiki.org/wiki/Tp_smapi [...]

That's what TLP is but apparently this module doesn't exist in Linux
kernel 5.15.145.

>

unread,
Feb 6, 2024, 12:39:16 AMFeb 6
to
tp_smapi was always an out of tree driver not in the mainline linux kernel.
slackbuilds.org appears to have it for slackware 15, look for tp_smapi.
Once installed modprobe tp_smapi and you should be able to follow the wiki
page I linked earlier to control it.

David Chmelik

unread,
Feb 6, 2024, 1:13:07 AMFeb 6
to
On Mon, 05 Feb 2024 20:32:44 GMT, joe...@this.is.invalid wrote:
> Marco Moock <mm+use...@dorfdsl.de> wrote:
>> Am 22.01.2024 um 06:27:20 Uhr schrieb David Chmelik:
>>> On Sun, 7 Jan 2024 12:14:38 +0100, Marco Moock wrote:
>>>> Am 07.01.2024 um 05:57:47 Uhr schrieb David Chmelik:
>>>>> TLP setting battery charging thresholds no longer works on my
>>>>> Slackware GNU/Linux ThinkPad T400 laptop (says like can't get
>>>>> thresholds) though apparently similar (battery_ctl.sh) may work on
>>>>> FreeBSD UNIX. I tried this on two batteries (though I've had them
>>>>> several years)... should I get a new battery or is this evidence of
>>>>> other hardware breakage?
>>>>
>>>> I assume a software problem.
>>>> Can you provide more information which software do you use to get
>>>> those tresholds?
>>>
>>> TLP
>>
>> I think you should ask in the alt.os.linux.slackware group for that
>> specific to slackware. [...]
>>
> Uh for T400 I think that's old enough to still use tp_smapi kernel
> module to control charge thresholds. You can use a utility to adjust
> thresholds or adjust directly using the sysfs interface. Pretty much all
> the info you'd need to work with it can be found here:
> https://www.thinkwiki.org/wiki/Tp_smapi [...]

It's on SlackBuilds.org but Slackware 15 newly-compiled tp_smapi v0.44
doesn't load. Used to work when on Slackware 14.2 tp_smapi v0.43. This
is probably a kernel/hardware problem I'll ask tp_smapi computer
programmers / software developers about.

Marco Moock

unread,
Feb 6, 2024, 2:49:47 AMFeb 6
to
Then comp.os.linux.misc.

--
kind regards
Marco

Send spam to muel...@cartoonies.org

0 new messages