# How to limit battery charging to (say) 80%

**URL:** https://forum.clockworkpi.com/t/how-to-limit-battery-charging-to-say-80/22998
**Category:** uConsole
**Created:** [July 21, 2026, 5:26pm UTC](https://forum.clockworkpi.com/t/how-to-limit-battery-charging-to-say-80/22998 "2026-07-21T17:26:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sys\_dither](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@sys\_dither](https://forum.clockworkpi.com/u/sys_dither)
#### Post date: [July 21, 2026, 5:26pm UTC](https://forum.clockworkpi.com/t/how-to-limit-battery-charging-to-say-80/22998/1 "2026-07-21T17:26:03Z")

</div>

When I cat /sys/class//power\_supply/axp20x-battery/uevent it shows POWER\_SUPPLY\_ENERGY\_FULL = POWER\_SUPPLY\_ENERGY\_FULL\_DESIGN. I gather that POWER\_SUPPLY\_ENERGY\_FULL is read-only. (I tried changing it and that didn’t work.) Is there a way to prevent charging from going past (say) 80% full?

I’ve calibrated the batteries – twice – but still when I charge it with the system down until the yellow light goes off I seem to fall into a terrible hole where it won’t boot, won’t charge – eventually I can get it to boot (I’m not sure how, actually …) – but I’d like to have a way of keeping it from charging full. (That’s said to be good for battery life anyway.)

---

<div class="post-metadata">

### Author: ![AleReb](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/alereb/32/12529_2.png) [@AleReb](https://forum.clockworkpi.com/u/AleReb)
#### Post date: [July 23, 2026, 4:10am UTC](https://forum.clockworkpi.com/t/how-to-limit-battery-charging-to-say-80/22998/2 "2026-07-23T04:10:56Z")

</div>

I dont know may be the power management of the chip you check the datasheet? Theres repo with the electronic, renetly i need repairs my audio Jack and find the repo

---

<div class="post-metadata">

### Author: ![nickwest](https://avatars.discourse-cdn.com/v4/letter/n/dbc845/32.png) [@nickwest](https://forum.clockworkpi.com/u/nickwest)
#### Post date: [August 4, 2026, 1:34am UTC](https://forum.clockworkpi.com/t/how-to-limit-battery-charging-to-say-80/22998/3 "2026-08-04T01:34:43Z")

</div>

I had the same issue, even with root privileges I couldn’t save changes to those files. The Raspberry Pi family uses a separate settings file for this purpose, called config.txt. I found some good information in Rex’s post at [uConsole still often, unpredictably dying at 50% - #4 by Rex](https://forum.clockworkpi.com/t/uconsole-still-often-unpredictably-dying-at-50/19796/4)

Not sure if will do exactly what you want, but that’s a good place to start.
