Can't use “userspace” cpufreq governor and set cpu frequency

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
17
down vote

favorite
12












I'm trying to change the cpu frequency on my laptop (running Linux), and not having any success.

Here are some details:



# uname -a
Linux yoga 3.12.21-gentoo-r1 #4 SMP Thu Jul 10 17:32:31 HKT 2014 x86_64 Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz GenuineIntel GNU/Linux

# cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
driver: intel_pstate
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 0.97 ms.
hardware limits: 800 MHz - 2.60 GHz
available cpufreq governors: performance, powersave
current policy: frequency should be within 800 MHz and 2.60 GHz.
The governor "powersave" may decide which speed to use
within this range.
current CPU frequency is 2.42 GHz (asserted by call to hardware).
(similar information for cpus 1, 2 and 3)

# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
performance powersave


I initially had the userspace governor built into the kernel, but then I also tried building it as a module (with the same results); it was loaded while running the above commands (and I couldn't find any system messages when loading it):



# lsmod
Module Size Used by
cpufreq_userspace 1525 0
(some other modules)


And here are the commands I tried for changing the frequency:



# cpufreq-set -f 800MHz
Error setting new values. Common errors:
- Do you have proper administration rights? (super-user?)
- Is the governor you requested available and modprobed?
- Trying to set an invalid policy?
- Trying to set a specific frequency, but userspace governor is not available,
for example because of hardware which cannot be set to a specific frequency
or because the userspace governor isn't loaded?

# cpufreq-set -g userspace
Error setting new values. Common errors:
- Do you have proper administration rights? (super-user?)
- Is the governor you requested available and modprobed?
- Trying to set an invalid policy?
- Trying to set a specific frequency, but userspace governor is not available,
for example because of hardware which cannot be set to a specific frequency
or because the userspace governor isn't loaded?


Any ideas?










share|improve this question





















  • @don_crissti thanks, heh, I tried echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo and got an instant kernel panic :p Then I rebooted with intel_pstate=disable and now it's using acpi-cpufreq, but I still can't set the frequency (although I'm not getting error messages anymore). Btw, why not make your comment an answer?
    – aditsu
    Sep 15 '14 at 5:15










  • @don_crissti I didn't know about cpupower; it has a somewhat nasty syntax, but seems to work better than cpufreq. I am able to set the frequency now :) Thanks a lot and remember to post an answer (unless you really don't want the points).
    – aditsu
    Sep 15 '14 at 22:46














up vote
17
down vote

favorite
12












I'm trying to change the cpu frequency on my laptop (running Linux), and not having any success.

Here are some details:



# uname -a
Linux yoga 3.12.21-gentoo-r1 #4 SMP Thu Jul 10 17:32:31 HKT 2014 x86_64 Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz GenuineIntel GNU/Linux

# cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
driver: intel_pstate
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 0.97 ms.
hardware limits: 800 MHz - 2.60 GHz
available cpufreq governors: performance, powersave
current policy: frequency should be within 800 MHz and 2.60 GHz.
The governor "powersave" may decide which speed to use
within this range.
current CPU frequency is 2.42 GHz (asserted by call to hardware).
(similar information for cpus 1, 2 and 3)

# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
performance powersave


I initially had the userspace governor built into the kernel, but then I also tried building it as a module (with the same results); it was loaded while running the above commands (and I couldn't find any system messages when loading it):



# lsmod
Module Size Used by
cpufreq_userspace 1525 0
(some other modules)


And here are the commands I tried for changing the frequency:



# cpufreq-set -f 800MHz
Error setting new values. Common errors:
- Do you have proper administration rights? (super-user?)
- Is the governor you requested available and modprobed?
- Trying to set an invalid policy?
- Trying to set a specific frequency, but userspace governor is not available,
for example because of hardware which cannot be set to a specific frequency
or because the userspace governor isn't loaded?

# cpufreq-set -g userspace
Error setting new values. Common errors:
- Do you have proper administration rights? (super-user?)
- Is the governor you requested available and modprobed?
- Trying to set an invalid policy?
- Trying to set a specific frequency, but userspace governor is not available,
for example because of hardware which cannot be set to a specific frequency
or because the userspace governor isn't loaded?


Any ideas?










share|improve this question





















  • @don_crissti thanks, heh, I tried echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo and got an instant kernel panic :p Then I rebooted with intel_pstate=disable and now it's using acpi-cpufreq, but I still can't set the frequency (although I'm not getting error messages anymore). Btw, why not make your comment an answer?
    – aditsu
    Sep 15 '14 at 5:15










  • @don_crissti I didn't know about cpupower; it has a somewhat nasty syntax, but seems to work better than cpufreq. I am able to set the frequency now :) Thanks a lot and remember to post an answer (unless you really don't want the points).
    – aditsu
    Sep 15 '14 at 22:46












up vote
17
down vote

favorite
12









up vote
17
down vote

favorite
12






12





I'm trying to change the cpu frequency on my laptop (running Linux), and not having any success.

Here are some details:



# uname -a
Linux yoga 3.12.21-gentoo-r1 #4 SMP Thu Jul 10 17:32:31 HKT 2014 x86_64 Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz GenuineIntel GNU/Linux

# cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
driver: intel_pstate
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 0.97 ms.
hardware limits: 800 MHz - 2.60 GHz
available cpufreq governors: performance, powersave
current policy: frequency should be within 800 MHz and 2.60 GHz.
The governor "powersave" may decide which speed to use
within this range.
current CPU frequency is 2.42 GHz (asserted by call to hardware).
(similar information for cpus 1, 2 and 3)

# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
performance powersave


I initially had the userspace governor built into the kernel, but then I also tried building it as a module (with the same results); it was loaded while running the above commands (and I couldn't find any system messages when loading it):



# lsmod
Module Size Used by
cpufreq_userspace 1525 0
(some other modules)


And here are the commands I tried for changing the frequency:



# cpufreq-set -f 800MHz
Error setting new values. Common errors:
- Do you have proper administration rights? (super-user?)
- Is the governor you requested available and modprobed?
- Trying to set an invalid policy?
- Trying to set a specific frequency, but userspace governor is not available,
for example because of hardware which cannot be set to a specific frequency
or because the userspace governor isn't loaded?

# cpufreq-set -g userspace
Error setting new values. Common errors:
- Do you have proper administration rights? (super-user?)
- Is the governor you requested available and modprobed?
- Trying to set an invalid policy?
- Trying to set a specific frequency, but userspace governor is not available,
for example because of hardware which cannot be set to a specific frequency
or because the userspace governor isn't loaded?


Any ideas?










share|improve this question













I'm trying to change the cpu frequency on my laptop (running Linux), and not having any success.

Here are some details:



# uname -a
Linux yoga 3.12.21-gentoo-r1 #4 SMP Thu Jul 10 17:32:31 HKT 2014 x86_64 Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz GenuineIntel GNU/Linux

# cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
driver: intel_pstate
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 0.97 ms.
hardware limits: 800 MHz - 2.60 GHz
available cpufreq governors: performance, powersave
current policy: frequency should be within 800 MHz and 2.60 GHz.
The governor "powersave" may decide which speed to use
within this range.
current CPU frequency is 2.42 GHz (asserted by call to hardware).
(similar information for cpus 1, 2 and 3)

# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
performance powersave


I initially had the userspace governor built into the kernel, but then I also tried building it as a module (with the same results); it was loaded while running the above commands (and I couldn't find any system messages when loading it):



# lsmod
Module Size Used by
cpufreq_userspace 1525 0
(some other modules)


And here are the commands I tried for changing the frequency:



# cpufreq-set -f 800MHz
Error setting new values. Common errors:
- Do you have proper administration rights? (super-user?)
- Is the governor you requested available and modprobed?
- Trying to set an invalid policy?
- Trying to set a specific frequency, but userspace governor is not available,
for example because of hardware which cannot be set to a specific frequency
or because the userspace governor isn't loaded?

# cpufreq-set -g userspace
Error setting new values. Common errors:
- Do you have proper administration rights? (super-user?)
- Is the governor you requested available and modprobed?
- Trying to set an invalid policy?
- Trying to set a specific frequency, but userspace governor is not available,
for example because of hardware which cannot be set to a specific frequency
or because the userspace governor isn't loaded?


Any ideas?







linux cpu-frequency






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 4 '14 at 7:11









aditsu

150119




150119











  • @don_crissti thanks, heh, I tried echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo and got an instant kernel panic :p Then I rebooted with intel_pstate=disable and now it's using acpi-cpufreq, but I still can't set the frequency (although I'm not getting error messages anymore). Btw, why not make your comment an answer?
    – aditsu
    Sep 15 '14 at 5:15










  • @don_crissti I didn't know about cpupower; it has a somewhat nasty syntax, but seems to work better than cpufreq. I am able to set the frequency now :) Thanks a lot and remember to post an answer (unless you really don't want the points).
    – aditsu
    Sep 15 '14 at 22:46
















  • @don_crissti thanks, heh, I tried echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo and got an instant kernel panic :p Then I rebooted with intel_pstate=disable and now it's using acpi-cpufreq, but I still can't set the frequency (although I'm not getting error messages anymore). Btw, why not make your comment an answer?
    – aditsu
    Sep 15 '14 at 5:15










  • @don_crissti I didn't know about cpupower; it has a somewhat nasty syntax, but seems to work better than cpufreq. I am able to set the frequency now :) Thanks a lot and remember to post an answer (unless you really don't want the points).
    – aditsu
    Sep 15 '14 at 22:46















@don_crissti thanks, heh, I tried echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo and got an instant kernel panic :p Then I rebooted with intel_pstate=disable and now it's using acpi-cpufreq, but I still can't set the frequency (although I'm not getting error messages anymore). Btw, why not make your comment an answer?
– aditsu
Sep 15 '14 at 5:15




@don_crissti thanks, heh, I tried echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo and got an instant kernel panic :p Then I rebooted with intel_pstate=disable and now it's using acpi-cpufreq, but I still can't set the frequency (although I'm not getting error messages anymore). Btw, why not make your comment an answer?
– aditsu
Sep 15 '14 at 5:15












@don_crissti I didn't know about cpupower; it has a somewhat nasty syntax, but seems to work better than cpufreq. I am able to set the frequency now :) Thanks a lot and remember to post an answer (unless you really don't want the points).
– aditsu
Sep 15 '14 at 22:46




@don_crissti I didn't know about cpupower; it has a somewhat nasty syntax, but seems to work better than cpufreq. I am able to set the frequency now :) Thanks a lot and remember to post an answer (unless you really don't want the points).
– aditsu
Sep 15 '14 at 22:46










1 Answer
1






active

oldest

votes

















up vote
33
down vote



accepted
+50










This is because your system is using the new driver called intel_pstate. There are only two governors available when using this driver: powersave and performance.

The userspace governor is only available with the older acpi-cpufreq driver (which will be automatically used if you disable intel_pstate at boot time; you then set the governor/frequency with cpupower):



  • disable the current driver: add intel_pstate=disable to your kernel boot line

  • boot, then load the userspace module: modprobe cpufreq_userspace

  • set the governor: cpupower frequency-set --governor userspace

  • set the frequency: cpupower --cpu all frequency-set --freq 800MHz





share|improve this answer






















  • Thanks, btw, frequency-set seems to do the same thing without --cpu all
    – aditsu
    Sep 16 '14 at 5:58






  • 2




    There must be some disadvantages to using an older driver. What are they?
    – kontextify
    Jun 30 '17 at 14:01










  • @kontextify More happy users, less prone to voluntarily serve as lab-rats to test the new release.
    – Mephisto
    Jan 27 at 8:48










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f153693%2fcant-use-userspace-cpufreq-governor-and-set-cpu-frequency%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
33
down vote



accepted
+50










This is because your system is using the new driver called intel_pstate. There are only two governors available when using this driver: powersave and performance.

The userspace governor is only available with the older acpi-cpufreq driver (which will be automatically used if you disable intel_pstate at boot time; you then set the governor/frequency with cpupower):



  • disable the current driver: add intel_pstate=disable to your kernel boot line

  • boot, then load the userspace module: modprobe cpufreq_userspace

  • set the governor: cpupower frequency-set --governor userspace

  • set the frequency: cpupower --cpu all frequency-set --freq 800MHz





share|improve this answer






















  • Thanks, btw, frequency-set seems to do the same thing without --cpu all
    – aditsu
    Sep 16 '14 at 5:58






  • 2




    There must be some disadvantages to using an older driver. What are they?
    – kontextify
    Jun 30 '17 at 14:01










  • @kontextify More happy users, less prone to voluntarily serve as lab-rats to test the new release.
    – Mephisto
    Jan 27 at 8:48














up vote
33
down vote



accepted
+50










This is because your system is using the new driver called intel_pstate. There are only two governors available when using this driver: powersave and performance.

The userspace governor is only available with the older acpi-cpufreq driver (which will be automatically used if you disable intel_pstate at boot time; you then set the governor/frequency with cpupower):



  • disable the current driver: add intel_pstate=disable to your kernel boot line

  • boot, then load the userspace module: modprobe cpufreq_userspace

  • set the governor: cpupower frequency-set --governor userspace

  • set the frequency: cpupower --cpu all frequency-set --freq 800MHz





share|improve this answer






















  • Thanks, btw, frequency-set seems to do the same thing without --cpu all
    – aditsu
    Sep 16 '14 at 5:58






  • 2




    There must be some disadvantages to using an older driver. What are they?
    – kontextify
    Jun 30 '17 at 14:01










  • @kontextify More happy users, less prone to voluntarily serve as lab-rats to test the new release.
    – Mephisto
    Jan 27 at 8:48












up vote
33
down vote



accepted
+50







up vote
33
down vote



accepted
+50




+50




This is because your system is using the new driver called intel_pstate. There are only two governors available when using this driver: powersave and performance.

The userspace governor is only available with the older acpi-cpufreq driver (which will be automatically used if you disable intel_pstate at boot time; you then set the governor/frequency with cpupower):



  • disable the current driver: add intel_pstate=disable to your kernel boot line

  • boot, then load the userspace module: modprobe cpufreq_userspace

  • set the governor: cpupower frequency-set --governor userspace

  • set the frequency: cpupower --cpu all frequency-set --freq 800MHz





share|improve this answer














This is because your system is using the new driver called intel_pstate. There are only two governors available when using this driver: powersave and performance.

The userspace governor is only available with the older acpi-cpufreq driver (which will be automatically used if you disable intel_pstate at boot time; you then set the governor/frequency with cpupower):



  • disable the current driver: add intel_pstate=disable to your kernel boot line

  • boot, then load the userspace module: modprobe cpufreq_userspace

  • set the governor: cpupower frequency-set --governor userspace

  • set the frequency: cpupower --cpu all frequency-set --freq 800MHz






share|improve this answer














share|improve this answer



share|improve this answer








edited Oct 29 '17 at 12:39

























answered Sep 16 '14 at 1:39









don_crissti

47k15124154




47k15124154











  • Thanks, btw, frequency-set seems to do the same thing without --cpu all
    – aditsu
    Sep 16 '14 at 5:58






  • 2




    There must be some disadvantages to using an older driver. What are they?
    – kontextify
    Jun 30 '17 at 14:01










  • @kontextify More happy users, less prone to voluntarily serve as lab-rats to test the new release.
    – Mephisto
    Jan 27 at 8:48
















  • Thanks, btw, frequency-set seems to do the same thing without --cpu all
    – aditsu
    Sep 16 '14 at 5:58






  • 2




    There must be some disadvantages to using an older driver. What are they?
    – kontextify
    Jun 30 '17 at 14:01










  • @kontextify More happy users, less prone to voluntarily serve as lab-rats to test the new release.
    – Mephisto
    Jan 27 at 8:48















Thanks, btw, frequency-set seems to do the same thing without --cpu all
– aditsu
Sep 16 '14 at 5:58




Thanks, btw, frequency-set seems to do the same thing without --cpu all
– aditsu
Sep 16 '14 at 5:58




2




2




There must be some disadvantages to using an older driver. What are they?
– kontextify
Jun 30 '17 at 14:01




There must be some disadvantages to using an older driver. What are they?
– kontextify
Jun 30 '17 at 14:01












@kontextify More happy users, less prone to voluntarily serve as lab-rats to test the new release.
– Mephisto
Jan 27 at 8:48




@kontextify More happy users, less prone to voluntarily serve as lab-rats to test the new release.
– Mephisto
Jan 27 at 8:48

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f153693%2fcant-use-userspace-cpufreq-governor-and-set-cpu-frequency%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?