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

    From Marco Moock@21:1/5 to All on Sun Jan 7 12:14:38 2024
    XPost: ibm.ibmpc.thinkpad

    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?

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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Mon Jan 22 09:03:27 2024
    XPost: ibm.ibmpc.thinkpad

    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.

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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Joe@21:1/5 to Marco Moock on Mon Feb 5 20:32:44 2024
    XPost: ibm.ibmpc.thinkpad

    Marco Moock <[email protected]> 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.

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



    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Joe@21:1/5 to David Chmelik on Tue Feb 6 05:39:14 2024
    XPost: ibm.ibmpc.thinkpad

    David Chmelik <[email protected]> wrote:
    On Mon, 05 Feb 2024 20:32:44 GMT, [email protected]d wrote:

    Marco Moock <[email protected]> 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.


    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Tue Feb 6 08:49:45 2024
    XPost: ibm.ibmpc.thinkpad

    On 06.02.2024 um 04:51 Uhr David Chmelik wrote:

    On Mon, 22 Jan 2024 09:03:27 +0100, Marco Moock 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.

    It's not Slackware-specific!

    Then comp.os.linux.misc.

    --
    kind regards
    Marco

    Send spam to [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)