<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>54124</bug_id>
          
          <creation_ts>2025-05-04 10:24:15 +0300</creation_ts>
          <short_desc>не стартует управление частотой ЦП при загрузке simply и ws p11</short_desc>
          <delta_ts>2025-10-15 22:30:45 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Branch p11</product>
          <component>cpufreq-simple</component>
          <version>unspecified</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander">analarc</reporter>
          <assigned_to name="Mikhail Efremov">sem</assigned_to>
          <cc>Sash0k.V</cc>
    
    <cc>UB04_xd</cc>
    
    <cc>aklemator</cc>
    
    <cc>antohami</cc>
    
    <cc>maksimenkovda</cc>
    
    <cc>nickstogramm</cc>
    
    <cc>plautskiy</cc>
    
    <cc>sem</cc>
          
          <qa_contact name="qa-p11@altlinux.org">qa-p11</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>263982</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander">analarc</who>
    <bug_when>2025-05-04 10:24:15 +0300</bug_when>
    <thetext>На simply 10.4 в журнале загрузки
---------------------------------
 systemd[1]: Starting Load kernel modules needed to enable cpufreq scaling...
 cpufreq-simple[2480]: Setting cpu: 0
 cpufreq-simple[2480]: Setting cpu: 1
 cpufreq-simple[2480]: Setting cpu: 2
 * * *
 cpufreq-simple[2480]: Setting cpu: 11
 cpufreq-simple[2634]: Tune up cpufreq:  succeeded
 cpufreq-simple[2468]: Tune up cpufreq:  [ DONE ]
 systemd[1]: Finished Load kernel modules needed to enable cpufreq scaling.

Для simply 10.910 и Workstation Gnome p11 одинаково
---------------------------------------------------
 systemd[1]: Starting cpufreq-simple.service - Load kernel modules needed to enable cpufreq scaling...
 cpufreq-simple[1105]: Setting cpu: 0
 cpufreq-simple[1105]: Error setting new values. Common errors:
 cpufreq-simple[1105]: - Do you have proper administration rights? (super-user?)
 cpufreq-simple[1086]: Tune up cpufreq:
 cpufreq-simple[1105]: Setting cpu: 0
 cpufreq-simple[1105]: Error setting new values. Common errors:
 cpufreq-simple[1105]: - Do you have proper administration rights? (super-user?)
 cpufreq-simple[1105]: - Is the governor you requested available and modprobed?
 cpufreq-simple[1105]: - Trying to set an invalid policy?
 cpufreq-simple[1105]: - Trying to set a specific frequency, but userspace governor is not available,
 cpufreq-simple[1105]:    for example because of hardware which cannot be set to a specific frequency
 cpufreq-simple[1105]:    or because the userspace governor isn&apos;t loaded?
 cpufreq-simple[1105]: - Is the governor you requested available and modprobed?
 cpufreq-simple[1105]: - Trying to set an invalid policy?
 cpufreq-simple[1105]: - Trying to set a specific frequency, but userspace governor is not available,
 cpufreq-simple[1105]:    for example because of hardware which cannot be set to a specific frequency
 cpufreq-simple[1105]:    or because the userspace governor isn&apos;t loaded?
 cpufreq-simple[1125]: Tune up cpufreq:  failed
 cpufreq-simple[1086]: [FAILED]
 systemd[1]: cpufreq-simple.service: Main process exited, code=exited, status=237/KEYRING
 systemd[1]: cpufreq-simple.service: Failed with result &apos;exit-code&apos;.
 systemd[1]: Failed to start cpufreq-simple.service - Load kernel modules needed to enable cpufreq scaling.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>263983</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander">analarc</who>
    <bug_when>2025-05-04 10:24:53 +0300</bug_when>
    <thetext>В догонку: железо то же самое.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>264094</commentid>
    <comment_count>2</comment_count>
    <who name="Mikhail Efremov">sem</who>
    <bug_when>2025-05-05 16:53:53 +0300</bug_when>
    <thetext>Покажите вывод
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>264109</commentid>
    <comment_count>3</comment_count>
    <who name="Alexander">analarc</who>
    <bug_when>2025-05-05 18:49:16 +0300</bug_when>
    <thetext>$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver
