Set default scaling governors fork RK3588

This commit is contained in:
brooksytech 2024-02-09 15:45:38 +00:00 committed by fewtarius
parent 8d6ae9afbd
commit 6774aee961
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A
2 changed files with 36 additions and 1 deletions

View file

@ -5,7 +5,7 @@
. /etc/profile.d/001-functions
### Set the default performance scaling mode for a few systems.
for SYSTEM in dreamcast n64 ports psp psx saturn pcfx cdi
for SYSTEM in dreamcast n64 ports psp psx saturn pcfx cdi ps2 gamecube
do
CPU_SETTING=$(get_setting ${SYSTEM}.cpugovernor)
if [ -z "${CPU_SETTING}" ]

View file

@ -0,0 +1,35 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
. /etc/profile.d/001-functions
### Set the default performance scaling mode for a few systems.
for SYSTEM in dreamcast n64 ports psp saturn ps2 gamecube
do
CPU_SETTING=$(get_setting ${SYSTEM}.cpugovernor)
if [ -z "${CPU_SETTING}" ]
then
set_setting ${SYSTEM}.cpugovernor performance
fi
GPU_SETTING=$(get_setting ${SYSTEM}.gpuperf)
if [ -z "${GPU_SETTING}" ]
then
set_setting ${SYSTEM}.gpuperf profile_peak
fi
done
for SYSTEM in gb gbc gba snes nes sms gamegear genesis mastersystem sega32x megadrive segacd megacd
do
CPU_SETTING=$(get_setting ${SYSTEM}.cpugovernor)
if [ -z ${CPU_SETTING} ]
then
set_setting ${SYSTEM}.cpugovernor powersave
fi
GPU_SETTING=$(get_setting ${SYSTEM}.gpuperf)
if [ -z ${GPU_SETTING} ]
then
set_setting ${SYSTEM}.gpuperf low
fi
done