FlyingEaglE Posted October 20, 2017 Posted October 20, 2017 hi, i' using kernel 4.11.5-sunxi #3, before i used kernel 3.4.113-sunxi7i. i had a script running to collect infos, but now none of the files are there anymore, why? cat /sys/class/power_supply/ac/present cat /sys/class/power_supply/ac/voltage_now cat /sys/class/power_supply/ac/current_now cat /sys/class/power_supply/battery/status cat /sys/class/power_supply/battery/voltage_now cat /sys/class/power_supply/battery/current_now cat /sys/class/power_supply/usb/present cat /sys/class/power_supply/usb/voltage_now cat /sys/class/power_supply/usb/current_now cat /sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/temp1_input regards
Solution martinayotte Posted October 20, 2017 Solution Posted October 20, 2017 From what I understood, Mainline has different folder hierarchy. Check those : /sys/power/axp_pmu/ac /sys/power/axp_pmu/battery /sys/power/axp_pmu/vbus
Recommended Posts