#! /bin/sh

file=/sys/class/drm/card0

# Settings manual
echo "manual" > $file/device/power_dpm_force_performance_level

# Settings VRAM P-state to 1000Mhz
# 0: 214Mhz 
# 1: 551Mhz 
# 2: 734Mhz 
# 3: 1000Mhz 
# 4: 1046Mhz 
# 5: 1098Mhz 
# 6: 1124Mhz 
# 7: 1183Mhz 
echo "1 2 3" >  $file/device/pp_dpm_mclk

# Allow only 3 iGPU P-states:
# 0   BOOTUP_DEFAULT
# 1   3D_FULL_SCREEN 
# 2   POWER_SAVING
# 3   VIDEO
# 4   VR
# 5   COMPUTE
# 6   CUSTOM
echo "3" >  $file/device/pp_power_profile_mode
