Set default scaling governors fork RK3588
This commit is contained in:
parent
8d6ae9afbd
commit
6774aee961
2 changed files with 36 additions and 1 deletions
|
@ -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}" ]
|
||||
|
|
35
packages/hardware/quirks/platforms/RK3588/060-game_settings
Normal file
35
packages/hardware/quirks/platforms/RK3588/060-game_settings
Normal 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
|
Loading…
Reference in a new issue