26 lines
706 B
Bash
Executable file
26 lines
706 B
Bash
Executable file
#!/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 gamecube n64 ports ps2 psp saturn
|
|
do
|
|
SETTING=$(get_setting ${SYSTEM})
|
|
if [ -z ${SETTING} ]
|
|
then
|
|
set_setting ${SYSTEM}.cpugovernor performance
|
|
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
|
|
SETTING=$(get_setting ${SYSTEM})
|
|
if [ -z ${SETTING} ]
|
|
then
|
|
set_setting ${SYSTEM}.cpugovernor powersave
|
|
set_setting ${SYSTEM}.gpuperf low
|
|
fi
|
|
done
|