Ubuntu – kernel configuration


Running PowerTOP on an Ubuntu 10.10 system, one of the suggestions are

kernel configuration option. This
option will allow PowerTOP to collect
runtime power management statistics.

What is a kernel configuration option and how do I enable it?

Can I put it as a startup parameter somewhere, or would I have to compile a new kernel?

Best Answer

Kernel configurations are compiled in. You can check to see if it's configured by running this:

grep CONFIG_PM_ADVANCED_DEBUG /boot/config-`uname -r`

On mine, I see:

oli@bert:~$ grep CONFIG_PM_ADVANCED_DEBUG /boot/config-`uname -r`

I compile my own kernels but my config is derived from Ubuntu's. It's worth checking to see if it's been added since I started compiling.

If you want to recompile the kernel to enable this flag, your best starting point is here: https://help.ubuntu.com/community/Kernel/Compile

It's a bit of effort. You need a few packages and on a fast computer it takes at least 20 minutes just to do the compile. Add in configuration time and that you have to do this every time a security update comes out... It might not be worth it.