Detecting when charging and discharging
#2
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?
  Reply


Messages In This Thread
RE: Detecting when charging and discharging - by phobios - 12-05-2023, 12:59 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  USB C to USB C charging not working. acidmilk 10 1,443 08-23-2024, 04:50 AM
Last Post: 67man
  /dev and etcher not detecting pinephone for writing pineuser0 2 2,965 09-13-2021, 03:10 PM
Last Post: pineuser0

Forum Jump:


Users browsing this thread: 1 Guest(s)