termux-battery-status shows incorrect percentage
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
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.
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
- Dominant language
- Shell
- Stars
- 1.7k
- Forks
- 536
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from termux/termux-api-package
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
termux/termux-api-package#246 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 25/100
termux/termux-api-package#245 ·
-
cd ~/storage/downloads unzip HSA_Project_Management_Android_EAS.zip -d HSA_Project cd HSA_ProjectOpen
Difficulty 1/5 Under an hour Newbie friendliness 15/100
termux/termux-api-package#244 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 66/100
termux/termux-api-package#224 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
termux/termux-api-package#221 · 1 comment ·
All issues in termux/termux-api-package
Similar issues
-
area:docs documentation good first issue priority:medium
Difficulty 1/5 Under an hour Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
PostHog/posthog-js#5524 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
paperclipai/paperclip#18671 ·
Maintainers usually reply within 1 day
-
package-update
Difficulty 1/5 Under an hour Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
area:core
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
julian-hemmer/ypass#4 ·