Merge branch 'tuned' of github.com:Boria138/PortWINE into Boria138-tuned

This commit is contained in:
Mikhail Tergoev
2025-07-17 18:54:17 +03:00

View File

@ -2041,6 +2041,9 @@ stop_portwine () {
pw_exit_tray pw_exit_tray
pw_auto_create_shortcut pw_auto_create_shortcut
add_in_stop_portwine add_in_stop_portwine
if [[ -n "$PW_TUNED_PROFILE" ]] ; then
tuned-adm profile $PW_TUNED_PROFILE
fi
if [[ $PW_LOG != 1 ]] && [[ -n $START_PW_TIME_IN_GAME ]] ; then if [[ $PW_LOG != 1 ]] && [[ -n $START_PW_TIME_IN_GAME ]] ; then
debug_timer --end -s "PW_TIME_IN_GAME" debug_timer --end -s "PW_TIME_IN_GAME"
@ -3621,6 +3624,15 @@ start_portwine () {
else else
export PW_POWERPROFILECTL_SLR="" export PW_POWERPROFILECTL_SLR=""
fi fi
elif command -v tuned-adm &>/dev/null ; then
export PW_TUNED_PROFILE=$(tuned-adm active | awk -F': ' '{print $2}')
if tuned-adm list | grep -q 'throughput-performance' ; then
tuned-adm profile throughput-performance
print_info "Gamemode replaced by tuned to avoid conflict with ananicy and sched-ext."
export PW_POWERPROFILECTL_SLR=""
else
export PW_POWERPROFILECTL_SLR=""
fi
fi fi
elif check_flatpak ; then elif check_flatpak ; then
export GAMEMODERUN=1 export GAMEMODERUN=1