Skip to content

Instantly share code, notes, and snippets.

View TLP-1.4-Test_Battery-Care_LG.md

TLP 1.4 Test: Battery Care for LG Gram Laptops

Read the overview document first.

Supported Features

LG Gram laptops using the lg_laptop driver have a feature called 'battery care limit', basically a fixed stop charge threshold at 80%. The hardware behaviour is:

  1. Connected to the charger, charging stops when the charge level reaches the stop threshold
View TLP-1.4-Test_Battery-Care_Samsung.md

TLP 1.4 Test: Battery Care for Samsung laptops

Read the overview document first.

Supported Features

Samsung laptops using the samsung_laptop driver have a feature called 'battery life extender', basically a fixed stop charge threshold at 80%. The hardware behaviour is:

  1. Connected to the charger, charging stops when the charge level reaches the stop threshold
View TLP-1.4-Test_Battery-Care_Lenovo.md

TLP 1.4 Test: Battery Care for Lenovo Laptops (non-ThinkPad series)

Read the overview document first.

Supported Features

Lenovo laptop series using the ideapad_laptop driver have a feature called 'battery conservation mode', basically a fixed stop charge threshold at 60%. The hardware behaviour is:

  1. Connected to the charger, charging stops when the charge level reaches the stop threshold
View TLP-1.4-Test_Battery-Care_Huawei.md

TLP 1.4 Test: Battery Care for Huawei MateBooks

Read the overview document first.

Supported Features

Huawei laptops using the huawei_wmi driver provide both a start and a stop charge threshold ranging from 0% (threshold off) to 100%. The hardware behaviour is:

  1. When connecting the charger, charging starts if the charge level is below the start threshold
View TLP-1.4-Test_Battery-Care_ASUS.md

TLP 1.4 Test: Battery Care for ASUS Laptops

Read the overview document first.

Supported Features

ASUS laptops using the asus_wmi driver have a stop charge threshold ranging from 0% (threshold off) to 100%. The hardware behaviour is:

  1. Connected to the charger, charging stops when the charge level reaches the stop threshold
View TLP-1.4-Test_Battery-Care_Overview.md

TLP 1.4 Test: Battery Care for Non-ThinkPads

Introduction

TLP has supported charge control thresholds for ThinkPads since the beginning. With release 1.4, support will be extended to laptops from selected other vendors for which a corresponding driver already exists in the Linux kernel.

Since I don't own any of the newly supported laptops, I'm reaching out to the community of TLP users with a request to test the new functionality on their hardware.

@linrunner
linrunner / 0003-thinkpad_acpi-document-force_discharge-and-inhibit_c.patch
Created Mar 9, 2021
[PATCH 3/3] thinkpad_acpi: document force_discharge and
View 0003-thinkpad_acpi-document-force_discharge-and-inhibit_c.patch
From d61611e7aaf746760797907ab06bf20305f1c874 Mon Sep 17 00:00:00 2001
From: Thomas Koch <linrunner@gmx.net>
Date: Thu, 25 Jun 2020 17:08:57 +0200
Subject: [PATCH 3/3] thinkpad_acpi: document force_discharge and
inhibit_charge
Describe the additional sysfs attributes for
forced discharging and charge inhibiting.
Improve description of charge_control_{start,end}_threshold.
@linrunner
linrunner / 0002-thinkpad_acpi-add-support-for-inhibit_charge.patch
Created Mar 9, 2021
[PATCH 2/3] thinkpad_acpi: add support for inhibit_charge
View 0002-thinkpad_acpi-add-support-for-inhibit_charge.patch
From ca9de2cf93e89bdfc9d9634e141739691be63fb7 Mon Sep 17 00:00:00 2001
From: Thomas Koch <linrunner@gmx.net>
Date: Fri, 26 Jun 2020 09:25:34 +0200
Subject: [PATCH 2/3] thinkpad_acpi: add support for inhibit_charge
Lenovo ThinkPad systems support to hold battery charging
via a manual override called Inhibit Charge.
This patch implements that feature and exposes it via the generic
ACPI battery driver in the generic location:
@linrunner
linrunner / 0001-thinkpad_acpi-add-support-for-force_discharge.patch
Created Mar 9, 2021
[PATCH 1/3] thinkpad_acpi: add support for force_discharge
View 0001-thinkpad_acpi-add-support-for-force_discharge.patch
From 94061c3b9681fb57d62e87c02787f9c158721905 Mon Sep 17 00:00:00 2001
From: Thomas Koch <linrunner@gmx.net>
Date: Fri, 26 Jun 2020 09:20:29 +0200
Subject: [PATCH 1/3] thinkpad_acpi: add support for force_discharge
Lenovo ThinkPad systems have a feature that lets you
force the battery to discharge when AC is attached.
This patch implements that feature and exposes it via the generic
ACPI battery driver in the generic location:
View gist:c45bd3260a67b9d85e5c7078d241a187
--- TLP 1.3.0-beta.3 --------------------------------------------
+++ Configured Settings:
defaults.conf L0004: TLP_ENABLE="1"
defaults.conf L0005: TLP_PERSISTENT_DEFAULT="0"
defaults.conf L0006: DISK_IDLE_SECS_ON_AC="0"
defaults.conf L0007: DISK_IDLE_SECS_ON_BAT="2"
defaults.conf L0008: MAX_LOST_WORK_SECS_ON_AC="15"
defaults.conf L0009: MAX_LOST_WORK_SECS_ON_BAT="60"
defaults.conf L0010: CPU_ENERGY_PERF_POLICY_ON_AC="balance_performance"