Merge pull request #1977 from fewtarius/dev

Fix issue with system TDP being reset on startup.
This commit is contained in:
fewtarius 2023-08-27 11:58:30 -04:00 committed by GitHub
commit 90a3a174d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 5 deletions

View file

@ -15,12 +15,16 @@
if [ $# -eq 0 ] || [ "$1" == "boot" ]
then
PROFILE=$(get_setting system.overclock)
if [ -z "${PROFILE}" ] && \
[ -n "${DEVICE_BASE_TDP}" ]
if [ -n "${PROFILE}" ]
then
PROFILE="${DEVICE_BASE_TDP}"
PROFILE="${PROFILE}"
else
PROFILE="15w"
if [ -n "${DEVICE_BASE_TDP}" ]
then
PROFILE="${DEVICE_BASE_TDP}"
else
PROFILE="15w"
fi
fi
else
### When run from ES or a shell, and the value of "off"
@ -78,3 +82,4 @@ case ${PROFILE} in
esac
ryzenadj --tctl-temp=97 --stapm-limit=${WATTS} --fast-limit=${WATTS} --stapm-time=500 --slow-limit=${WATTS} --slow-time=30 --vrmmax-current=70000
set_setting system.overclock ${PROFILE}

View file

@ -3,7 +3,7 @@
# Copyright (C) 2020-present Fewtarius
PKG_NAME="emulationstation"
PKG_VERSION="e546cf8"
PKG_VERSION="1d18e38"
PKG_GIT_CLONE_BRANCH="main"
PKG_REV="1"
PKG_ARCH="any"