Bug 1758 - tp_smapi, exposes some SMAPI funtionality via a sysfs interface
Summary: tp_smapi, exposes some SMAPI funtionality via a sysfs interface
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: New RPM package request (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: Kernel and Drivers maintainers
QA Contact:
URL: http://sourceforge.net/projects/tpctl...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-12 08:57 CEST by Christian Dersch
Modified: 2020-08-20 12:24 CEST (History)
7 users (show)

See Also:
Source RPM: tp_smapi
CVE:
Status comment:


Attachments

Description Christian Dersch 2011-06-12 08:57:43 CEST
Right now, there is no dkms-tp_smapi package in Mageia Repositories. Is it possible to add this?
Homepage: http://tpctl.sourceforge.net/

For kernels >= 2.6.37 a patch is required to get the current version 0.40 working, I've choosen this one http://slackbuilds.org/slackbuilds/13.37/system/tp_smapi/patches/tp_smapi-0.40-2.6.37.patch , as I rebuilt Mandrivas package with this patch (works fine).

Best Regards
Christian Dersch
Marja Van Waes 2011-10-20 10:26:09 CEST

URL: (none) => http://sourceforge.net/projects/tpctl/files/tp_smapi/
CC: (none) => marja11
Summary: Request for dkms-tp_smapi => tp_smapi, exposes some SMAPI funtionality via a sysfs interface
Severity: normal => enhancement

Comment 1 Marja Van Waes 2011-11-14 21:51:42 CET
set version to cauldron, because package requests will usually be done for cauldron first and then be available in next stable release

Source RPM: (none) => tp_smapi
Version: 1 => Cauldron

Comment 2 Neo Futur 2015-04-14 23:21:10 CEST
still no tp_smapi ( or at least urpmf tp-smapi find nothing ) mageia killed my lithium ion thinkpad x220 in less than a year ). I fear this tp_smapi feature is most needed for thinkpad users, or a workaround for most lithium ion battery users ). . .

CC: (none) => mageia.org

Comment 3 Neo Futur 2015-04-15 00:09:49 CEST
err i meant killed the x220 _battery_ in less than a year, not the laptop itself. ( I cant edit my comment above so i have to post a second comment, sorry for this )
Comment 4 Marja Van Waes 2015-04-15 09:21:09 CEST
(In reply to Neo Futur from comment #3)
> err i meant killed the x220 _battery_ in less than a year, not the laptop
> itself. ( I cant edit my comment above so i have to post a second comment,
> sorry for this )

Yeah, I killed one battery too fast, too, by assuming all ThinkPads are the same :-/

Some ThinkPads seem to come with good default setting: not doing anything works fine and the battery lives long.

For some other ThinkPads, the limits (for when to start loading the battery and when to stop) that are set in Windows right after the laptop was bought, are also honoured in Linux.

And for some, like the one I'm writing this on, and the mentioned one which battery I killed, it isn't even possible to set any limit in Windows.
I doubt tp_smapi will work on such laptops.

I take out he battery now, when using a power outlet nearby and it is 90% full or more. But it is too easy to load it further than desired upper limit of 95% :-/

When not really needing the battery, it can also be taken out and stored for a long time when it is 70% full (or whichever % Lenovo advised for that battery), which will keep it in a good shape.

CC: (none) => doktor5000, tmb

Comment 5 Florian Hubold 2015-04-18 17:49:57 CEST
As an alternative and for newer thinkpads, this script http://www.thinkwiki.org/wiki/Tpacpi-bat can be used, unfortunately it also requires the additional acpi_call kernel module.
Also TLP would be a good idea: http://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html
Comment 6 Samuel Verschelde 2016-10-11 20:56:22 CEST
Assigning this package request to all packagers collectively. On a voluntary basis, one of them might want to integrate it to the distribution and maintain it for bug and security fixes.

You might also want to join the packager team to maintain this piece of software: see https://wiki.mageia.org/en/Becoming_a_Mageia_Packager

Assignee: bugsquad => pkg-bugs

Comment 7 Hook 2016-11-26 10:14:18 CET
I second the idea to include TLP.

Florian, since you brought it up, do you mind creating a new bug report for it?

CC: (none) => matija

Marja Van Waes 2017-08-16 10:53:30 CEST

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=21542

Comment 8 Marja Van Waes 2019-03-04 14:10:14 CET
TLP was packaged for cauldron last year (see bug 21542), but it still needs the tp-smapi and acpi-call kernel modules to be fully functional.

Reassigning this request to the kernel & drivers maintainers.

Assignee: pkg-bugs => kernel

Morgan Leijström 2019-03-04 15:55:06 CET

CC: (none) => fri

Comment 9 Pascal Terjan 2020-08-20 12:20:28 CEST
Since kernel 4.17 it is possible to read or change the battery charging thresholds via /sys/class/power_supply/BAT0/charge_{start,stop}_threshold

Are those still needed for something else?

CC: (none) => pterjan

Comment 10 Pascal Terjan 2020-08-20 12:24:20 CEST
TLP has support for that native interface https://github.com/linrunner/TLP/blob/5934be84c8d934d8d37b73db28a291751d1f6831/func.d/35-tlp-func-batt#L29

Note You need to log in before you can comment on or make changes to this bug.