2023-08-11 16:00:22 +00:00
|
|
|
#!/bin/sh
|
2023-10-23 22:44:47 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2023-10-24 16:00:57 +00:00
|
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
2023-08-11 16:00:22 +00:00
|
|
|
|
2023-09-04 10:46:11 +00:00
|
|
|
. /etc/profile.d/001-functions
|
2023-08-11 16:00:22 +00:00
|
|
|
|
|
|
|
### Set the default performance scaling mode for a few systems.
|
2023-11-20 15:19:55 +00:00
|
|
|
for SYSTEM in dreamcast n64 ports psp saturn
|
2023-08-11 16:00:22 +00:00
|
|
|
do
|
|
|
|
SETTING=$(get_setting ${SYSTEM})
|
|
|
|
if [ -z ${SETTING} ]
|
|
|
|
then
|
|
|
|
set_setting ${SYSTEM}.cpugovernor performance
|
2023-11-10 01:39:28 +00:00
|
|
|
set_setting ${SYSTEM}.gpuperf profile_peak
|
2023-08-11 16:00:22 +00:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|