Archive for June 23rd, 2010

Battery info

/sys/class/power_supply/battery has batt_id, batt_vol, batt_temp, batt_current and many other interesting items:

$ cat batt_attr_text
batt_id: 1;
batt_vol(mV): 4167;
batt_temp(С): 306;
batt_current(mA): 151;
batt_current_avg(mA): 154;
level(%): 97;
charging_source: 1;
charging_enabled: 1;
acr(mAh): 1326;
active_empty(mAh): 177;
guage_status_reg: 81;
full_level(%): 100;
fake_temp: 0;
$

,

No Comments