9

I have 2nd gen Intel i7 laptop. I use Thermald and tlp for managing battery life (they are great!). However, sometimes I don't care about noise and power consumption, and want the CPU to run at full 3.5GHz. For some reason, this seems impossible to achieve. The fan never runs full speed, and the processor is always throttled down. When I use cpufreq-info I never see more than 2.8GHz (so turbo boost does not work), and the frequency drops down to 800Mhz when the fan starts getting "loud". This is with intel p-state and performance governor. Powersafe governor is even "worse", but that's good as it increases battery life.

Any ideas how to enable "full power"?

Thank you!

matus201
  • 101

2 Answers2

9

Yes, all you have to do is:

first, set tlp "governer" to performance for both ac and batt in your /etc/default/tlp file and while you are there, go ahead and enable turbo boost as well

then, edit /etc/default/grub and insert

intel_pstate=disable

after

GRUB_CMDLINE_LINUX_DEFAULT=

like this example

GRUB_CMDLINE_LINUX_DEFAULT="intel_pstate=disable quiet splash"

execute this command to apply the change to grub

sudo update-grub

then, install indicator-cpufreq

sudo apt-get update
sudo apt-get install indicator-cpufreq

reboot for your changes to take effect.

After you reboot, you will see an icon on your unity panel, click on this icon and you can set the cpu to performance (full), ondemand (only when needed), powersave, or conservative.


Disabling pstate may not be necessary, you can try it on and off to see if there is a difference. Make sure to update grub after making that change.

Also, indicator-cpufreq will not allow changes with pstate on (only with pstate disabled), you will still have to do that manually.

Finally, you can get better numbers from i7z:

sudo apt-get install i7z

and then, run

sudo i7z

Install lm-sensors and run sensors detect:

sudo apt-get install lm-sensors

sudo sensors-detect

Follow the prompts and select yes to everything.


finally, these links may help:

http://www.webupd8.org/2013/09/adobe-flash-player-hardware.html

Not only does this allow hardware acceleration for flash but installs VDPAU and i965

http://www.webupd8.org/2014/01/enable-hardware-acceleration-in-chrome.html

and these more recent benchmarks show a slight advantage from disabling pstate and using performance

http://www.phoronix.com/scan.php?page=article&item=intel_5960x_pstate&num=2

mchid
  • 43,546
  • 8
  • 97
  • 150
  • Thanks for i7z, it is a better way to monitor cpu freq!

    I have enabled turbo through TLP, disabled p-state, used performance governor (through TLP), but the CPU is still "afraid" to spin up the fans. It's almost like there is a temperature limit somewhere. In windows, if I enable full performance, my laptop goes easily to 90C per core.

    – matus201 Mar 01 '15 at 23:48
  • @matus201 using performance through tlp does not set the freq to performance, it allows performance. If you want to set performance, you need to use some other method such as sudo cpupower frequency-set -g performance or disable pstate and use indicator-cpufreq to set it to performance. – mchid Mar 02 '15 at 00:12
  • @matus201 as suggested you could try disabling thermald as a test but I wouldn't recommend it. Just because the cpu gets hot doesn't mean you are actually getting any more performance from it. – mchid Mar 02 '15 at 00:15
  • I used the cpupower to set governor to performance, and it seems to work in the sense that the governor is performance. CPU frequency jumps to 3.5GHz when I task the system; however, as soon as the fans spin a little bit up (on vaio fans are controlled by bios), CPU is throttled to 800MHz. When they quiet down, frequency jumps back to 3.5GHz, fans spin up, throttling happens and so on... This makes watching simple 720p youtube video impossible without dropped frames. – matus201 Mar 02 '15 at 04:34
  • I should mention that this jumpy throttling happens with or without p-state (de-/activated through grub).

    It makes me think this is a special case with VAIO laptops..

    – matus201 Mar 02 '15 at 04:40
  • @matus201 I have included some drivers you may need for sensors. what happens when pstate is disabled and use indicator-cpufreq to set to performance? the freq should stay high that way and make sure laptop-modetools isn't installed. Also, what about uninstalling thermald? – mchid Mar 02 '15 at 05:03
  • @mchid: Thanks for the link to the more recent phoronix tests. Some of the intel_pstate results make no sense at all. – Doug Smythies Mar 02 '15 at 05:23
  • @DougSmythies I still haven't ran any myself but as soon as I do I'll post somewhere here on asubuntu as a question with the results as the answer or something. They do say, however, "there isn't much difference" and pstate does beat the pants off acpi_ondemand & powersave > LAME mp3 encoding and that's a big one for me because lame is kindof slow sometimes & Performance only showed a diff of 1/100th of a second. – mchid Mar 02 '15 at 06:43
  • @mchid: Phoronix "Timed Linux Kernel Compilation" on my i7-2600K with Kernel 4.0RC1 (averages, seconds): intel_pstate, powersave 122.02; intel_pstate, performance 121.10; acpi-cpufreq performance 121.50. – Doug Smythies Mar 02 '15 at 07:37
  • @mchid: I'm sorry for spamming you guys with questions.. I ran lm-sensor, and while I don't see any processor change, my keyboard backlight now turns on only in low light (which is awesome!) I will try your other suggestions soon, but I have a new problem..

    My laptop does not stop charging battery now. It is 100%, and the charging light stayed on all night (8h+). Both Ubuntu and Win says battery is 100% and charging. Is it possible some call done by lm-sensor did this, or am I facing some different hardware failure?

    – matus201 Mar 02 '15 at 18:01
  • @matus201 Kind of late but I think the battery issue is usually controlled by the BIOS on most systems. This would explain why the issue happens on both Ubuntu and Windows. Sometimes a BIOS update will cause this to happen. There is usually a setting in BIOS which controls how to charge the battery. – mchid Dec 22 '18 at 02:38
1

I managed to figure this out. As usually, Sony decided to do things their way and so this is specific to Vaio laptops only.

To set full performance, you need to type in terminal:

echo performance | sudo tee /sys/devices/platform/sony-laptop/thermal_control

This sets your laptop to performance mode, and no throttling happens.

matus201
  • 101