feat: replace gamemode with tuned
Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
@ -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"
|
||||||
@ -3608,6 +3611,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
|
||||||
|
Reference in New Issue
Block a user