amd-pstate-epp
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
performance powersave</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>264111</commentid>
    <comment_count>4</comment_count>
    <who name="Alexander">analarc</who>
    <bug_when>2025-05-05 19:02:39 +0300</bug_when>
    <thetext>на двух других машинах simply 10.4 сервис стартует,
а вывод соответственно 

  acpi-cpufreq
и
  conservative ondemand userspace powersave performance schedutil</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>264178</commentid>
    <comment_count>5</comment_count>
    <who name="Mikhail Efremov">sem</who>
    <bug_when>2025-05-06 14:19:54 +0300</bug_when>
    <thetext>В качестве workaround можно явно установить переменные GOVERNOR_AC_ON/GOVERNOR_AC_OFF в /etc/sysconfig/cpufreq-simple в значения &quot;performance&quot; или &quot;powersave&quot;. По аналогии с драйвером intel_pstate наверное &quot;powersave&quot; предпочтительнее. Впрочем, почитаю еще документацию и исправлю скрипты.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>269447</commentid>
    <comment_count>6</comment_count>
    <who name="kroni">plautskiy</who>
    <bug_when>2025-07-19 14:03:07 +0300</bug_when>
    <thetext>Подтвержаю также у себя такое поведение:

июл 19 13:29:38 alt-station systemd[1]: Failed to start cpufreq-simple.service - Load kernel modules needed to enable cpufreq scaling.

$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver
amd-pstate-epp

$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
performance powersave

$ inxi -c
CPU: 8-core AMD Ryzen 7 9700X (-MT MCP-) speed/min/max: 3464/600/5581 MHz

$ cat /etc/altlinux-release
ALT Workstation K 11.1 (Nemorosa)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>270115</commentid>
    <comment_count>7</comment_count>
    <who name="UB04">UB04_xd</who>
    <bug_when>2025-07-30 15:26:35 +0300</bug_when>
    <thetext>Столкнулся с такой же проблемой на своей рабочей станции 11 с Гномом на борту. Не смог понять, как пофиксить, решил рубануть с плеча и установил сначала стартеркит с гномом, а потом стартеркит с синнамоном, но везде была одна проблема и полное зависание системы после пары часов использования.

Установил cpufrequtils. Потом вписал cpufreq-set -g performance, всё починилось.

amd-pstate-epp
performance powersave
CPU: 6-core AMD Ryzen 5 7600 (-MT MCP-) speed/min/max: 3308/545/5170 MHz
ALT p11 Starterkit (Salvia)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>270158</commentid>
    <comment_count>8</comment_count>
    <who name="Alexander">analarc</who>
    <bug_when>2025-07-31 09:24:21 +0300</bug_when>
    <thetext>Из описания пакета cpufrequtils:
     These tools are obsoleted use cpupower instead.
  Пишут, что пакет устарел. Предлагают использовать cpupower.

Установка cpufrequtils на WS-K тянет за собой удаление cpufreq-simple и cpupower, переустановку libcpufreq.

Тут ведь дело не в том, что пакет не стартует, а он нужен. Нет, запустить пакет можно.
Просто очень похоже, что это срабатывает то обрывок кода старой версии, который не вычистили из новой. Мне всё равно, какой пакет будет работать. Но в журнале, на мой взгляд, должно быть чисто.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>270160</commentid>
    <comment_count>9</comment_count>
    <who name="kroni">plautskiy</who>
    <bug_when>2025-07-31 09:46:04 +0300</bug_when>
    <thetext>Да, при первом обновлении cpufrequtils заменяются cpupower:
The following packages will be REPLACED:
cpufrequtils  (by  cpupower)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>272388</commentid>
    <comment_count>10</comment_count>
    <who name="Mikhail Efremov">sem</who>
    <bug_when>2025-09-12 17:03:19 +0300</bug_when>
    <thetext>*** Bug 55577 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>272687</commentid>
    <comment_count>11</comment_count>
    <who name="Александр">Sash0k.V</who>
    <bug_when>2025-09-17 21:33:29 +0300</bug_when>
    <thetext>Столкнулся с этой же проблемой. 
Новый чистый ноутбук - тоже amd, с нуля установленная Simply 11. Поначалу всё кажется работало, но теперь система наглухо зависает под нагрузкой (dist-upgrade делал, возможно это снесло нужный пакет)

