Any debian tools to monitor CPU temperature, battery charge etc...

Started by Roux, August 04, 2014, 04:08:03 PM

Previous topic - Next topic

Roux

Does A20 have any sensors for voltages, dc power, battery charge state, CPU temperature etc. ?
If yes,how to access them?

Thank you!

Best regards,
Roux

JohnS

Good places to look: linux-sunxi wiki, datasheet & schematics.

Some of the data is not released by AW so be prepared to pester them / reverse engineer it.

John

jjarven

Hello

A20-OLinuXino-LIME-4GB:

root@a20-OLinuXino:~# ls /sys/bus/i2c/devices/0-0034/axp20-supplyer.28/power_supply/ac/
current_now  device  model_name  online  power  present  subsystem  type  uevent  voltage_now
root@a20-OLinuXino:~# cat /sys/bus/i2c/devices/0-0034/axp20-supplyer.28/power_supply/ac/voltage_now
4739000
root@a20-OLinuXino:~# ls /sys/bus/i2c/devices/0-0034/axp20-supplyer.28/power_supply/
ac  battery  usb
root@a20-OLinuXino:~# ls /sys/bus/i2c/devices/0-0034/axp20-supplyer.28/power_supply/battery/
adcfreq        chgendcur       current_now         ihold       power      technology  vhold               voltage_now
capacity       chgintmicrocur  device              iholden     present    temp        vholden
chgcsttimemin  chgmicrovol     energy_full_design  model_name  status     type        voltage_max_design
chgen          chgpretimemin   health              online      subsystem  uevent      voltage_min_design
root@a20-OLinuXino:~# cat /sys/bus/i2c/devices/0-0034/axp20-supplyer.28/power_supply/battery/status
Full
root@a20-OLinuXino:~# cat /sys/bus/i2c/devices/0-0034/axp20-supplyer.28/power_supply/battery/voltage_now
4112000
root@a20-OLinuXino:~#


Jaakko

cedric

The temperature sensor is connected to the touchscreen ADC. I have read somebody has written a driver for it, but as far as I can remember, only one driver can be loaded at the time. It's either the touch driver, or the temperature driver.
I can't remember where I read this.

Kind regards,
Cedric

Insomniac10102

You can get lots of battery info from the AXP209. Check out http://linux-sunxi.org/AXP209 and the manual for your board for AXP pins.