I'm experiencing an issue where the script does not function correctly if I use it immediately after powering on the computer. However, if I reboot the system once after startup, the software then works as expected.
Steps to reproduce:
- Power on the computer from a shutdown state (cold boot).
sudo setpl 23 29
- The script reports that the PL is set.
**** Current PL values from 'turbostat'
cpu0: MSR_PKG_POWER_LIMIT: 0x4380e800dd8640 (UNlocked)
cpu0: PKG Limit #1: ENabled (200.000 Watts, 28.000000 sec, clamp ENabled)
cpu0: PKG Limit #2: ENabled (29.000 Watts, 0.002441* sec, clamp ENabled)
**** Setting PL1=23000000 and PL2=29000000 in /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_*_power_limit_uw
**** PL1 and PL2 already enabled in MSR_PKG_POWER_LIMIT
**** New PL values from 'turbostat'
cpu0: MSR_PKG_POWER_LIMIT: 0x4380e800dd80b8 (UNlocked)
cpu0: PKG Limit #1: ENabled (23.000 Watts, 28.000000 sec, clamp ENabled)
cpu0: PKG Limit #2: ENabled (29.000 Watts, 0.002441* sec, clamp ENabled)
**** MCHBAR is 0xfedc0001
**** Current value of PACKAGE_RAPL_LIMIT_0_0_0_MCHBAR_PCU = 0x004380a8:0x00dd8048
**** Setting PACKAGE_RAPL_LIMIT_0_0_0_MCHBAR_PCU = 0x80000000:0x00000000
However, when I use s-tui or stressng to perform a stress test, the power drops to 15 watts after a few seconeds.
What works:
- Cold boot.
- Then reboot the computer.
sudo setpl 23 29
- Now it works as expected.
Expected behavior:
The software should work correctly on the first boot, without requiring a reboot.
Environment:
Arch Linux
Intel® Core™ Ultra 5 125U on HP Envy x360 2-in-1 Laptop 14-fc0xxx
Additional context:
As far as I know, this computer supports power limit adjustment through the official management utility on Windows. It provides 3 profiles: powersave, balance and performance, which set PL to (7, 15), (15, 29), (23, 29) respectively.
Please let me know if I can provide more debugging information (e.g., logs, verbose output, etc.) to help diagnose the issue.
I'm experiencing an issue where the script does not function correctly if I use it immediately after powering on the computer. However, if I reboot the system once after startup, the software then works as expected.
Steps to reproduce:
sudo setpl 23 29However, when I use
s-tuiorstressngto perform a stress test, the power drops to 15 watts after a few seconeds.What works:
sudo setpl 23 29Expected behavior:
The software should work correctly on the first boot, without requiring a reboot.
Environment:
Arch Linux
Intel® Core™ Ultra 5 125U on HP Envy x360 2-in-1 Laptop 14-fc0xxx
Additional context:
As far as I know, this computer supports power limit adjustment through the official management utility on Windows. It provides 3 profiles: powersave, balance and performance, which set PL to (7, 15), (15, 29), (23, 29) respectively.
Please let me know if I can provide more debugging information (e.g., logs, verbose output, etc.) to help diagnose the issue.