Add additional OC profiles.
This commit is contained in:
parent
7e05d244db
commit
d3a8989f30
5 changed files with 50 additions and 12 deletions
|
@ -7,12 +7,7 @@
|
|||
set_gov() {
|
||||
for POLICY in ${CPU_FREQ[@]}
|
||||
do
|
||||
if [ "${POLICY}" = "${NO_MAX_PERF}" ] && [ "$1" = "performance" ]
|
||||
then
|
||||
continue
|
||||
else
|
||||
echo $1 >${POLICY}/scaling_governor 2>/dev/null
|
||||
fi
|
||||
echo $1 >${POLICY}/scaling_governor 2>/dev/null
|
||||
done
|
||||
|
||||
for HANDLE in ${GPU_FREQ} ${DMC_FREQ}
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
# Copyright (C) 2020-present Fewtarius
|
||||
|
||||
PKG_NAME="emulationstation"
|
||||
PKG_VERSION="0444b7d"
|
||||
PKG_GIT_CLONE_BRANCH="main"
|
||||
PKG_VERSION="e45b530"
|
||||
PKG_GIT_CLONE_BRANCH="oc"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL"
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
|
||||
PKG_NAME="linux"
|
||||
PKG_URL="https://github.com/JustEnoughLinuxOS/rockchip-kernel.git"
|
||||
PKG_VERSION="263f128a1"
|
||||
PKG_GIT_CLONE_BRANCH="main"
|
||||
PKG_VERSION="ef57a0424"
|
||||
PKG_GIT_CLONE_BRANCH="oc"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://www.kernel.org"
|
||||
PKG_DEPENDS_HOST="ccache:host openssl:host"
|
||||
|
|
|
@ -23,12 +23,14 @@ then
|
|||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
||||
if [ ! "${COOLING_PROFILE}" = "custom" ]
|
||||
then
|
||||
if [ "${COOLING_PROFILE}" = "aggressive" ]
|
||||
then
|
||||
SPEEDS=(255)
|
||||
TEMPS=(0)
|
||||
SPEEDS=(255 225 195)
|
||||
TEMPS=(55000 45000 0)
|
||||
elif [ "${COOLING_PROFILE}" = "moderate" ]
|
||||
then
|
||||
SPEEDS=(255 190 125 85)
|
||||
|
|
|
@ -12,10 +12,14 @@ else
|
|||
fi
|
||||
|
||||
### Default clocks when not using OC.
|
||||
LITTLE_CORES="1416000"
|
||||
BIG_CORES="1800000"
|
||||
GPU="800000000"
|
||||
DRAM="856000000"
|
||||
|
||||
freqset() {
|
||||
echo "${LITTLE_CORES}" >${CPU_FREQ[0]}/scaling_max_freq
|
||||
echo "${BIG_CORES}" >${CPU_FREQ[1]}/scaling_max_freq
|
||||
echo ${GPU} >${GPU_FREQ}/max_freq
|
||||
echo ${DRAM} >${DMC_FREQ}/max_freq
|
||||
}
|
||||
|
@ -35,6 +39,43 @@ case ${PROFILE} in
|
|||
DRAM="933000000"
|
||||
cooling_profile moderate
|
||||
;;
|
||||
cpu-stable)
|
||||
LITTLE_CORES="1608000"
|
||||
BIG_CORES="2088000"
|
||||
DRAM="933000000"
|
||||
cooling_profile aggressive
|
||||
;;
|
||||
cpu-unstable)
|
||||
LITTLE_CORES="1704000"
|
||||
BIG_CORES="2184000"
|
||||
DRAM="933000000"
|
||||
cooling_profile aggressive
|
||||
;;
|
||||
max-stable)
|
||||
LITTLE_CORES="1704000"
|
||||
BIG_CORES="2208000"
|
||||
GPU="900000000"
|
||||
DRAM="933000000"
|
||||
cooling_profile aggressive
|
||||
;;
|
||||
max-unstable)
|
||||
LITTLE_CORES="1704000"
|
||||
BIG_CORES="2184000"
|
||||
GPU="900000000"
|
||||
DRAM="933000000"
|
||||
cooling_profile aggressive
|
||||
;;
|
||||
probably-fire)
|
||||
# Can only enable this one over ssh..
|
||||
# DO NOT USE!
|
||||
# You are responsible if you break it.
|
||||
# If your device catches on fire, well you were warned.
|
||||
LITTLE_CORES="1704000"
|
||||
BIG_CORES="2208000"
|
||||
GPU="1100000000"
|
||||
DRAM="1056000000"
|
||||
cooling_profile aggressive
|
||||
;;
|
||||
esac
|
||||
|
||||
freqset
|
||||
|
|
Loading…
Reference in a new issue