ChromeBook Battery Threshold: Limit Charging to 80% and Stop
目的
前几天买的chromebook,然后有时候要长时间拿出去用,所以比较在意电池的健康。发现老是充电自动到100%,就写个小程序用来限制充电到80%。
C++写的,默认3分钟定时检查一次电量,所以如果有略微超出80%是正常情况。
平时在休眠状态资源占用极低。
确保两个exe文件在同一个目录下。
使用方法
手动启动
确保两个文件放在同一目录,点击chromebook_batterymanage.exe。
自动启动
确保两个文件放在同一目录,然后在”任务计划程序”里面创建计划,开机启动,执行chromebook_batterymanage.exe
预期情况,每隔3分钟检测一次电池电量,若大于等于80%,则停止向电池供电。不探测的时候后台休眠,占用极低。
下载
感谢coreboot提供的ectool。
真的希望大家顺路可以去gayhub点个star,
github项目链接(首选)
分流地址(可能没有更新到最新版本)
https://www.lanzouj.com/b00rw55id
密码:grs8
Purpose
I recently bought a Chromebook, and since I often need to use it on the go for extended periods, I’m particularly concerned about battery health. I noticed that it frequently charges automatically to 100%, so I wrote a small program to limit charging to 80%.
Written in C++, it checks battery levels by default every 3 minutes. Therefore, a slight overshoot beyond 80% is normal.
During hibernation, it consumes minimal resources.
Ensure both exe files are in the same directory.
Usage
Manual Startup
Place both files in the same directory and double-click chromebook_batterymanage.exe.
Automatic Startup
Place both files in the same directory. Then, create a task in “Task Scheduler” to run chromebook_batterymanage.exe on system startup.
Expected behavior: Battery level is checked every 3 minutes. If the level is greater than or equal to 80%, charging to the battery is stopped. When not scanning, it hibernates in the background with extremely low resource usage.
Download
Thanks to coreboot for providing ectool.
I really hope you can visit GitHub and give it a star,
GitHub project link (preferred)
Mirror link (may not be updated to the latest version)
https://www.lanzouj.com/b00rw55id
Password: grs8