termux / termux/termux-api-package
termux-battery-status shows incorrect percentage
Open
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 1.7k
- Forks
- 523
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I'm on a pixelbook.
Expected
termux-battery-status should show the correct percentage as the chromebook indicates.

Actual
$ termux-battery-status | termux-clipboard-set
{
"health": "UNKNOWN",
"percentage": 71,
"plugged": "PLUGGED_AC",
"status": "CHARGING",
"temperature": 0.0
}
Additional Info
$ termux-info
Updatable packages:
All packages up to date
System information:
Linux localhost 4.4.118-13213-gd81e1fa0bcfd #1 SMP PREEMPT Tue May 29 21:54:10 PDT 2018 x86_64 Android
Termux-packages arch:
x86_64
Android version:
7.1.1
Device manufacturer:
google
Device model:
Google Pixelbook
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing termux-battery-status on the reported Pixelbook and inspect the entry point that produces its battery JSON. Compare the reported percentage with the Chromebook's displayed value and verify the output after the discrepancy is addressed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, shell
- Domain
- cli, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100