TLP 无法让我的电池充电

TLP 无法让我的电池充电

我在联想 Thinkpad w540 上运行 Ubuntu 17.10。我已经安装了 TLP 并使用了电池充电阈值。我已经安装了 acpi-call-dkms 包来支持充电阈值。但是当我插入充电器时,电池会卡在原来的电量上。它不会再充电了。我附上了有关我的配置的所有相关信息。如果您需要更具体的信息,请告诉我。

这是当没有插入充电器时的情况:

--- TLP 1.0 --------------------------------------------

+++ ThinkPad Battery Features
tp-smapi   = inactive (unsupported hardware)
tpacpi-bat = active

+++ ThinkPad Battery Status: BAT0 (Main / Internal)
/sys/class/power_supply/BAT0/manufacturer                   = SANYO
/sys/class/power_supply/BAT0/model_name                     = 45N1779
/sys/class/power_supply/BAT0/cycle_count                    = (not supported)
/sys/class/power_supply/BAT0/energy_full_design             =  99470 [mWh]
/sys/class/power_supply/BAT0/energy_full                    =  89260 [mWh]
/sys/class/power_supply/BAT0/energy_now                     =  54420 [mWh]
/sys/class/power_supply/BAT0/power_now                      =  22369 [mW]
/sys/class/power_supply/BAT0/status                         = Discharging

tpacpi-bat.BAT0.startThreshold                              =     15 [%]
tpacpi-bat.BAT0.stopThreshold                               =     95 [%]
tpacpi-bat.BAT0.forceDischarge                              =      0

Charge                                                      =   61.0 [%]
Capacity                                                    =   89.7 [%]
!
!

插入电源时发生以下情况:

--- TLP 1.0 --------------------------------------------

+++ System Info
System         = LENOVO ThinkPad W540 20BGCTO1WW
BIOS           = GNET84WW (2.32 )
Release        = Ubuntu 17.10
Kernel         = 4.14.13-041413-generic #201801101001 SMP Wed Jan 10 10:02:53 UTC 2018 x86_64
/proc/cmdline  = BOOT_IMAGE=/boot/vmlinuz-4.14.13-041413-generic root=UUID=d44e67d9-e678-43c1-8fdd-4a8ba00cbbfa ro quiet splash i915.modeset=1 nouveau.modeset=0 i8042.nonpnp=1 vt.handoff=7
Init system    = systemd v234
Boot mode      = UEFI

+++ TLP Status
State          = enabled
Last run       = 10:55:31 AM,     14 sec(s) ago
Mode           = AC
Power source   = AC
!
!
--- TLP 1.0 --------------------------------------------

+++ ThinkPad Battery Features
tp-smapi   = inactive (unsupported hardware)
tpacpi-bat = active

+++ ThinkPad Battery Status: BAT0 (Main / Internal)
/sys/class/power_supply/BAT0/manufacturer                   = SANYO
/sys/class/power_supply/BAT0/model_name                     = 45N1779
/sys/class/power_supply/BAT0/cycle_count                    = (not supported)
/sys/class/power_supply/BAT0/energy_full_design             =  99470 [mWh]
/sys/class/power_supply/BAT0/energy_full                    =  89260 [mWh]
/sys/class/power_supply/BAT0/energy_now                     =  52630 [mWh]
/sys/class/power_supply/BAT0/power_now                      =      0 [mW]
/sys/class/power_supply/BAT0/status                         = Unknown (threshold effective)

tpacpi-bat.BAT0.startThreshold                              =     15 [%]
tpacpi-bat.BAT0.stopThreshold                               =     95 [%]
tpacpi-bat.BAT0.forceDischarge                              =      0

Charge                                                      =   59.0 [%]
Capacity                                                    =   89.7 [%]

这是我的配置:

--- TLP 1.0 --------------------------------------------

+++ Configured Settings: /etc/default/tlp
TLP_ENABLE=1
TLP_DEFAULT_MODE=AC
TLP_PERSISTENT_DEFAULT=0
DISK_IDLE_SECS_ON_AC=0
DISK_IDLE_SECS_ON_BAT=2
MAX_LOST_WORK_SECS_ON_AC=15
MAX_LOST_WORK_SECS_ON_BAT=60
CPU_MIN_PERF_ON_AC=20
CPU_MAX_PERF_ON_AC=60
CPU_MIN_PERF_ON_BAT=0
CPU_MAX_PERF_ON_BAT=30
SCHED_POWERSAVE_ON_AC=0
SCHED_POWERSAVE_ON_BAT=1
NMI_WATCHDOG=0
ENERGY_PERF_POLICY_ON_AC=normal
ENERGY_PERF_POLICY_ON_BAT=powersave
DISK_DEVICES="sda sdb"
DISK_APM_LEVEL_ON_AC="128 128"
DISK_APM_LEVEL_ON_BAT="128 128"
DISK_SPINDOWN_TIMEOUT_ON_BAT="180 180"
SATA_LINKPWR_ON_AC=min_power
SATA_LINKPWR_ON_BAT=min_power
AHCI_RUNTIME_PM_TIMEOUT=15
PCIE_ASPM_ON_AC=powersave
PCIE_ASPM_ON_BAT=powersave
WIFI_PWR_ON_AC=off
WIFI_PWR_ON_BAT=on
WOL_DISABLE=Y
SOUND_POWER_SAVE_ON_AC=0
SOUND_POWER_SAVE_ON_BAT=1
SOUND_POWER_SAVE_CONTROLLER=Y
BAY_POWEROFF_ON_AC=0
BAY_POWEROFF_ON_BAT=0
BAY_DEVICE="sr0"
RUNTIME_PM_ON_AC=auto
RUNTIME_PM_ON_BAT=auto
RUNTIME_PM_BLACKLIST="10de:11fc"
RUNTIME_PM_DRIVER_BLACKLIST="nouveau nvidia"
USB_AUTOSUSPEND=1
USB_BLACKLIST_BTUSB=0
USB_BLACKLIST_PHONE=0
USB_BLACKLIST_WWAN=1
RESTORE_DEVICE_STATE_ON_STARTUP=0
DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi"
DEVICES_TO_DISABLE_ON_BAT_NOT_IN_USE="bluetooth wifi wwan"
START_CHARGE_THRESH_BAT0=15
STOP_CHARGE_THRESH_BAT0=95
DEVICES_TO_DISABLE_ON_LAN_CONNECT="wifi wwan"
DEVICES_TO_DISABLE_ON_WIFI_CONNECT="wwan"

答案1

您的实际阈值设置指示电池控制器在交流电连接且充电水平介于 15% 至 95% 之间时不充电。目前您的电池电量为 59%,因此其工作方式与设计和配置一致。

您可以使用以下方式暂时重置阈值

sudo tlp fullcharge

或者选择更合适的启动阈值,如常问问题 或者通过注释两行配置来完全删除阈值。

相关内容