From a73ee5021a1c943886cf4cdc4e26947bc1b29a2d Mon Sep 17 00:00:00 2001 From: zyimm Date: Fri, 1 Nov 2024 18:18:36 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=81=EF=B8=8FUbuntu=E4=B8=8B=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E7=94=B5=E6=B1=A0=E5=81=A5=E5=BA=B7=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ptop-battery-health-ubuntu-command-line.md | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 _posts/Linux/ubuntu/check-laptop-battery-health-ubuntu-command-line.md diff --git a/_posts/Linux/ubuntu/check-laptop-battery-health-ubuntu-command-line.md b/_posts/Linux/ubuntu/check-laptop-battery-health-ubuntu-command-line.md new file mode 100644 index 0000000..81a5f88 --- /dev/null +++ b/_posts/Linux/ubuntu/check-laptop-battery-health-ubuntu-command-line.md @@ -0,0 +1,30 @@ +--- +title: 👁️Ubuntu下检查电池健康度 +date: 2024-11-01 +tags: + - Ubuntu +--- + +我的笔记本电脑是使用Ubuntu以来,一直存在电池反复充电的问题,充电到100%之后仍然不停微充电,来回在99-100%之间循环! + +正常的电池管理应该是低于某个设定数值比如98%就停止充电,以便提高电池寿命! + +所以我找一个好用的命令行工具来检查电池健康度。使用教程如下: + +1. 打开终端,输入命令`upower --enumerate` +2. 复制打印的电池路径(通常以 结尾_BAT0),比如我的电池路径是`/org/freedesktop/UPower/devices/battery_BATT` +3. 输入upower -i 并粘贴2中的电池设备路径 + +执行结果如下图: + +![[alt text](image.png)](https://www.zyimm.com/images/media/20241101/a9f8daad150af13472ac49174a1601e0.png) + +一些重要参数解释: + +- `energy-full`:电池现在可冲进去的最大容量 +- `energy-full-design`:电池的出厂设计最大的容量 +- `charge-cycles`: 充电循环次数,一般笔记本电池寿命在300~500次 + +## 参考 + +[check-laptop-battery-health-ubuntu-command-line](https://www.omgubuntu.co.uk/2024/08/check-laptop-battery-health-ubuntu-command-line) \ No newline at end of file