Is there any way to detect whether the Librem 14 EC is in the-battery-would-be-being-charged-if-AC-power-was-connected mode or the-battery-would-NOT-be-being-charged-if-AC-power-was-connected mode? The EC toggles between these two modes when the battery charge reaches the levels that are set by writing to the files /sys/class/power_supply/BAT0/charge_control_start_threshold and /sys/class/power_supply/BAT0/charge_control_end_threshold. I can tell whether the battery is charging right now by looking in /sys/class/power_supply/BAT0/status, but that doesn’t tell me the state I want to know when the AC power is not connected. None of the files in /sys/class/power_supply/BAT0 seem to provide the information I am seeking.
Long live free software!