View Issue Details

IDProjectCategoryView StatusLast Update
0009784Kali LinuxKali Package Bugpublic2026-07-15 22:21
Reporterc0ldn3s5 Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
Summary0009784: power-profiles-daemon fails with amd-pstate-epp, leaving Ryzen 5600X near 4.2 GHz idle
Description

Summary

power-profiles-daemon 0.30-2 fails with amd-pstate-epp on Ryzen 5 5600X, leaving all CPUs near 4.2 GHz at idle and causing severe load temperatures

Category

Kali Package Bug

Package

power-profiles-daemon 0.30-2

Reproducibility

Always on the current boot with Linux 7.0.12-2kali1.

Description

On Kali Linux with kernel 7.0.12+kali-amd64, power-profiles-daemon cannot activate its initial amd_pstate profile. It fails while writing the per-policy boost control for policy11:

Core Failed to activate initial profile: Failed to activate CPU driver 'amd_pstate': Error writing '/sys/devices/system/cpu/cpufreq/policy11/boost': Invalid argument

The system then reports the performance profile. CPU policy is inconsistent, and all 12 logical CPUs remain near 4.2 GHz during a mostly idle sampling period. A local CPU-only Ollama workload increased CPU temperature from 70 C to 90 C in 23 seconds. A previous unmonitored workload was followed by an abrupt, unclean shutdown; this report does not claim that the daemon failure caused that shutdown.

The same machine completed a 60-second full-load test under Windows at 84 C. This is comparative context only, not proof of a Linux defect.

System

Kali kernel: Linux 7.0.12+kali-amd64 #1 SMP PREEMPT_DYNAMIC Kali 7.0.12-2kali1 (2026-06-18) x86_64
Kernel package: linux-image-7.0.12+kali-amd64 7.0.12-2kali1
libc6: 2.42-16
power-profiles-daemon: 0.30-2
CPU: AMD Ryzen 5 5600X 6-Core Processor, 6 cores / 12 threads
Motherboard: ASUSTeK TUF GAMING X570-PLUS (WI-FI), Rev X.0x
BIOS: 5044
RAM: 15 GiB
CPU driver: amd-pstate-epp
amd_pstate status: active
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-7.0.12+kali-amd64 root=UUID=375a81af-13d1-42b2-bca1-024fb3946fe6 ro usbcore.autosuspend=-1 quiet splash

Steps to reproduce

  1. Boot Kali using linux-image-7.0.12+kali-amd64 on the hardware above.
  2. Observe the power-profiles-daemon boot log.
  3. Query the active profile and every cpufreq policy's governor, EPP, minimum, maximum, and current frequency.
  4. Attempt to switch to power-saver.
  5. Observe that the D-Bus request fails on /sys/devices/system/cpu/cpufreq/policy11/boost with Invalid argument.
  6. Sample scaling_cur_freq while the system is mostly idle.
  7. Run a bounded CPU workload with temperature monitoring and stop at 90 C.

Actual result

active profile: performance
driver: amd-pstate-epp
policy0..policy10: governor=powersave, EPP=balance_performance
policy11 before profile attempt: governor=performance, EPP=performance
all policies: scaling_min_freq=1972728, scaling_max_freq=5281819

The power-saver request returns:

Failed to communicate with power-profiles-daemon: ... Failed to activate CPU driver 'amd_pstate': Error writing '/sys/devices/system/cpu/cpufreq/policy11/boost': Invalid argument (13)

After that failed request, policy11 partially changes to governor=powersave, EPP=power, while the other policies remain balance_performance; the global profile still reports performance.

Five idle samples, two seconds apart:

policy0=4193965 policy1=4198188 policy10=4199007 policy11=4199379
policy0=4196956 policy1=4200097 policy10=4199855 policy11=4199327
policy0=4199228 policy1=4199850 policy10=4200078 policy11=4199849
policy0=4196712 policy1=4199599 policy10=4190769 policy11=4199061
policy0=4198384 policy1=4199955 policy10=4200156 policy11=4200317

Monitored CPU-only workload:

00s 70 C
14s 86 C
16s 88 C
21s 89 C
23s 90 C - workload terminated automatically

Expected result

power-profiles-daemon should apply one coherent profile to all CPU policies without a failed boost write. At idle, amd-pstate-epp should allow frequencies to fall rather than holding all logical CPUs near 4.2 GHz. Switching to power-saver should succeed.

