View Single Post
Old 05-21-2014, 08:00 PM   #60
Cykotitan
Enthusiast
Cykotitan is kind to children and small, furry animalsCykotitan is kind to children and small, furry animalsCykotitan is kind to children and small, furry animalsCykotitan is kind to children and small, furry animalsCykotitan is kind to children and small, furry animalsCykotitan is kind to children and small, furry animalsCykotitan is kind to children and small, furry animalsCykotitan is kind to children and small, furry animalsCykotitan is kind to children and small, furry animalsCykotitan is kind to children and small, furry animalsCykotitan is kind to children and small, furry animals
 
Posts: 44
Karma: 6550
Join Date: May 2013
Location: Bosnia & Herzegovina
Device: Kindle Paperwhite 1 WiFi
I would like to be of help, but I'm not sure if there's any other way to get the battery charge reading other than executing gasgauge-info -m. Like I said, it's probably not accessible via lipc properties and you'll have to find a way to get the output of the shell command and then display it in the status bar.

For a start, these posts (1, 2) look promising. I'm just not sure if any more info on this is available, or even source code of a project that has a similar implementation.
Also, I would imagine it would have to be refreshed periodically using a script, because there isn't a such event that would allow automatic updating (as opposed to battLevelChanged which provides the percentage, for instance)

Last edited by Cykotitan; 05-21-2014 at 08:05 PM.
Cykotitan is offline   Reply With Quote