Bug 15141

Summary: /etc/init.d/cpufreq-primitive
Product: Sisyphus Reporter: Ivan Zakharyaschev <imz>
Component: cpufrequtilsAssignee: Vitaly Chikunov <vt>
Status: NEW --- QA Contact: qa-sisyphus
Severity: enhancement    
Priority: P2 CC: evg, glebfm, mike, sem, vt
Version: unstable   
Hardware: all   
OS: Linux   
Attachments:
Description Flags
/etc/init.d/cpufreq-primitive
none
/etc/sysconfig/cpufreq-primitive none

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?