You are not logged in.

#1 2009-12-07 17:09:03

scooby
Member
Registered: 2009-03-19
Posts: 23

powertop

I have custom compiled my kernel, everything built in, works ok.

I am running powertop to try and extend battery life, and it tells me to enable CONFIG_NO_HZ, CONFIG_HPET_TIMER, CONFIG_USB_SUSPEND, CONFIG_ACPI_BATTERY. All these options are enabled in my .config and kernel, but powertop is suggesting they are not.

I have recompiled the kernel several times trying to fix this, it is like powertop is not seeing what I have configured and compiled in to the kernel.

Anyone any ideas?

Offline

#2 2009-12-07 17:22:56

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: powertop

I know for USB suspend you need to enable it, not just compile it in. It's not because the kernel can use it that it will do so in its default configuration.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2009-12-07 17:56:07

scooby
Member
Registered: 2009-03-19
Posts: 23

Re: powertop

Yes, you are correct.

However, for the other CONFIG..., I think that they are compiled in.

Just done some tests with the stock arch kernel, powertop doesn't complain about enabling CONFIG_NO_HZ etc.
Noticed that the wakeups were about 35-40, as opposed to my custom kernel where they are about 150
Also,  hrtimer_start_range_ns are about 140 with my custom kernel, as opposed to  about 30 with the stock kernel.

I think it is a compilation problem, I will disable ccache and start kernel compiling all over again.

Good news is that with the custom kernel, powerdraw is about 11W, it's about 15 with the stock kernel.

Offline

#4 2009-12-07 18:03:16

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: powertop

If you're unsure, and if you have your config in /proc/config, you can still grep for the configuration options powertop is complaining about. You might be right though - I have run tests with powertop too, and it will often suggest to use a hotkey to turn off X or Y, which you press, only to have it make the same remark a few minutes later...


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#5 2009-12-07 20:16:05

scooby
Member
Registered: 2009-03-19
Posts: 23

Re: powertop

My new kernel is now behaving itself with respect to powertop. I disabled ccache, did make mrproper, configured away, and it now behaves as it should. Powertop has stopped complaining about  CONFIG_NO_HZ and other CONFIG not being enabled, when they are.

I would say I have something set up wrong, as I think you should be able to use ccache with kernel compilation.
Finetuning kernel compilation is a pita without ccache.

Offline

#6 2009-12-09 18:47:23

scooby
Member
Registered: 2009-03-19
Posts: 23

Re: powertop

Ok, finally worked this out. Nothing to do with ccache.

I have to enable kernel .config support, and access to .config through /proc/config.gz, in menuconfig.

Oh well, there's another thing I have learned. Now to streamline my kernel...

Offline

Board footer

Powered by FluxBB