merge / skulls

pre-built coreboot images and documentation on how to flash them for Thinkpad Laptops
GNU General Public License v3.0
674 stars 65 forks source link

Setting battery threshold on a X230 with coreboot (solved) #213

Closed ghost closed 2 years ago

ghost commented 2 years ago

Just wanted to let everyone know that I found out by accident how to set the battery thresholds with ectool, and have it work correct. In the past I would set a threshold, and my computer would power down when it got to around 30% battery.

set battery thresholds x230

Start charging at 76%

ectool -w 0xb0 -z 0x4c sleep 2

Stop charging at 80%

ectool -w 0xb1 -z 0x50

After 5 days of doing great my battery shut down at 50% and said zero battery left. I had to reset everything back to 100%

ectool -w 0xb1 -z 0x64 ectool -w 0xb0 -z 0x64

Then turn off laptop unplug battery plug power cord back in and do a battery re-calibrate

ectool -w 0xb4 -z 0x06

that fixed it but I guess I cant set the battery thresholds on x230 with coreboot. So I am closing this.