battery_monitor is a small battery monitoring program for Linux, that you can run in the background from your desktop session or launch from the boot scripts. battery_monitor is designed with simple goals in mind and provides acoustic and/or visual alerts when your battery level is low or when it is fully charged, so you can take apropiate actions.
Compilation and installation
To compile and install battery_monitor you need several components installed on your computer:
C compiler (probably GCC) and the standard C libraries and headers.
POSIX threads libraries and headers (pthread.h).
X11 libraries and headers.
xine libraries and headers.
To compile the program, once you have installed everything needed, run make from the source code directory. To install it, run make install after compilation. This last step may require superuser privileges depending on the selected installation directory. The following parameters may be useful while compiling and installing:
CC: It lets you specify the C compiler name instead of gcc.
CFLAGS: You can use it to change the optimization level and/or specify additional header directories by using extra -I arguments.
LDFLAGS: In case the compiler can't find some of the required libraries, use this parameter to pass additional -L arguments in the link step.
PREFIX: The default prefix is /usr/local. If you change this parameter you should change it in both the compilation and the installation step. It's only used in the installation step for now, but this may change.
DESTDIR: Useful for package maintainers, this lets you specify a fake root directory in the installation step.
Compilation and installation parameters are appended to the make command in variable assignment form. For example: make install PREFIX=/usr DESTDIR=/tmp/fake_rootdir.
What's New in This Release:
· Several bugs have been corrected.
· They surfaced with recent releases of the Xorg X server, and made the program behave incorrectly when displaying signs.
· The underlying sign code has been rewritten, and the program is now lighter on resources as a collateral effect. In addition, CMake support has been added to the build system.