termux-battery-status shows incorrect percentage

Open
#27 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
android, shell
Domain
cli, mobile

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.
screenshot 2018-06-17 at 10 39 11 pm

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from termux/termux-api-package

All issues in termux/termux-api-package

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.