From b20fa3bd7402ece5b64aca8eb7500ccdf407f089 Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Wed, 18 Dec 2024 22:29:36 +0500 Subject: [PATCH] Replace gamemode with powerprofilectl if sched-ext is enabled --- data_from_portwine/scripts/functions_helper | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index 6ff87bad..73dceee5 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -3278,14 +3278,16 @@ start_portwine () { then if command -v systemctl &>/dev/null \ && (systemctl is-active --quiet ananicy.service \ - || systemctl is-active --quiet ananicy-cpp.service) + || systemctl is-active --quiet ananicy-cpp.service \ + || systemctl is-active --quiet scx.service \ + || systemctl is-active --quiet scx_loader.service) then export GAMEMODERUN=0 export PW_GAMEMODERUN_SLR="" if command -v powerprofilesctl &>/dev/null ; then if powerprofilesctl list | grep -q 'performance:' ; then export PW_POWERPROFILECTL_SLR="powerprofilesctl launch -p performance --" - print_info "Gamemode replaced by powerprofilectl to avoid conflict with ananicy." + print_info "Gamemode replaced by powerprofilectl to avoid conflict with ananicy and sched-ext." else export PW_POWERPROFILECTL_SLR="" fi