Present Location: News >> Blog >> iOS Battery Level via CLI

Blog

> iOS Battery Level via CLI
Posted by prox, from Charlotte, on July 29, 2012 at 23:00 local (server) time

If you've got a jailbroken iOS device and have been wondering how to view the battery level and statistics via the CLI, look no further!  powerlog is apparently an easy way of doing this:

anubis:~ root# powerlog -B
07/29/12 22:50:54 [Battery] level=40.70%; voltage=3815 mV; current=447 mA; max_capacity=10586; charging_state=Inactive; charging_current=500 mA; battery_temp=27.70 C; adapter_info=4000; connected_status=1; usage=86:24:56; standby=86:24:56;
07/29/12 22:51:02 [Battery] level=40.72%; voltage=3815 mV; current=402 mA; max_capacity=10586; charging_state=Inactive; charging_current=500 mA; battery_temp=27.70 C; adapter_info=4000; connected_status=1; usage=86:25:03; standby=86:25:03;

powerlog is stored in /usr/bin and comes on every iOS device, as far as I can tell.  There are a few other options to it, but -B does the trick as far as I'm concerned.  I find this useful due of laziness, mostly...

> Add Comment

New comments are currently disabled for this entry.