Lenovo laptop always on powersave

I am using Fedora 40.
I have a Lenovo laptop.

I have some inconsistencies between the scaling governor value:

cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
powersave

And the value returned by:

powerprofilesctl list
* performance:
    CpuDriver:  intel_pstate
    Degraded:   no

  balanced:
    CpuDriver:  intel_pstate
    PlatformDriver:     placeholder

  power-saver:
    CpuDriver:  intel_pstate
    PlatformDriver:     placeholder

The thing I want to do: if the laptop is one powersupply, then set power mode to performance.

I think this could be configured proper with TuneD or the prior F40 tool, but I opt to remove that and use x86_energy_perf_policy with udev. To see if that’d work:

Check frequencies:

watch --interval '0.5' grep \'cpu MHz\' '/proc/cpuinfo'

And in a separate window, force max:

sudo x86_energy_perf_policy --all 'performance' --turbo-enable '1' --force

If frequencies lock to something high, it looks good to go! I have notes on how I do the udev scripts here, but F41 did require disabling/removing tuned to stop it from overriding the udev rule.

On plug pull/connect and boot, dmesg might report an unrecognized MSR write (shows the rule working):

sudo dmesg | grep 'MSR'
Write to unrecognized MSR 0x770 by x86_energy_perf

This kernel boot parameter may also be useful:

processor.ignore_ppc=1
1 Like

Thanks a lot for all these commands.
Still checking but I saw some really nice improvements.

I see this problem as a bug. Do you have an idea on which package to fil a bug report ?