ShadowBlip / HandyPT

Handheld Power Tools (Handy Pot) provides fine performance tuning for a variety of handheld devices.
GNU General Public License v3.0
33 stars 1 forks source link

Intel Support #4

Closed pastaq closed 2 years ago

pastaq commented 2 years ago

Information is needed to write backend functionality for Intel handhelds. The following commands should provide the data to make backend calls for testing sudo dmesg | grep locked if anything doesn't work may show if RAPL is locked by BIOS cat /sys/devices/virtual/powercap/intel-rapl/intel-rapl:0/enabled is RAPL config enabled? echo 1 | sudo tee /sys/devices/virtual/powercap/intel-rapl/intel-rapl:0/enabled can it be enabled?

Name/function of each constraint: cat /sys/devices/virtual/powercap/intel-rapl/intel-rapl:0/constraint_0_name cat /sys/devices/virtual/powercap/intel-rapl/intel-rapl:0/constraint_1_name cat /sys/devices/virtual/powercap/intel-rapl/intel-rapl:0/constraint_2_name

Default values: cat /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_power_limit_uw cat /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_power_limit_uw cat /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_2_power_limit_uw

Can we edit the contsraints? echo "8000000" | sudo tee /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_power_limit_uw set to 8W

if there is anything in /sys/devices/virtual/powercap/intel-rapl related to MMIO, newer chips use that and it might be a little different. if it does it probably has both. its not well documented though so experimenting will be needed.

ruineka commented 2 years ago

PXL_20220721_053553028~2.jpg