$ cat /etc/altlinux-release 
Simply Linux 11.0  (Giuseppe)

$ inxi -c
CPU: 8-core AMD Ryzen 7 5700U with Radeon Graphics (-MT MCP-)
speed/min/max: 462/400/4372 MHz Kernel: 6.12.41-6.12-alt1 x86_64 Up: 1m
Mem: 1.46/30.73 GiB (4.7%) Storage: 476.94 GiB (13.5% used) Procs: 372

$ systemctl list-units --failed
  UNIT                   LOAD   ACTIVE SUB    DESCRIPTION                      &gt;
● cpufreq-simple.service loaded failed failed Load kernel modules eeded to enable cpufreq scaling</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>272692</commentid>
    <comment_count>12</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2025-09-17 22:40:58 +0300</bug_when>
    <thetext>В современных ноутбуках стоят очень горячие камни и система охлаждения на них не рассчитанная. cpufreq, похоже, тут уже бессилен. Управление происходит через power-profiles-daemon. В GNOME можно менять режим питания в графике. Ставьте сбалансированный или энергосберегающий режимы, чтобы ноутбук не перегревался.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>272751</commentid>
    <comment_count>13</comment_count>
    <who name="Mikhail Efremov">sem</who>
    <bug_when>2025-09-18 21:09:40 +0300</bug_when>
    <thetext>Если нужно управление через gui, то да, power-profiles-daemon неплохой вариант. А так cpufreq-simple делает примерно то же самое, только это скрипты с конфигом, а не демон.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>272759</commentid>
    <comment_count>14</comment_count>
    <who name="Alexander">analarc</who>
    <bug_when>2025-09-19 08:48:46 +0300</bug_when>
    <thetext>(Ответ для Антон Мидюков на комментарий #12)
&gt; В современных ноутбуках стоят очень горячие камни и система охлаждения на
&gt; них не рассчитанная. cpufreq, похоже, тут уже бессилен. 

Мне кажется, бессилие cpufreq не в в том, что он не рассчитан на какое то железо.
Он не стартует без cpufrequtils, который для всех p11 по умолчанию не установлен.
Видимо, его исключили, предполагая переход на cpupower.
Но что то не допилили и не перешли.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>273324</commentid>
    <comment_count>15</comment_count>
    <who name="John Titor">nickstogramm</who>
    <bug_when>2025-09-27 01:38:47 +0300</bug_when>
    <thetext>AMD Ryzen 5 6600H, AMD 100-000000964-50_Y - на обоих системах решается одинаково, но хочется видеть решение, которое будет правильным без принудительной смены cpupower на cpufrequtils

Решается установкой cpufrequtils даже без выбора профиля производительности. Проблем не обнаружено с ошибкой и без, но не хочется видеть всё же ошибку при старте и выключении системы.
--------
сен 26 21:15:46 siren-mbb systemd[1]: Starting cpufreq-simple.service - Load kernel modules needed to enable cpufreq scaling...
сен 26 21:15:46 siren-mbb cpufreq-simple[1072]: Setting cpu: 0
сен 26 21:15:46 siren-mbb cpufreq-simple[1072]: Error setting new values. Common errors:
сен 26 21:15:46 siren-mbb cpufreq-simple[1055]: Tune up cpufreq:
сен 26 21:15:46 siren-mbb cpufreq-simple[1072]: Setting cpu: 0
сен 26 21:15:46 siren-mbb cpufreq-simple[1072]: Error setting new values. Common errors:
сен 26 21:15:46 siren-mbb cpufreq-simple[1072]: - Do you have proper administration rights? (super-user?)
сен 26 21:15:46 siren-mbb cpufreq-simple[1072]: - Is the governor you requested available and modprobed?
сен 26 21:15:46 siren-mbb cpufreq-simple[1072]: - Trying to set an invalid policy?
сен 26 21:15:46 siren-mbb cpufreq-simple[1072]: - Trying to set a specific frequency, but userspace governor is not available,
сен 26 21:15:46 siren-mbb cpufreq-simple[1072]:    for example because of hardware which cannot be set to a specific frequency
сен 26 21:15:46 siren-mbb cpufreq-simple[1072]:    or because the userspace governor isn&apos;t loaded?
сен 26 21:15:46 siren-mbb cpufreq-simple[1072]: - Do you have proper administration rights? (super-user?)
сен 26 21:15:46 siren-mbb cpufreq-simple[1072]: - Is the governor you requested available and modprobed?
сен 26 21:15:46 siren-mbb cpufreq-simple[1072]: - Trying to set an invalid policy?
сен 26 21:15:46 siren-mbb cpufreq-simple[1072]: - Trying to set a specific frequency, but userspace governor is not available,
сен 26 21:15:46 siren-mbb cpufreq-simple[1072]:    for example because of hardware which cannot be set to a specific frequency
сен 26 21:15:46 siren-mbb cpufreq-simple[1072]:    or because the userspace governor isn&apos;t loaded?
сен 26 21:15:46 siren-mbb cpufreq-simple[1055]: [FAILED]
сен 26 21:15:46 siren-mbb systemd[1]: cpufreq-simple.service: Main process exited, code=exited, status=237/KEYRING
сен 26 21:15:46 siren-mbb systemd[1]: cpufreq-simple.service: Failed with result &apos;exit-code&apos;.
сен 26 21:15:46 siren-mbb systemd[1]: Failed to start cpufreq-simple.service - Load kernel modules needed to enable cpufreq scaling.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>273589</commentid>
    <comment_count>16</comment_count>
    <who name="Mikhail Efremov">sem</who>
    <bug_when>2025-09-30 19:56:44 +0300</bug_when>
    <thetext>https://packages.altlinux.org/ru/tasks/394988/

Когда-нибудь доедет до p11.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274607</commentid>
    <comment_count>17</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2025-10-15 15:39:52 +0300</bug_when>
    <thetext>cpufreq-simple-1.1.0-alt1 -&gt; p11:

Thu Sep 18 2025 Mikhail Efremov &lt;sem@altlinux&gt; 1.1.0-alt1
- cpufreq-simple: Show available and current EPP.
- cpufreq-simple: Show available governors.
- cpufreq-simple: Add energy performance policy support.
- cpufreq-simple: Refactor setting governor code.
Mon Sep 15 2025 Mikhail Efremov &lt;sem@altlinux&gt; 1.0.0-alt1
- cpufreq-simple: Don&apos;t report an error if driver not detected.
- Don&apos;t use rpm-build-licenses.
- cpufreq-simple: Drop EXTRA_MODULES variable support.
- cpufreq-simple: Always try to load cpufreq module.
- cpufreq-simple: Add status command.
- cpufreq-simple: Support amd-pstate-epp driver (closes: #54124).
- cpufreq-simple: Use on_ac_power to get power state.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274661</commentid>
    <comment_count>18</comment_count>
    <who name="Alexander">analarc</who>
    <bug_when>2025-10-15 22:30:45 +0300</bug_when>
    <thetext>поставил из задачи
# epm upgrade 394988

после перезагрузки

$ journalctl -b | grep -i cpufreq
окт 15 22:20:53 
systemd[1]: Starting cpufreq-simple.service - Setup cpufreq scaling...
cpufreq-simple[1149]: Setting cpu: 0
cpufreq-simple[1149]: Setting cpu: 1
cpufreq-simple[1149]: Setting cpu: 2
cpufreq-simple[1149]: Setting cpu: 3
cpufreq-simple[1149]: Setting cpu: 4
cpufreq-simple[1149]: Setting cpu: 5
cpufreq-simple[1149]: Setting cpu: 6
cpufreq-simple[1149]: Setting cpu: 7
cpufreq-simple[1149]: Setting cpu: 8
cpufreq-simple[1149]: Setting cpu: 9
cpufreq-simple[1149]: Setting cpu: 10
cpufreq-simple[1149]: Setting cpu: 11
systemd[1]: Finished cpufreq-simple.service - Setup cpufreq scaling.

$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver
amd-pstate-epp
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
performance powersave
$ inxi -C
CPU:
  Info: 6-core model: AMD Ryzen 5 8600G w/ Radeon 760M Graphics bits: 64
    type: MT MCP cache: L2: 6 MiB
  Speed (MHz): avg: 2478 min/max: 400/5073 cores: 1: 2379 2: 2379 3: 3576
    4: 2379 5: 2379 6: 2379 7: 2379 8: 2379 9: 2379 10: 2379 11: 2379 12: 2379

КРАСОТА!
СПАСИБО!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>