Linux Mint的笔记本优化
针对笔记本进行性能调整和节能优化
1 - 电池信息查询
查看电池信息以及应用耗电情况
1.1 - 概述
电池信息工具概述
工具介绍
一句话:要装的是 acpi(只读小命令);acpid 是事件守护进程,Mint 上通常用不到;acpica-tools 是另一套查 ACPI 表的工具。
flowchart LR
subgraph K["内核"]
S["/sys/class/power_supply/*<br/>BAT0 · AC · charge_*_threshold"]
T["/sys/class/thermal/*<br/>hwmon 风扇转速"]
end
subgraph CLI["命令行工具"]
A["acpi<br/>只读小工具·需自行安装"]
U["upower<br/>D-Bus 后端 + CLI·系统预装"]
X["inxi -B<br/>Mint 预装·最省事"]
end
subgraph D["acpi相关的三个东西"]
D1["acpid<br/>电源键/合盖事件守护进程<br/>Mint 用 systemd-logind·一般不需要"]
D2["acpica-tools<br/>acpidump / iasl<br/>调试 ACPI 表用"]
D3["/proc/acpi<br/>通用文件已被内核移除<br/>但 /proc/acpi/ibm/* 仍由 thinkpad_acpi 提供"]
end
S --> A
S --> U
S --> X
T --> A
U --> C["Cinnamon 电池小程序<br/>电源管理设置"]
工作原理和数据流向(谁从哪读取数据):
flowchart LR
subgraph KER["内核 / 固件"]
A["/sys/class/power_supply/BAT0<br/>energy_now · power_now<br/>charge_control_end_threshold"]
B["/sys/class/thermal/*<br/>thinkpad_acpi · fan1"]
end
subgraph SVC["后台服务"]
U["upowerd<br/>D-Bus 后端"]
ACPID["acpid<br/>电源键/合盖事件·一般不需要"]
end
subgraph CLIENT["客户端"]
G["Cinnamon 电池小程序<br/>电源管理设置"]
UC["upower CLI"]
end
subgraph DIR["直读类工具"]
AC["acpi"]
IX["inxi -B"]
SC["自制 sysfs 脚本"]
TL["TLP / tlp-stat"]
end
A --> U
A --> AC
A --> IX
A --> SC
A --> TL
B --> AC
U --> G
U --> UC
1.2 - upower
Cinnamon 自带,可查看电池健康与容量
➜ ~ upower -i /org/freedesktop/UPower/devices/battery_BAT0
native-path: BAT0
vendor: CeIxpe
model: 5B10W51815
serial: 45
power supply: yes
updated: Mon 28 Sep 2026 07:07:19 AM CST (12 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: fully-charged
warning-level: none
energy: 58.32 Wh
energy-empty: 0 Wh
energy-full: 60.04 Wh
energy-full-design: 57 Wh
energy-rate: 0 W
voltage: 17.183 V
charge-cycles: 1
percentage: 97%
capacity: 100%
technology: lithium-polymer
icon-name: 'battery-full-charged-symbolic'
1.3 - acpi
acpi 的只读小工具
安装
# 1. 常规安装
sudo apt update
sudo apt install acpi
# 2. 验证
acpi --version && acpi -V
验证结果:
➜ ~ acpi --version && acpi -V
acpi 1.7
Copyright (C) 2001 Grahame Bowland.
2008-2012 Michael Meskes.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
用法
常用命令
| 命令 | 作用 | 典型输出 |
|---|---|---|
acpi |
电池一行摘要 | Battery 0: Discharging, 59%, 03:25:11 remaining |
acpi -b |
只要电池 | 同上 |
acpi -a |
电源适配器 | Adapter 0: on-line / off-line |
acpi -b -i |
加设计/满电容量 | Battery 0: design capacity 4000 mAh, last full capacity 3210 mAh = 80% |
acpi -t |
温度 | Thermal 0: ok, 46.0 degrees C |
acpi -c |
冷却/风扇档位 | Cooling 0: Processor 0 of 10 |
acpi -f |
温度用华氏 | — |
acpi -V |
上面全部(= -b -a -t -c) |
一屏总览 |
acpi -V -i |
全部 + 电池详情 | 最常用组合 |
示例:
➜ ~ acpi
Battery 0: Full, 97%
➜ ~ acpi -b
Battery 0: Full, 97%
➜ ~ acpi -a
Adapter 0: on-line
➜ ~ acpi -b -i
Battery 0: Full, 97%
Battery 0: design capacity 3317 mAh, last full capacity 3493 mAh = 100%
➜ ~ acpi -t
Thermal 0: ok, 46.0 degrees C
➜ ~ acpi -c
Cooling 0: Processor 0 of 10
Cooling 1: SEN2 no state information available
Cooling 2: Processor 0 of 10
Cooling 3: x86_pkg_temp no state information available
Cooling 4: Processor 0 of 10
Cooling 5: Processor 0 of 10
Cooling 6: intel_powerclamp 0 of 100
Cooling 7: PCIe_Port_Link_Speed_0000:00:06.0 0 of 3
Cooling 8: INT3400 Thermal no state information available
Cooling 9: Processor 0 of 10
Cooling 10: TCPU no state information available
Cooling 11: Processor 0 of 10
Cooling 12: iwlwifi_1 no state information available
Cooling 13: Processor 0 of 10
Cooling 14: Processor 0 of 10
Cooling 15: TCC Offset 0 of 63
Cooling 16: PCIe_Port_Link_Speed_0000:00:1c.0 1 of 2
Cooling 17: SEN1 no state information available
➜ ~ acpi -V
Battery 0: Full, 97%
Battery 0: design capacity 3316 mAh, last full capacity 3493 mAh = 100%
Adapter 0: on-line
Thermal 0: ok, 46.0 degrees C
Thermal 0: trip point 0 switches to mode critical at temperature 128.0 degrees C
Cooling 0: Processor 0 of 10
Cooling 1: SEN2 no state information available
Cooling 2: Processor 0 of 10
Cooling 3: x86_pkg_temp no state information available
Cooling 4: Processor 0 of 10
Cooling 5: Processor 0 of 10
Cooling 6: intel_powerclamp 0 of 100
Cooling 7: PCIe_Port_Link_Speed_0000:00:06.0 0 of 3
Cooling 8: INT3400 Thermal no state information available
Cooling 9: Processor 0 of 10
Cooling 10: TCPU no state information available
Cooling 11: Processor 0 of 10
Cooling 12: iwlwifi_1 no state information available
Cooling 13: Processor 0 of 10
Cooling 14: Processor 0 of 10
Cooling 15: TCC Offset 0 of 63
Cooling 16: PCIe_Port_Link_Speed_0000:00:1c.0 1 of 2
Cooling 17: SEN1 no state information available
➜ ~ acpi -V -i
Battery 0: Full, 97%
Battery 0: design capacity 3317 mAh, last full capacity 3494 mAh = 100%
Adapter 0: on-line
Thermal 0: ok, 46.0 degrees C
Thermal 0: trip point 0 switches to mode critical at temperature 128.0 degrees C
Cooling 0: Processor 0 of 10
Cooling 1: SEN2 no state information available
Cooling 2: Processor 0 of 10
Cooling 3: x86_pkg_temp no state information available
Cooling 4: Processor 0 of 10
Cooling 5: Processor 0 of 10
Cooling 6: intel_powerclamp 0 of 100
Cooling 7: PCIe_Port_Link_Speed_0000:00:06.0 0 of 3
Cooling 8: INT3400 Thermal no state information available
Cooling 9: Processor 0 of 10
Cooling 10: TCPU no state information available
Cooling 11: Processor 0 of 10
Cooling 12: iwlwifi_1 no state information available
Cooling 13: Processor 0 of 10
Cooling 14: Processor 0 of 10
Cooling 15: TCC Offset 0 of 63
Cooling 16: PCIe_Port_Link_Speed_0000:00:1c.0 1 of 2
Cooling 17: SEN1 no state information available
持续观察放电
持续观察放电速率变化(拔电后挂上,看谁在偷电):
Every 5.0s: acpi -V -i skyt14s: Mon Sep 28 07:33:40 2026
Battery 0: Discharging, 96%, 06:09:52 remaining
Battery 0: design capacity 3368 mAh, last full capacity 3548 mAh = 100%
Adapter 0: off-line
Thermal 0: ok, 45.0 degrees C
Thermal 0: trip point 0 switches to mode critical at temperature 128.0 degrees C
Cooling 0: Processor 0 of 10
Cooling 1: SEN2 no state information available
Cooling 2: Processor 0 of 10
Cooling 3: x86_pkg_temp no state information available
Cooling 4: Processor 0 of 10
Cooling 5: Processor 0 of 10
Cooling 6: intel_powerclamp 0 of 100
Cooling 7: PCIe_Port_Link_Speed_0000:00:06.0 0 of 3
Cooling 8: INT3400 Thermal no state information available
Cooling 9: Processor 0 of 10
Cooling 10: TCPU no state information available
Cooling 11: Processor 0 of 10
Cooling 12: iwlwifi_1 no state information available
Cooling 13: Processor 0 of 10
Cooling 14: Processor 0 of 10
Cooling 15: TCC Offset 0 of 63
Cooling 16: PCIe_Port_Link_Speed_0000:00:1c.0 1 of 2
Cooling 17: SEN1 no state information available
输出解读:
| 行 | 值 | 含义 |
|---|---|---|
Battery 0 |
Discharging, 96% | 拔电状态,下面全是放电特性 |
| 剩余时间 | 06:09:52 | 96% × 3548 mAh ≈ 3406 mAh ÷ 6.165 h ≈ 552 mA ≈ 6.3 W(按 11.5 V 估)→ 空载功耗正常 |
| design / last full | 3368 / 3548 mAh | 满电容量比设计容量还大 → 上报有问题,健康度作废 |
Thermal 0 |
ok, 45.0 °C | 空载 45 °C,对 1145G7 这类薄机身属正常偏凉 |
| trip point | critical @ 128 °C | 固件定义的关机红线,不是当前温度,不用管 |
8 个 Processor |
全是 0 of 10 |
当前零节流,CPU 在完全放开的频点上 |
TCC Offset |
0 of 63 |
出厂默认节流点(TjMax 100 °C),没下调 |
intel_powerclamp |
0 of 100 |
强制空闲散热未启用 |