Battery Monitor Service

Posted on February 12, 2018
archlinux, systemd, linux, kernel, latitude

The Arch wiki suggests to write udev rules to monitor laptop battery levels, but what if your laptop doesn’t create udev events?

A battery level monitor is actually quite simple to create.

Install acpi:

pacman -Syu acpi

Create service file, timer file and script:

Enable and start timer:

systemctl enable battmon.timer
systemctl start battmon.timer