Additional information

The following older Kali kernels remain installed and can be used for an A/B test:

linux-image-6.19.14+kali-amd64 6.19.14-1+kali1
linux-image-6.17.10+kali-amd64 6.17.10-1kali1

The 6.19.14 comparison is pending. No external workload or GPU acceleration was used in the monitored reproduction; Ollama reported CPU model weights and CPU KV cache.

Attached Files
REPORT.md (4,216 bytes)   
# Summary

power-profiles-daemon 0.30-2 fails with amd-pstate-epp on Ryzen 5 5600X, leaving all CPUs near 4.2 GHz at idle and causing severe load temperatures

# Category

Kali Package Bug

# Package

power-profiles-daemon 0.30-2

# Reproducibility

Always on the current boot with Linux 7.0.12-2kali1.

# Description

On Kali Linux with kernel 7.0.12+kali-amd64, power-profiles-daemon cannot activate its initial amd_pstate profile. It fails while writing the per-policy boost control for policy11:

```text
Core Failed to activate initial profile: Failed to activate CPU driver 'amd_pstate': Error writing '/sys/devices/system/cpu/cpufreq/policy11/boost': Invalid argument
```

The system then reports the `performance` profile. CPU policy is inconsistent, and all 12 logical CPUs remain near 4.2 GHz during a mostly idle sampling period. A local CPU-only Ollama workload increased CPU temperature from 70 C to 90 C in 23 seconds. A previous unmonitored workload was followed by an abrupt, unclean shutdown; this report does not claim that the daemon failure caused that shutdown.

The same machine completed a 60-second full-load test under Windows at 84 C. This is comparative context only, not proof of a Linux defect.

# System

```text
Kali kernel: Linux 7.0.12+kali-amd64 #1 SMP PREEMPT_DYNAMIC Kali 7.0.12-2kali1 (2026-06-18) x86_64
Kernel package: linux-image-7.0.12+kali-amd64 7.0.12-2kali1
libc6: 2.42-16
power-profiles-daemon: 0.30-2
CPU: AMD Ryzen 5 5600X 6-Core Processor, 6 cores / 12 threads
Motherboard: ASUSTeK TUF GAMING X570-PLUS (WI-FI), Rev X.0x
BIOS: 5044
RAM: 15 GiB
CPU driver: amd-pstate-epp
amd_pstate status: active
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-7.0.12+kali-amd64 root=UUID=375a81af-13d1-42b2-bca1-024fb3946fe6 ro usbcore.autosuspend=-1 quiet splash
```

# Steps to reproduce

1. Boot Kali using linux-image-7.0.12+kali-amd64 on the hardware above.
2. Observe the power-profiles-daemon boot log.
3. Query the active profile and every cpufreq policy's governor, EPP, minimum, maximum, and current frequency.
4. Attempt to switch to power-saver.
5. Observe that the D-Bus request fails on `/sys/devices/system/cpu/cpufreq/policy11/boost` with `Invalid argument`.
6. Sample `scaling_cur_freq` while the system is mostly idle.
7. Run a bounded CPU workload with temperature monitoring and stop at 90 C.

# Actual result

```text
active profile: performance
driver: amd-pstate-epp
policy0..policy10: governor=powersave, EPP=balance_performance
policy11 before profile attempt: governor=performance, EPP=performance
all policies: scaling_min_freq=1972728, scaling_max_freq=5281819
```

The power-saver request returns:

```text
Failed to communicate with power-profiles-daemon: ... Failed to activate CPU driver 'amd_pstate': Error writing '/sys/devices/system/cpu/cpufreq/policy11/boost': Invalid argument (13)
```

After that failed request, policy11 partially changes to `governor=powersave, EPP=power`, while the other policies remain `balance_performance`; the global profile still reports `performance`.

Five idle samples, two seconds apart:

```text
policy0=4193965 policy1=4198188 policy10=4199007 policy11=4199379
policy0=4196956 policy1=4200097 policy10=4199855 policy11=4199327
policy0=4199228 policy1=4199850 policy10=4200078 policy11=4199849
policy0=4196712 policy1=4199599 policy10=4190769 policy11=4199061
policy0=4198384 policy1=4199955 policy10=4200156 policy11=4200317
```

Monitored CPU-only workload:

