FlyingEaglE Posted October 20, 2017 Share 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 Link to comment Share on other sites More sharing options...
Solution martinayotte Posted October 20, 2017 Solution Share 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 Link to comment Share on other sites More sharing options...
FlyingEaglE Posted October 20, 2017 Author Share Posted October 20, 2017 ok, i'll give it a try. Link to comment Share on other sites More sharing options...
FlyingEaglE Posted October 21, 2017 Author Share Posted October 21, 2017 It seems to work, thanks. Link to comment Share on other sites More sharing options...
Recommended Posts