PowerTOP

PowerTOP is a Linux utility that can monitor and display a system's electrical power usage. It is useful as a hardware monitoring and diagnostic tool. It is among the most powerful battery stretching utilities for notebook computers.

Kernel
Both  and   must be enabled in the kernel for PowerTOP to work properly. Enabling  might be a good idea as well.

If the above options have not properly been enabled Portage should display warning messages at the end of the emerge.

Emerge
After setting USE flags, PowerTOP:

Configuration
(Software configuration.)

Could not find a Makefile in the kernel source directory
After an emerge a message similar to the following message may be displayed:

This warning indicates the PowerTOP ebuild has attempted to verify a successful operating environment for the PowerTOP software package. In order to be sure PowerTOP will work as intended, at the end of the process, a check is ran against the current kernel source configuration. In the case of the above message two warnings were provided:


 * 1) No kernel sources have been detected. This can happen as a result of running an  or failed to have a specific kernel set using the  command.
 * 2) Since no kernel sources have been detected Portage was not able to scan the kernel's  file to determine if the correct features have been enabled in the kernel. According to the error message above, five features are not set. The features may or may not be set in the current running kernel. Portage is simply making the user aware there is no way to verify these features have been set without a  file. If PowerTOP can perform some functions but not others, be sure all the kernel features listed have been enabled. For more information on how to do so consult the kernel configuration article.