linrunner / TLP

TLP - Optimize Linux Laptop Battery Life
https://linrunner.de/tlp
GNU General Public License v2.0
2.68k stars 128 forks source link

Battery control for ThinkPad X131e #654

Closed niezywa closed 1 year ago

niezywa commented 1 year ago

[x] I've read and accepted the Bug Reporting Howto [ ] I've provided all required tlp-stat outputs via Gist (see below)

On my X131e tlp-stat uses plugin "generic" for battery data (tlp-stat -b). My thinkpad_acpi module is active. As far as I can understand Perl, the regex in bat.d/05-thinkpad isn't going to detect this laptop. Additionally, tlp-stat -s reports my system as LENOVO *INVALID* 3367A17

I would appreciate if you could support my laptop.

The problem occurs on both battery and power supply

I'm sorry, but i don't want to provide my full output, as it might contain sensitive information and I don't think most of it is relevant here. Let me know if you need any specific output.

linrunner commented 1 year ago

Hi, you already pointed out the problem, the faulty DMI product string:

LENOVO INVALID 3367A17

For a single example of a 10 year old series with an incorrect string in the firmware, I will certainly not include an exception in the code.

I suggest you help yourself and patch the code for your purposes and see if it works.

linrunner commented 1 year ago

Reading my own code, I notice that patching is not necessary :). Instead you may configure the following:

X_SIMULATE_MODEL="ThinkPad X131e"