Reply
Thread Tools
mp107's Avatar
Posts: 166 | Thanked: 454 times | Joined on Apr 2015 @ Poland
#1
How to get an information about battery's voltage through Terminal?

I would like to make a script showing battery's voltage on Low Power Mode (with the help of Billboard application). I have been looking for it in /proc and few other folders but I didn't found anything useful. That might be useful due to well known 4% battery drop bug. I know there is a fix with restarting bme but it is not as convenient.
 
Posts: 111 | Thanked: 63 times | Joined on Nov 2012 @ Kazakhstan
#2
Sorry i cannot help you out, but do you have more info about "restarting BMO"?
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#3
there is bmeinfo executsble or similar
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following User Says Thank You to coderus For This Useful Post:
Posts: 545 | Thanked: 560 times | Joined on Dec 2011 @ lebanon
#4
bmestat or bmestats something like that
 
mp107's Avatar
Posts: 166 | Thanked: 454 times | Joined on Apr 2015 @ Poland
#5
Originally Posted by pmeuh View Post
Sorry i cannot help you out, but do you have more info about "restarting BMO"?
I mentioned about it:
http://talk.maemo.org/showpost.php?p...2&postcount=20

Originally Posted by coderus View Post
there is bmeinfo executsble or similar
I found it - bmestat.

And I made a script for Billboard:
Code:
#!/bin/sh
a=$(bmestat | grep "battery cur. voltage" | awk '{print $4}' | cut -c0-1)
b=$(bmestat | grep "battery cur. voltage" | awk '{print $4}' | cut -c2-4)
echo "$a.$b V"
It is in (let's call it) alpha version. I will try to improve it.

Thanks to Ancelad for that post.

Last edited by mp107; 2015-06-28 at 19:02.
 
Reply


 
Forum Jump


All times are GMT. The time now is 07:31.