Files
mesh-catalog/modules/power/templates/udev/rules.d/90-mesh-power.rules
T

6 lines
452 B
Plaintext

# Written by the mesh (module power, novox/hq ADR 0211). Replaced on every push.
# Only the charger's change can switch the machine between mains and battery. A battery reports its
# level many times a minute, and USB-C supplies come and go; matching them started the supply unit
# every second or two on the laptop.
SUBSYSTEM=="power_supply", ACTION=="change", ATTR{type}=="Mains", RUN+="/usr/bin/systemctl --no-block start mesh-power-supply.service"