Ruby interface to [UPower] tool available by default on Ubuntu and Debian distros.