From 237e0e2f19ac250f0b76e922cfb29fe70dc6b75f Mon Sep 17 00:00:00 2001 From: CronyAkatsuki Date: Mon, 8 Jan 2024 16:18:26 +0100 Subject: [PATCH] Turn on and off performance mode for nvidia. --- .config/gamemode.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/gamemode.ini b/.config/gamemode.ini index 4640718..aa7d79b 100644 --- a/.config/gamemode.ini +++ b/.config/gamemode.ini @@ -89,10 +89,12 @@ inhibit_screensaver=1 [custom] ; Custom scripts (executed using the shell) when gamemode starts and ends start=notify-send "Gamemode" "Started" + nvidia-settings -a '[gpu:0]/GPUPowerMizerMode=1' ; wlr-randr --output eDP-1 --scale 1 ; /home/me/bin/stop_ethmining.sh end=notify-send "Gamemode" "Stoped" + nvidia-settings -a '[gpu:0]/GPUPowerMizerMode=2' ; wlr-randr --output eDP-1 --scale 1.25 ; /home/me/bin/start_ethmining.sh