Note: CPU control can damage your hardware e.g. by the CPU overheating. As for all Tasker functions, you use it at your own risk!
https://tasker.joaoapps.com/userguide/en/cpu.html
注意:CPUの制御はCPUの加熱などによりハードウェアの破損につながる恐れがあります。Taskerが提供する全ての機能は自己責任においてご利用ください。
General(概論)
On a rooted device (only) Tasker is able to control the CPU frequency of an Android device to some extent. This is usually done either to save battery or make the device more responsive depending on the circumstances.
The relevant control action is CPU in the Misc category. You can monitor the current state with the variables %CPUFREQ and %CPUGOV.
There are two aspects which can be controlled, the Frequency Range and the CPU Governor. You will need to experiment with combinations of these to achieve the best results.
https://tasker.joaoapps.com/userguide/en/cpu.html
ルート化された端末に置いてのみTaskerはCPU周波数をある程度コントロールすることができます。これは通常端末の使用状況に応じてバッテリーの節約や応答性の向上の目的で行われます。
関連するコントロールアクションはその他カテゴリー内のCPUアクションです(※訳者注:現在はシステムカテゴリー)。現在の状態は%CPUFREQおよび%CPUGOV変数で確認できます。
コントロール可能な項目は二つあり、周波数帯とCPUガバナーです。最適なパフォーマンスのためにはこれらの組み合わせを色々試してみる必要があります。
Frequency Range(周波数帯)
You can set the minimum and maximum frequency which the CPU is allowed to run at. Only certain frequencies are valid, depending on the CPU (click on the magnifying glass button to select a valid value).
The maximum frequency is probably initially set lower than the maximum frequency that the CPU can actually handle. If that is the case, you should be very cautious about setting it higher. Tasker will warn you the first time you try to do configure an action to do that, assuming you have not been using other apps to change the maximum frequency limit.
https://tasker.joaoapps.com/userguide/en/cpu.html
CPUの駆動周波数の最小値と最大値を設定出来ます。CPUごとに特定の周波数のみが設定可能です(適切な値を選択するには虫眼鏡アイコンをタップします)。
最大周波数は初期状態ではCPUの最高周波数よりも低く設定されていることがあります。このような場合、周波数を上げるのは注意した方が良いです。他のアプリを使って周波数の上限が変更されていないとう前提においてTaskerはこの種のアクションの初回使用時に警告を発します。
CPU Governor(CPUガバナー)
The active governor decides what the CPU frequency should be set to at a particular time, within the frequency range you have set. Each has it’s own unique strategy. Here are the most common governors:
- Performance
keeps the CPU frequency always at the maximum. Most power-hungry, most responsive.- Powersave
keeps the CPU frequency always at the minimum. Least power-hungry, least responsive.- Ondemand
when the CPU is needed, immediately sets it to maximum frequency. Slowly reduces the frequency back down to the minimum as time passes. Responsive, reasonable power usage.- Interactive
like Ondemand, but more responsive with slightly more battery usage.- Conservative
when the CPU load is needed, slowly increases the frequency to maximum. When the CPU is no longer needed, immediately drops back to the minimum. Less power-usage than Ondemand or Interactive, less responsive.Not all governors are available on all ROM versions. Your device may also have a governor not described here. You can still set that governor with Tasker.
https://tasker.joaoapps.com/userguide/en/cpu.html
アクティブなガバナーがその時々のCPU周波数をあなたが設定した範囲内で設定します。ガバナーごとに独自の制御の仕方があります。以下に代表的なガバナーを挙げます。
- Performance(効率重視)
常に最高の周波数を選択します。応答性は最も良くなる反面電力消費は最も大きくなります。 - Powersave(省電力)
常に最低の周波数を選択します。電力消費は最小に抑えられますが、応答性は悪くなります。 - Ondemand(必要に応じて)
必要なときには瞬時に最大周波数が選択されその後時間とともに徐々に最低周波数まで下がります。 - Interactive(状況に応じて)
Ondemandに似ていますが、より応答性が高い分電力消費も増えます。 - Conservative(保守的)
CPU負荷が必要なときに最高周波数まで徐々に上げていきます。必要がなくなると速やかに最低周波数に戻ります。OndemandやInteractiveよりも電力消費は少なく応答性も劣ります。
ROMのバージョンによっては全てのガバナーが使用可能なわけではありません。端末によってはここに挙げた以外のガバナーを採用している場合も考えられます。その場合でもTaskerによってガバナーの設定が可能です。
CPU Action Not Available(CPUアクションが使えない場合)
Common problems are:
https://tasker.joaoapps.com/userguide/en/cpu.html
- root not recognized
Tasker decides that a device is rooted if/system/app/Superuser.apkis present andsuis present in one of the directories of $PATH- no available frequencies
Tasker needs to know what frequencies it can set the CPU to. It looks for the files/sys/devices/system/cpu/cpuX/cpufreq/scaling_available_frequencies, /sys/devices/system/cpu/cpuX/cpufreq/stats/time_in_stateand/system/etc/scaling_available_frequencies(in that order). If you know what your CPU frequencies are, you could write them (space-separated, in numerical order) to the first (any number of CPUs) or last (1 CPU only) of those files.
一般的な問題点を挙げます。
- ルート化が認識されない
Taskerはルート化されているかどうかを /system/app/Superuser.apk が存在するかどうかに加え、$PATHディレクトリのいずれかに su が存在するかによって判断します。 - 周波数が設定出来ない
TaskerはCPU周波数としてどのような値を設定出来るかを知る必要があります。これは/sys/devices/system/cpu/cpuX/cpufreq/scaling_available_frequencies、/sys/devices/system/cpu/cpuX/cpufreq/stats/time_in_state、/system/etc/scaling_available_frequenciesの順で調べられます。もし端末のCPU周波数が分かっている場合にはこれらのファイルの冒頭(CPUの数によらず)または最後(CPUが一つの場合)にこれらの値を(コンマ区切り、数値順で)書き込むことができます。