maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   How to get an information about battery's voltage through Terminal? (https://talk.maemo.org/showthread.php?t=95668)

mp107 2015-06-26 07:57

How to get an information about battery's voltage through Terminal?
 
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.

pmeuh 2015-06-26 08:50

Re: How to get an information about battery's voltage through Terminal?
 
Sorry i cannot help you out, but do you have more info about "restarting BMO"?

coderus 2015-06-26 09:08

Re: How to get an information about battery's voltage through Terminal?
 
there is bmeinfo executsble or similar

myname24 2015-06-26 09:33

Re: How to get an information about battery's voltage through Terminal?
 
bmestat or bmestats something like that

mp107 2015-06-26 10:03

Re: How to get an information about battery's voltage through Terminal?
 
Quote:

Originally Posted by pmeuh (Post 1474873)
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

Quote:

Originally Posted by coderus (Post 1474874)
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.


All times are GMT. The time now is 23:30.

vBulletin® Version 3.8.8