Skip to content

Commit

Permalink
scripts: Workaround GPU frequency lock for Exynos
Browse files Browse the repository at this point in the history
* xxx.mali/power_policy must be always_on if we want to lock GPU frequency

Signed-off-by: Rem01Gaming <[email protected]>
  • Loading branch information
Rem01Gaming committed Oct 6, 2024
1 parent 3188311 commit ca671a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scripts/encore-normal
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ elif [ $soc -eq 3 ]; then
apply $max_freq $gpu_path/gpu_max_clock
fi

mali_sysfs=$(find /sys/devices/platform/ -iname "*.mali" -print -quit 2>/dev/null)
apply always_on $mali_sysfs/power_policy

# Unisoc
elif [ $soc -eq 4 ]; then
# GPU Frequency
Expand Down
3 changes: 3 additions & 0 deletions src/scripts/encore-performance
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ elif [ $soc -eq 3 ]; then
apply $freq $gpu_path/gpu_max_clock
fi

mali_sysfs=$(find /sys/devices/platform/ -iname "*.mali" -print -quit 2>/dev/null)
apply always_on $mali_sysfs/power_policy

# Unisoc
elif [ $soc -eq 4 ]; then
# GPU Frequency
Expand Down

0 comments on commit ca671a3

Please sign in to comment.