You are not logged in.

#1 2013-05-21 19:37:38

sPHERE
Member
From: Москва
Registered: 2008-07-01
Posts: 76
Website

intel_pstate and intel turbo

Hi,

after the recently released 3.9.3-1 kernel (Im using linux-ck-ivybridge on my 3630Q), the turbo boost technology is enabled by default, so that even in powersaving-mode, my cpu idles at 3.4ghz instead of 1.2ghz that I previously had it running at with the ondemand governor. (stock is 2.4ghz), which drains the battery quite a bit faster than before.

I have set up so that LMT switch governors between performance and power-saving, and it does this okay, but I would like it to disable turbo boost (echo 1 >> /sys/devices/system/cpu/intel_pstate/no_turbo) when running at battery (powersaving governor), but enabled on AC (performance governor).

I can echo to the file and the changes happen immediately, but wont survive a reboot.


Any help?

Regards
Petter

Offline

#2 2013-05-21 19:39:21

jrussell
Member
From: Cape Town, South Africa
Registered: 2012-08-16
Posts: 510

Re: intel_pstate and intel turbo

Look here https://wiki.archlinux.org/index.php/CP … cy_Scaling

*Edit

You can put commands in cpupowers config file
I think its /etc/default/cpupower
Then just enable the service and youre good.

You can just append:

echo -n 1 > /sys/devices/system/cpu/intel_pstate/no_turbo

to the file

Last edited by jrussell (2013-05-21 19:42:37)


bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U

Offline

#3 2013-05-21 19:46:22

sPHERE
Member
From: Москва
Registered: 2008-07-01
Posts: 76
Website

Re: intel_pstate and intel turbo

Ok, so I would need to install another service?

Could I let cpupower handle the scaling in general, so I dont end up with "lose ends" so to speak? e.g disable cpu freq scaling in LMT, and configuring cpupower to swithc between governors when im on ac and battery?

thanks for your help btw.

Offline

#4 2013-05-21 19:52:29

jrussell
Member
From: Cape Town, South Africa
Registered: 2012-08-16
Posts: 510

Re: intel_pstate and intel turbo

sPHERE wrote:

Ok, so I would need to install another service?

Could I let cpupower handle the scaling in general, so I dont end up with "lose ends" so to speak? e.g disable cpu freq scaling in LMT, and configuring cpupower to swithc between governors when im on ac and battery?

thanks for your help btw.

Cool smile I think LMT uses cpupower. Im not 100% sure, never used LMT,
but this is probably what you want:
https://wiki.archlinux.org/index.php/CP … CPI_events

If youre using LMT to just change governers, ya Id say just use cpupower by itself, but I think LMT does some other usefull things aswell


bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U

Offline

#5 2013-05-22 13:28:39

sPHERE
Member
From: Москва
Registered: 2008-07-01
Posts: 76
Website

Re: intel_pstate and intel turbo

Ok, so this is what I did:

Disabled cpufreq-scaling in LMT.
Updated /etc/acpi/handler.sh to change governor when AC/battery is used, via echo commands and disabled intel turbo while on powersave.
Installed thermald-git and msr-tools. I imagine these tools will help with scaling the cpu and such, in combination with the new intel_pstate scaling-driver.

Works flawless so far.

Offline

Board footer

Powered by FluxBB