linux禁用充电功能,lenovo thinkpad t460s opensuse linux 保护电池设置电池充电阀值

对于经常接AC的用户来说,电池保持在40%-80%之间可以让电池生命周期更长久

由于我的t460s有两块电池,分别设置

linux-pw37:~ # cat /etc/default/tlp

# Battery charge thresholds (ThinkPad only, tp-smapi or acpi-call kernel module

# required). Charging starts when the remaining capacity falls below the

# START_CHARGE_THRESH value and stops when exceeding the STOP_CHARGE_THRESH value.

# Main / Internal battery (values in %)

START_CHARGE_THRESH_BAT0=40

STOP_CHARGE_THRESH_BAT0=80

# Ultrabay / Slice / Replaceable battery (values in %)

START_CHARGE_THRESH_BAT1=40

STOP_CHARGE_THRESH_BAT1=80

重启tlp.service

linux-pw37:~ # systemctl restart tlp.service

linux-pw37:~ # tlp stat -v -b

--- TLP 0.9 --------------------------------------------

+++ ThinkPad Extended Battery Functions

tp-smapi   = inactive (unsupported hardware)

tpacpi-bat = active

+++ ThinkPad Battery Status: BAT0 (Main / Internal)

/sys/class/power_supply/BAT0/manufacturer                   = SMP

/sys/class/power_supply/BAT0/model_name                     = 00HW023

/sys/class/power_supply/BAT0/cycle_count                    = (not supported)

/sys/class/power_supply/BAT0/energy_full_design             =  23540 [mWh]

/sys/class/power_supply/BAT0/energy_full                    =  24100 [mWh]

/sys/class/power_supply/BAT0/energy_now                     =  24090 [mWh]

/sys/class/power_supply/BAT0/power_now                      =      0 [mW]

/sys/class/power_supply/BAT0/status                         = Unknown (threshold effective)

tpacpi-bat.BAT0.startThreshold                              =     40 [%]

tpacpi-bat.BAT0.stopThreshold                               =     80 [%]

tpacpi-bat.BAT0.forceDischarge                              =      0

Charge                                                      =  100.0 [%]

Capacity                                                    =  102.4 [%]

+++ ThinkPad Battery Status: BAT1 (Ultrabay / Slice / Replaceable)

/sys/class/power_supply/BAT1/manufacturer                   = SANYO

/sys/class/power_supply/BAT1/model_name                     = 01AV405

/sys/class/power_supply/BAT1/cycle_count                    = (not supported)

/sys/class/power_supply/BAT1/energy_full_design             =  26330 [mWh]

/sys/class/power_supply/BAT1/energy_full                    =  28230 [mWh]

/sys/class/power_supply/BAT1/energy_now                     =  28230 [mWh]

/sys/class/power_supply/BAT1/power_now                      =      0 [mW]

/sys/class/power_supply/BAT1/status                         = Full

tpacpi-bat.BAT1.startThreshold                              =     40 [%]

tpacpi-bat.BAT1.stopThreshold                               =     80 [%]

tpacpi-bat.BAT1.forceDischarge                              =      0

Charge                                                      =  100.0 [%]

Capacity                                                    =  107.2 [%]

下面是tlp官方的介绍

ThinkPads only

START_CHARGE_THRESH_BAT0=75

STOP_CHARGE_THRESH_BAT0=80

START_CHARGE_THRESH_BAT1=75

STOP_CHARGE_THRESH_BAT1=80

Set ThinkPad battery charge thresholds for main battery (BAT0) and auxiliary/Ultrabay battery (BAT1).

Values are given as a percentage of the full capacity. A value of 0 is translated to the hardware defaults

96 / 100%.

Charging starts upon connecting AC power, but only if the remaining capacity is below the

value of START_CHARGE_TRESH (start threshold). Charging stops when reaching the

STOP_CHARGE_TRESH (stop threshold) value. If, however when you connect the AC adapter, charge is above

the start threshold, then it will not charge.

Note: the charge threshold settings are disabled by default and must be enabled explicitly by

removing the leading '#'.

ThinkPad T420(s)/T520/W520/X220 (and all newer models): check .

For further questions concerning charge thresholds please visit the .

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值