Cambiar la frecuencia de la CPU en Linux

Foro sobre GNU Linux
Responder
Guillermo
Site Admin
Mensajes: 129
Registrado: 13 May 2023, 00:32
Ubicación: Valencia - España
Contactar:

Cambiar la frecuencia de la CPU en Linux

Mensaje por Guillermo »

1.- Ver la frecuencia actual:

Código: Seleccionar todo

$ sudo cpupower frequency-info --governors
2.- Si el modo está en powersave, cambiarlo a modo conservative or ondemmand

Código: Seleccionar todo

$ sudo modprobe cpufreq_conservative
3.- Comprobar si se ha cargado la configuración:

Código: Seleccionar todo

lsmod | grep cpufreq
4.- Ver si está disponible:

Código: Seleccionar todo

sudo cpupower frequency-info --governors
5.- Si sigue en estado conservative probar esto:

Código: Seleccionar todo

sudo cpupower frequency-set -g conservative
Si falla, seguir leyendo el artículo de esta fuente:
To change back to the ACPI driver, reboot and set the kernel arg

Código: Seleccionar todo

intel_pstate=disable
Then execute

Código: Seleccionar todo

modprobe acpi-cpufreq
and you should have the ondemand governor available.

You can make the changes permanent by editing

Código: Seleccionar todo

/etc/default/grub
and adding

Código: Seleccionar todo

GRUB_CMDLINE_LINUX_DEFAULT="intel_pstate=disable"
And then updating

Código: Seleccionar todo

 grub.cfg
ala

Código: Seleccionar todo

grub-mkconfig -o /boot/grub/grub.cfg
Follow the instructions for Arch kernel module loading and add the acpi-cpufreq module.
Fuente: https://unix.stackexchange.com/question ... nservative
gbeltran
Mensajes: 254
Registrado: 13 May 2023, 01:15
Ubicación: Valencia - España
Contactar:

Re: Cambiar la frecuencia de la CPU en Linux

Mensaje por gbeltran »

Ver esto también: https://wiki.archlinux.org/title/Kernel_module
Modules do not load

In case a specific module does not load and the boot log (accessible by running journalctl -b as root) says that the module is blacklisted, but the directory /etc/modprobe.d/ does not show a corresponding entry, check another modprobe source directory at /usr/lib/modprobe.d/ for blacklisting entries.

A module will not be loaded if the "vermagic" string contained within the kernel module does not match the value of the currently running kernel. If it is known that the module is compatible with the current running kernel the "vermagic" check can be ignored with modprobe --force-vermagic.
Warning: Ignoring the version checks for a kernel module can cause a kernel to crash or a system to exhibit undefined behavior due to incompatibility. Use --force-vermagic only with the utmost caution.
Responder