Auteur Sujet: cpufreq-set, where to add to script  (Lu 1597 fois)

0 Membres et 1 Invité sur ce sujet

Hors ligne patrick013

  • Membre Senior
  • ****
  • Messages: 252
cpufreq-set, where to add to script
« le: 09 février 2013 à 21:48:20 »
Hi,

Need to add cpufreq-set to a start-up script.

Thought rc.local would work, it didn't.
Thought etc/xdg/openbox/autostart would work, it didn't.

etc/init.d/cpufrequtils doesn't work on any distro I've tried.

Usuaslly rc.local works fine, but.........

Where can I add this cpufreq-set command ?

THX

patrick

Hors ligne melodie

  • Administrateur
  • Membre Héroïque
  • *****
  • Messages: 1744
    • Citrotux
Re : cpufreq-set, where to add to script
« Réponse #1 le: 09 février 2013 à 22:27:12 »
Instead of "cpufreq-set", would you look if you have a "/etc/sysconfig/cpufreq" file ? If so, is this likely to help you ?

Also translated to French here. :)


Good leaders being scarce, following yourself is allowed.

Hors ligne patrick013

  • Membre Senior
  • ****
  • Messages: 252
Re : Re : cpufreq-set, where to add to script
« Réponse #2 le: 09 février 2013 à 23:14:42 »
Instead of "cpufreq-set", would you look if you have a "/etc/sysconfig/cpufreq" file ? If so, is this likely to help you ?

Also translated to French here. :)

Hi Mel,

The etc/sysconfig/cpufreq doesn't work on my machine and several others.

Putting "cpufreq-set -r -g performance" into etc/rc.local has been the only
way it works.   And that upon other advise.   The cpufreq program just has
some bugs, you know.

thanks for the response.

patrick

Hors ligne melodie

  • Administrateur
  • Membre Héroïque
  • *****
  • Messages: 1744
    • Citrotux
Re : cpufreq-set, where to add to script
« Réponse #3 le: 10 février 2013 à 00:51:04 »
Hi,

In some distros, ie : Archlinux and certainly several others cpufreq is purely obsoleted, which leads to this: soon it will be outdated for all distributions. However I have not studied well what is dedicated to replace it.

Maybe would you want to throw a glance at "cpupower" ?

https://launchpad.net/~kamalmostafa/+archive/cpupower

Good leaders being scarce, following yourself is allowed.

Hors ligne patrick013

  • Membre Senior
  • ****
  • Messages: 252
Re : Re : cpufreq-set, where to add to script
« Réponse #4 le: 10 février 2013 à 01:45:09 »
In some distros, ie : Archlinux and certainly several others cpufreq is purely obsoleted

Well don't obsolete it yet, no need to run at 800mhz.

There is a line at the end of etc/rc.local reading
"exit 0"    Well if I comment that out the cpufreq-set
command runs thru at a reboot.   Now both cores are
working full power, performance governor, at 1.6 Ghz.

Fussy rc.local today.

thanks for the response.

Patrick