SliTaz SliTaz Forum

You are not logged in.

#1 2012-12-04 18:15:45

charlot
Member
Registered: 2012-12-04
Posts: 2

cpufreq autostart

Hi!

I have isntalled cpufrequtils and the kernel modules

However, everytime I reboot SliTaz, I have to do

su

modprobe acpi-cpufreq

cpufreq-set -c 0 -g ondemand

cpufreq-set -c 1 -g ondemand

Because it seems to be not loaded at startup.  If I just do "cpufreq-set -c 1 -g ondemand" without the modprobe command, it says the governor is not available...

And if I do no set cpufreq manually to "ondemand", it is set at performance by default.

Ho do I launch CPUfreq automatically at startup and how do I make the changes permanent?

PS: SliTaz is installed on my HDD

I have Toshiba NB305 notebook

I am using kernel 2.6.37 with SliTaz 4.0

Thank you for your help!

Offline

#2 2012-12-04 20:24:58

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: cpufreq autostart

charlot

the easiest way is to write this three lines to /etc/init.d/local.sh

modprobe acpi-cpufreq

cpufreq-set -c 0 -g ondemand

cpufreq-set -c 1 -g ondemand

its a pitty, that SliTaz is without cpufrequtils and by default on performance

Offline

#3 2012-12-04 21:16:41

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: cpufreq autostart

Would have put acpi-cpufreq in /etc/rcS.conf file's LOAD_MODULES myself. Both it and local.sh can be accessed from TazPanel's boot section.

Offline

#4 2012-12-05 00:57:50

charlot
Member
Registered: 2012-12-04
Posts: 2

Re: cpufreq autostart

That's fantastic.

Thank you both.  You are awesome.  I went in TazPanel's boot section and added the commands in the local.sh file.  Worked like a charm.

Have a great day!

Offline

#5 2012-12-05 22:39:24

Darjeeling
Member
Registered: 2012-02-06
Posts: 210

Re: cpufreq autostart

> the easiest way is to write this three lines to /etc/init.d/local.sh

>

> modprobe acpi-cpufreq

> cpufreq-set -c 0 -g ondemand

> cpufreq-set -c 1 -g ondemand

>

A while back someone here in the forum recommended these lines:

# Enable dynamic CPU frequency scaling

modprobe acpi-cpufreq

cd /sys/devices/system/cpu/cpu0/cpufreq

echo ondemand > scaling_governor

cd /sys/devices/system/cpu/cpu1/cpufreq

echo ondemand > scaling_governor

... is there any difference?

Offline

#6 2012-12-05 23:25:07

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: cpufreq autostart

Both methods should do the exact same thing - one just uses a command line tool while the other is a more manual approach.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]