Persistent 80% charge

I remeber I saw a command to set persistent charging to 80%, but cant find it.
Can anyone remind me?
Thanks :slight_smile:

This might be what you saw:

sudo tee /etc/udev/rules.d/10-battery.rules <<<'SUBSYSTEM=="power_supply", KERNEL=="macsmc-battery", ATTR{charge_control_end_threshold}="80"'
1 Like