Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

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

    Reply
    mp107 | # 1 | 2015-06-26, 07:57 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    pmeuh | # 2 | 2015-06-26, 08:50 | Report

    Sorry i cannot help you out, but do you have more info about "restarting BMO"?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    coderus | # 3 | 2015-06-26, 09:08 | Report

    there is bmeinfo executsble or similar

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to coderus For This Useful Post:
    mp107

     
    myname24 | # 4 | 2015-06-26, 09:33 | Report

    bmestat or bmestats something like that

    Edit | Forward | Quote | Quick Reply | Thanks

     
    mp107 | # 5 | 2015-06-26, 10:03 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

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

     
vBulletin® Version 3.8.8
Normal Logout