An unofficial, AI-assisted community modification for NextUI on the TrimUI Brick.
I had two main issues with NextUI on my TrimUI Brick:
- The LEDs stayed on while the device was charging.
- The battery percentage did not appear while charging.
I implemented this fix with AI assistance, manually tested it on my own TrimUI Brick, and published the source and installable package for anyone who finds it useful.
This is vibe-coded community software. It is not an official NextUI release and is not endorsed by the NextUI maintainers.
Open Tools → Settings → System → Charging to configure:
- Battery indicator: Bolt only, Percentage only, or Alternate
- Animation speed: Slow, Normal, or Fast
- Keep screen awake: On or Off
- Disable LEDs: On or Off
- Reset to defaults
The normal battery-percentage preference remains independent. For example, the Brick can show a bolt while charging and return to the normal percentage when unplugged.
- Device tested: TrimUI Brick
- Platform:
tg5040 - NextUI base:
73e160c - Test date: August 14, 2026
Do not install the binary package on other devices or substantially different NextUI builds unless you can restore your SD card and have verified compatibility.
Download both files from the latest GitHub Release:
nextui-charging-preferences.tarnextui-charging-preferences.tar.sha256
Verify the archive before installing:
sha256sum -c nextui-charging-preferences.tar.sha256Expected SHA-256 for v1.0.0:
b1e0c8970eecedefc719acf7d608295603cb0d69f4c6265807814a99f4c7bd0b
Back up the SD card first. Enable the SSH Pak on the Brick, replace BRICK_IP with its IP address, and run these commands from a computer in the directory containing the downloaded archive:
scp nextui-charging-preferences.tar root@BRICK_IP:/mnt/SDCARD/
ssh root@BRICK_IPThen, on the Brick:
mkdir -p /mnt/SDCARD/.userdata/tg5040/charging-preferences
cd /mnt/SDCARD/.userdata/tg5040/charging-preferences
tar -xf /mnt/SDCARD/nextui-charging-preferences.tar
sha256sum -c SHA256SUMS
sh install.sh
sync
rebootThe installer verifies every copied binary, uses atomic replacement, and keeps one backup of the original compatible files.
Re-enable the SSH Pak, connect to the Brick, and run:
cd /mnt/SDCARD/.userdata/tg5040/charging-preferences
sh rollback.sh
sync
rebootIf the installed NextUI version has changed since installation, restore your SD-card backup instead of using an old binary rollback.
- Charging-policy regression tests
- System-menu construction regression test
- Independent battery-percentage preference regression test
- Full
tg5040toolchain build - Package and deployed-binary checksum verification
- Manual testing on a TrimUI Brick while charging and unplugged
This repository is a modified version of LoveRetro/NextUI. The original NextUI README is preserved as README_NEXTUI.md.
The modified source is distributed under the repository's GNU General Public License v3. See LICENSE. The relevant implementation history is kept in the Git commits on this branch.
Please use this repository's issue tracker for problems specific to this modification. Do not report unofficial binary-package issues to the official NextUI maintainers without first reproducing them on an official NextUI release.