12-05-2023, 12:59 AM
Found now that there is 'present' and 'online' in /sys/class/power_supply/axp20x-usb/. Both correctly outputs 1 when there is electricity flowing and 0 when there is none. Is there anything that differs between them? Any of them preferable to use in the script?