788a398aab
* Since JELOS creates the games directory structure it is possible that the overlay will hide games if you switch targets as it will consider them removed. Delete the empty directories and reboot to resolve. * Ex: find /storage/games-internal -type d -empty -delete && find /storage/games-external -type d -empty -delete && reboot * Merged storage can now be disabled persistently. * A new directory structure is required to enable switching: * /storage/games-internal/roms * /storage/games-external/roms * The target /storage/roms has not changed. * Lowers clocks to powersave for RK3566 devices.
19 lines
570 B
Bash
19 lines
570 B
Bash
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
|
|
|
# Store current freq governors and set governors to powersave.
|
|
|
|
. /etc/profile
|
|
|
|
### Get the current cpu and gpu governor, save for when the device wakes from sleep.
|
|
CUR_CPU_FREQ="$(cat ${CPU_FREQ}/scaling_governor)"
|
|
CUR_GPU_FREQ="$(cat ${GPU_FREQ}/governor)"
|
|
|
|
set_setting sleep.cpugovernor "${CUR_CPU_FREQ}"
|
|
set_setting sleep.gpugovernor "${CUR_GPU_FREQ}"
|
|
|
|
### Set all governors to powersave
|
|
set_cpu_gov powersave
|
|
set_dmc_gov powersave
|
|
set_gpu_gov powersave
|