Bug 15141 - /etc/init.d/cpufreq-primitive
Summary: /etc/init.d/cpufreq-primitive
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: cpufrequtils (show other bugs)
Version: unstable
Hardware: all Linux
: P2 enhancement
Assignee: Vitaly Chikunov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-28 18:11 MSK by Ivan Zakharyaschev
Modified: 2020-04-19 19:11 MSK (History)
5 users (show)

See Also:


Attachments
/etc/init.d/cpufreq-primitive (2.22 KB, text/plain)
2008-03-28 18:12 MSK, Ivan Zakharyaschev
no flags Details
/etc/sysconfig/cpufreq-primitive (541 bytes, text/plain)
2008-03-28 18:13 MSK, Ivan Zakharyaschev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2008-03-28 18:11:29 MSK
cpufrequtils-002-alt2

I suggest to add the attached startup script which implements primitive setup of
the default cpufreq governor.

Cases in which it is useful:

1) I don't want to use more complex daemons to control the cpufreq policy (for
example, because their strange behavior is hard to debug), but I want to set a
default cpufreq policy on startup.

2) Someone is using those more complex daemons to control the cpufreq policy
(powersaved, cpufreqd, etc.). Then this script is harmless, the "complex"
daemons will override the default governor.

3) gnome-power-manager-2.22.0-alt1.1 (one of the possible "complex" daemons)
doesn't want to actually exercise its policy unless all required cpufreq-*
modules are loaded. So, this script loads them.

Also, it could be extended in future to be THE basic script which loads the
modules for hardware support --
https://bugzilla.altlinux.org/show_bug.cgi?id=10716#c15 . Different complex
daemons will use the results (different people might prefer different daemons,
that's the reason to load speedstep* etc. modules in one common place.)
Steps to Reproduce:
Ti use:
1. chkconfig --add cpufreq-primitive
2. edit /etc/sysconfig/cpufreq-primitive to set your default governor (unset
means no actions will be made)
3. service cpufreq-primitive start
Comment 1 Ivan Zakharyaschev 2008-03-28 18:12:57 MSK
Created attachment 2528 [details]
/etc/init.d/cpufreq-primitive

a harmless script
Comment 2 Ivan Zakharyaschev 2008-03-28 18:13:35 MSK
Created attachment 2529 [details]
/etc/sysconfig/cpufreq-primitive

config template
Comment 3 Michael Shigorin 2020-04-19 19:11:25 MSK
Will cpufreq-simple package do?