```text
00s 70 C
14s 86 C
16s 88 C
21s 89 C
23s 90 C - workload terminated automatically
```

# Expected result

power-profiles-daemon should apply one coherent profile to all CPU policies without a failed boost write. At idle, amd-pstate-epp should allow frequencies to fall rather than holding all logical CPUs near 4.2 GHz. Switching to power-saver should succeed.

# Additional information

The following older Kali kernels remain installed and can be used for an A/B test:

```text
linux-image-6.19.14+kali-amd64 6.19.14-1+kali1
linux-image-6.17.10+kali-amd64 6.17.10-1kali1
```

The 6.19.14 comparison is pending. No external workload or GPU acceleration was used in the monitored reproduction; Ollama reported CPU model weights and CPU KV cache.

REPORT.md (4,216 bytes)   
EVIDENCE.txt (1,077 bytes)   
power-profiles-daemon boot error:
Core Failed to activate initial profile: Failed to activate CPU driver 'amd_pstate': Error writing '/sys/devices/system/cpu/cpufreq/policy11/boost': Invalid argument

Power-saver request error:
Failed to communicate with power-profiles-daemon: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._g_2dio_2derror_2dquark.Code13: Failed to activate CPU driver 'amd_pstate': Error writing '/sys/devices/system/cpu/cpufreq/policy11/boost': Invalid argument (13)

Current package versions:
linux-image-7.0.12+kali-amd64 7.0.12-2kali1
power-profiles-daemon 0.30-2
libc6 2.42-16

Current policy values before successful profile activation:
scaling_min_freq=1972728
scaling_max_freq=5281819
scaling_driver=amd-pstate-epp
profile=performance

Thermal cutoff reproduction:
2026-07-15T14:01:18-05:00 cpu_c=70 mem_available_mb=8287
2026-07-15T14:01:32-05:00 cpu_c=86 mem_available_mb=4114
2026-07-15T14:01:34-05:00 cpu_c=88 mem_available_mb=3841
2026-07-15T14:01:39-05:00 cpu_c=89 mem_available_mb=3911
2026-07-15T14:01:41-05:00 cpu_c=90 mem_available_mb=3916
EVIDENCE.txt (1,077 bytes)   

Activities

c0ldn3s5

c0ldn3s5

2026-07-15 19:30

reporter   ~0021879

Impact clarification: this is not a cosmetic or minor usability issue. On this hardware, normal sustained CPU workloads are currently unsafe on Kali: a monitored CPU-only workload rose from 70 C to 90 C in 23 seconds and was terminated automatically; a prior session reached 107 C; and the machine suffered an abrupt, unclean shutdown during the same period. I can hardly use the system for routine local workloads without risking another thermal shutdown.

The power-profiles-daemon amd_pstate activation error is reproducible on every boot/profile-change attempt observed with kernel 7.0.12-2kali1. Switching to power-saver also fails at policy11/boost with Invalid argument and leaves inconsistent policy state. Windows on the same hardware completed a 60-second full-load test at a reported maximum of 84 C.

Please raise severity/priority accordingly. An A/B test against the installed Kali 6.19.14 kernel is still pending.

c0ldn3s5

c0ldn3s5

2026-07-15 19:38

reporter   ~0021880

A/B kernel update: the same failure reproduces on both installed older Kali kernels.

6.17.10+kali-amd64:

  • power-profiles-daemon: Failed to activate CPU driver amd_pstate
  • write to /sys/devices/system/cpu/cpufreq/policy11/boost fails with Invalid argument
  • policy11 remains performance/performance while policies 0-10 are powersave/balance_performance
  • most sampled policy frequencies remained near 4.2 GHz

6.19.14+kali-amd64:

  • identical policy11/boost Invalid argument at daemon startup
  • identical inconsistent policy state
  • all sampled policy frequencies were near 4.2 GHz
  • idle Tctl was approximately 68 C

Therefore this is not exclusive to kernel 7.0.12-2kali1. The common failure appears to involve power-profiles-daemon, amd-pstate-epp, firmware state, or their interaction across these Kali kernels. The earlier thermal and abrupt-shutdown impact remains unchanged.

c0ldn3s5

c0ldn3s5

2026-07-15 22:13

reporter   ~0021881

Update: root cause isolated, narrow patch developed, and tested on the affected host

