Получить текущею информацию для CPU…
$ sudo zypper in cpupower
Usage: cpupower [-d|—debug] [-c|—cpu cpulist ] []
Supported commands are:
frequency-info
frequency-set
idle-info
idle-set
set
info
monitor
help
Not all commands can make use of the -c cpulist option.
Use ‘cpupower help ‘ for getting help for above commands.
$ cpupower frequency-info
analyzing CPU 0:
driver: intel_pstate
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 0.97 ms.
hardware limits: 1.60 GHz — 5.90 GHz
available cpufreq governors: performance, powersave
current policy: frequency should be within 1.60 GHz and 5.90 GHz.
The governor «powersave» may decide which speed to use within this range.
current CPU frequency is 1.70 GHz (asserted by call to hardware).
boost state support:
Supported: yes
Active: yes
5900 MHz max turbo 4 active cores
5900 MHz max turbo 3 active cores
5900 MHz max turbo 2 active cores
5900 MHz max turbo 1 active cores
***
Доступны режимы: performance, powersave.
Максимальное время задержки перехода: 0.97 ms.
Лимиты для CPU: 1.60 GHz — 5.90 GHz.
Текущия политика : частота должна быть в пределах 1.60 GHz and 5.90 GHz.
***
Установка режима энергосбережения…
$ cpupower —cpu 0-n frequency-set -g powersave
Установка режима производительность…
$ cpupower —cpu 0-n frequency-set -g performance
***
Вывод в Conky…
${color1}Текущий режим CPU: ${color #F9F6C3} ${exec cat/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor}
Автор: AugustuS Karro
Дата публикации: 2015-04-22T15:54:00.000+07:00