DSBBatmon is a Qt battery monitor for FreeBSD®. It displays the battery's current status, capacity, and remaining time when you move the mouse cursor over its tray icon. DSBBatmon can automatically shut down or suspend your system when the battery's capacity falls short of a certain percental value.
# cd /usr/ports/sysutils/dsbbatmon && make install distclean
# tar xf dsbbatmon-1.0.6.tgz && cd dsbbatmon-1.0.6 && qmake && make # make install
# git clone https://github.com/mrclksr/DSBBatmon.git # git clone https://github.com/mrclksr/dsbcfg.git # cd DSBBatmon && qmake && make # make install
# pw groupmod operator -m yourusernameIf you want to be able to suspend your system as regular user who is member of the wheel group, you can use sudo(8). Add
%wheel ALL=(ALL) NOPASSWD: /usr/sbin/acpiconf *to /usr/local/etc/sudoers