Ubuntu 26 + Ryzen 5 4500 + amd_pstate: il profilo "Prestazioni" di GNOME non si attiva e genera un errore con power-profiles-daemon

Titolo

Ubuntu 26 + Ryzen 5 4500 + amd_pstate: il profilo “Prestazioni” di GNOME non si attiva e genera un errore con power-profiles-daemon

Ciao a tutti,

Sto riscontrando un problema su Ubuntu 26 e vorrei sapere se qualcuno ha già avuto questa esperienza oppure ha trovato una soluzione.

Il mio ambiente:

  • Ubuntu: 26
  • Kernel: 7.0.0-27-generic
  • CPU: AMD Ryzen 5 4500
  • Driver di gestione energetica: amd_pstate
  • Modalità di amd_pstate: active
  • Ambiente grafico: GNOME standard di Ubuntu

Nella schermata delle impostazioni di alimentazione di GNOME vengono visualizzati correttamente i tre profili:

  • Prestazioni
  • Bilanciato
  • Risparmio energetico

Tuttavia, quando faccio clic su “Prestazioni”, non succede assolutamente nulla. Il sistema rimane in modalità “Bilanciato” e l’interfaccia grafica non cambia il profilo selezionato.

Dal terminale ho eseguito:

powerprofilesctl list

Risultato:

performance:
CpuDriver: amd_pstate
Degraded: no

* balanced:
  CpuDriver: amd_pstate
  PlatformDriver: placeholder

power-saver:
CpuDriver: amd_pstate
PlatformDriver: placeholder

Quando ho provato ad attivare manualmente il profilo:

powerprofilesctl set performance

Ho ottenuto il seguente errore:

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)

Ho anche verificato il file boost:

cat /sys/devices/system/cpu/cpufreq/policy0/boost

Il risultato è stato:

0

Successivamente ho provato ad abilitarlo manualmente:

echo 1 | sudo tee /sys/devices/system/cpu/cpufreq/policy0/boost

Risultato:

1
/sys/devices/system/cpu/cpufreq/policy0/boost: Invalid argument (os error 22)

Ho inoltre verificato lo stato di amd_pstate:

cat /sys/devices/system/cpu/amd_pstate/status

Il risultato è stato:

active

Infine, la frequenza massima riportata da:

cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_max_freq

è:

4211010

Sembra quindi che il boost della CPU esista effettivamente e che amd_pstate funzioni correttamente, ma che power-profiles-daemon non riesca ad attivare il profilo “Prestazioni” perché fallisce durante la scrittura nel file boost.

Le mie domande sono quindi:

  • Qualcuno che utilizza un Ryzen desktop con amd_pstate in modalità active ha già riscontrato questo problema?
  • Si tratta di un bug noto di power-profiles-daemon, del kernel Linux 7.0 oppure di amd_pstate?
  • Esiste un modo per ripristinare il corretto funzionamento del profilo “Prestazioni” nell’interfaccia grafica di GNOME?
  • Esiste qualche impostazione del BIOS/UEFI relativa a Precision Boost o CPPC che potrebbe influenzare questo comportamento?

Sono naturalmente disponibile a eseguire ulteriori test se questo può aiutare nella diagnosi del problema.

Grazie in anticipo per il vostro aiuto!

Domanda stupida: hai già provato a riavviare? Potrebbe essere che si è aggiornato il kernel e qualcosa deve essere ricaricato/reinizializzato.

Ho notato che anch’io ho una configurazione simile alla tua, sebbene su manjaro.

[amreo@amreo-manjarofw-pc ~]$ powerprofilesctl list
  performance:
    CpuDriver:	amd_pstate
    PlatformDriver:	platform_profile
    Degraded:   no

* balanced:
    CpuDriver:	amd_pstate
    PlatformDriver:	platform_profile

  power-saver:
    CpuDriver:	amd_pstate
    PlatformDriver:	platform_profile

(però mi funziona il cambio di profilo)

Io con balanced ho 1 ma vabbé…

Hai provato a vedere questa pagina? amd-pstate CPU Performance Scaling Driver — The Linux Kernel documentation

Secondo me amd_pstate. Hai provato ad aggiornare i pacchetti?

Mhm hai provato a vedere se c’è qualcosa tra i parametri relativi alla frequenza cpu.

Mhm prova ad eseguire i comandi e confrontare con il mio output:

[amreo@amreo-manjarofw-pc ~]$ cat /sys/devices/system/cpu/cpufreq/policy0/amd_pstate_hw_prefcore 
enabled
[amreo@amreo-manjarofw-pc ~]$ cat /sys/devices/system/cpu/cpufreq/policy0/energy_performance_available_preferences
default performance balance_performance balance_power power 
[amreo@amreo-manjarofw-pc ~]$ cat /sys/devices/system/cpu/cpufreq/policy0/energy_performance_preference
balance_performance
[amreo@amreo-manjarofw-pc ~]$ cat /sys/devices/system/cpu/cpufreq/policy0/scaling_driver 
amd-pstate-epp
[amreo@amreo-manjarofw-pc ~]$ cat /sys/devices/system/cpu/cpufreq/policy0/scaling_governor 
powersave
[amreo@amreo-manjarofw-pc ~]$ cpupower frequency-info
analisi della CPU 12:
  driver: amd-pstate-epp
  CPU che operano alla stessa frequenza hardware: 12
  CPU che è necessario siano coordinate dal software: 12
  energy performance preference: balance_performance
  limiti hardware: 400 MHz - 5.14 GHz
  gestori disponibili: performance powersave
  gestore attuale: la frequenza deve mantenersi tra 1.10 GHz e 5.14 GHz.
                   Il gestore "powersave" può decidere quale velocità usare
                  in questo intervallo.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 2.70 GHz (asserted by call to kernel)
  boost state support:
    Supported: yes
    Active: yes
  amd-pstate limits:
    Highest Performance: 226. Maximum Frequency: 5.14 GHz.
    Nominal Performance: 145. Nominal Frequency: 3.80 GHz.
    Lowest Non-linear Performance: 42. Lowest Non-linear Frequency: 1.10 GHz.
    Lowest Performance: 16. Lowest Frequency: 400 MHz.
    Preferred Core Support: 1. Preferred Core Ranking: 226.

Potrebbe essere che boost non sia supportato