On 02/12/2019 03.31, Carlos E. R. wrote:
I just realized that freshclam in this laptop eats battery. It goes full cpu load for minutes. I must think on how to disable the process on battery power.
Found this: https://askubuntu.com/questions/654335/systemd-how-to-start-stop-services-on... One answer: I'm not an expert on systemd, but I google better than the average bear. See https://wiki.archlinux.org/index.php/Power_management: There is just one thing systemd cannot do (as of systemd-204): power management depending on whether the system is running on AC or battery. To fill this gap, you can create a single udev rule that runs a script when the AC adapter is plugged and unplugged: -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)