Summary: power-profiles-daemon 0.30-2 performs per-policy boost writes on this AMD amd-pstate-epp system even when the global cpufreq boost control is disabled (/sys/devices/system/cpu/cpufreq/boost = 0). Linux rejects the policy11/boost write with EINVAL, aborting the profile transaction and leaving policy state inconsistent.

The proposed patch checks the global boost control. When it exists and is disabled, the daemon skips only the invalid per-policy boost writes while continuing to apply governor, EPP, and minimum-frequency settings. The patch does not enable boost or alter the global boost setting.

Validation completed:

  • Isolated test suite: 123 passed, 0 failed, 6 skipped.
  • Official Kali 2026.2 QEMU image: patched package installation, profile switching, daemon operation, and offline rollback all passed.
  • Real host: balanced, power-saver switching, clean-session balanced soak, and performance profile all completed without a daemon failure or policy inconsistency while patched.
  • Clean-session balanced soak: 40 samples over 20 minutes; 52 C minimum, 53.6 C average, 63 C maximum; 0 policy inconsistencies.
  • Performance profile with VS Code and Codex active: 36 samples over 3 minutes; 56 C minimum, 57.1 C average, 62 C maximum; average load 3.11; 0 policy inconsistencies.
  • Performance mode correctly applied scaling_governor=performance and energy_performance_preference=performance to all 12 policies.
  • Before rollback, the patched daemon successfully restored all policies to balanced (powersave / balance_performance).
  • Every host test used an armed systemd rollback service with a conservative 75 C abort threshold.
  • Rollback repeatedly restored the exact original Kali 0.30-2 package and daemon binary hash. The original policy11/boost EINVAL returned only after the unmodified package was restored.

Safety limitation / unpatched baseline:

I will not perform another sustained-load or sustained-idle comparison using the unmodified package on this physical machine. A prior unpatched run reached a user-observed 107 C and was associated with machine instability/shutdown. Repeating that condition would create an unacceptable risk to the hardware and filesystem. The monitored evidence already attached to this report independently shows the unpatched transaction failure and a rapid rise to 90 C before the workload was terminated. Therefore, thermal results from the patched trials are supporting evidence, not a controlled patched-versus-unpatched power or temperature comparison, and I am not claiming a precise thermal or power-saving percentage.

Maintainer-facing conclusion:

The patch fixes the failed AMD power-profile transaction on this host and remains stable across balanced, power-saver, clean-session, and performance-profile testing. Long-term thermal and package-power effects remain under investigation.

c0ldn3s5

c0ldn3s5

2026-07-15 22:17

reporter   ~0021882

Last edited: 2026-07-15 22:20

Attaching PROPOSED-FIX.patch referenced in note 0021881 at bottom since i cant upload patch or zips its a gist.

This patch changes the amd_pstate driver so that when the global cpufreq boost control exists and is disabled, power-profiles-daemon skips only the invalid per-policy boost writes. Governor, EPP, and minimum-frequency settings continue to be applied normally. The patch does not enable boost or modify the global boost setting.

Validation:

  • 123 tests passed, 0 failed, 6 skipped
  • Kali 2026.2 QEMU deployment and rollback passed
  • Real-host balanced, power-saver, clean-session, and performance-profile tests passed
  • No policy inconsistencies or patched-daemon failures
  • Verified rollback restored the exact original Kali 0.30-2 package and binary
c0ldn3s5

c0ldn3s5

2026-07-15 22:20

reporter   ~0021883

Last edited: 2026-07-15 22:21

love yall
https://gist.github.com/c0ldn3s5/845f65e3e645ed7737b5c7f0734bae0b

Issue History

Date Modified Username Field Change
2026-07-15 19:24 c0ldn3s5 New Issue
2026-07-15 19:24 c0ldn3s5 File Added: REPORT.md
2026-07-15 19:24 c0ldn3s5 File Added: EVIDENCE.txt
2026-07-15 19:30 c0ldn3s5 Note Added: 0021879
2026-07-15 19:38 c0ldn3s5 Note Added: 0021880
2026-07-15 22:13 c0ldn3s5 Note Added: 0021881
2026-07-15 22:17 c0ldn3s5 Note Added: 0021882
2026-07-15 22:20 c0ldn3s5 Note Added: 0021883
2026-07-15 22:20 c0ldn3s5 Note Edited: 0021882
2026-07-15 22:21 c0ldn3s5 Note Edited: 0021883