From 88214de544833685dcbb429c0608b864268ef80d Mon Sep 17 00:00:00 2001 From: fewtarius Date: Sun, 4 Sep 2022 12:57:55 -0400 Subject: [PATCH] Ryzenadj integration complete. --- .../sources/autostart/handheld/002-overclock | 14 ++++++ .../sources/devices/handheld/overclock | 47 +++++++++++++++++++ packages/ui/emulationstation/package.mk | 2 +- 3 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 packages/sysutils/system-utils/sources/autostart/handheld/002-overclock create mode 100755 packages/sysutils/system-utils/sources/devices/handheld/overclock diff --git a/packages/sysutils/system-utils/sources/autostart/handheld/002-overclock b/packages/sysutils/system-utils/sources/autostart/handheld/002-overclock new file mode 100644 index 000000000..7118d8737 --- /dev/null +++ b/packages/sysutils/system-utils/sources/autostart/handheld/002-overclock @@ -0,0 +1,14 @@ +#!/bin/sh +# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius) + +. /etc/profile + +# If there is no defined overclock, make sure it's "off". +OVERCLOCK=$(get_setting system.overclock) +if [ -z ${OVERCLOCK} ] +then + set_setting system.overclock off +fi + +/usr/bin/overclock boot diff --git a/packages/sysutils/system-utils/sources/devices/handheld/overclock b/packages/sysutils/system-utils/sources/devices/handheld/overclock new file mode 100755 index 000000000..8347358f5 --- /dev/null +++ b/packages/sysutils/system-utils/sources/devices/handheld/overclock @@ -0,0 +1,47 @@ +#!/bin/bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius) + +. /etc/profile + +if [ $# -eq 0 ] || [ "$1" == "boot" ] +then + PROFILE=$(get_setting system.overclock) +else + PROFILE=$1 +fi + +### Default clocks when not using OC. +WATTS="12000" + +case ${PROFILE} in + 2w) + WATTS="2000" + ;; + 4w) + WATTS="4000" + ;; + 6w) + WATTS="6000" + ;; + 8w) + WATTS="8000" + ;; + 10w) + WATTS="10000" + ;; + 12w) + WATTS="12000" + ;; + 14w) + WATTS="14000" + ;; + 16w) + WATTS="16000" + ;; + 18w) + WATTS="18000" + ;; +esac + +ryzenadj --tctl-temp=97 --stapm-limit=${WATTS} --fast-limit=${WATTS} --stapm-time=500 --slow-limit=${WATTS} --slow-time=30 --vrmmax-current=70000 diff --git a/packages/ui/emulationstation/package.mk b/packages/ui/emulationstation/package.mk index ed165b275..08b55c6ce 100644 --- a/packages/ui/emulationstation/package.mk +++ b/packages/ui/emulationstation/package.mk @@ -3,7 +3,7 @@ # Copyright (C) 2020-present Fewtarius PKG_NAME="emulationstation" -PKG_VERSION="eb48dd2" +PKG_VERSION="6e6fdff" PKG_GIT_CLONE_BRANCH="main" PKG_REV="1" PKG_ARCH="any"