PDA

View Full Version : UT2k4/nvidia-settings Game Launch Script


cakey
06-22-2006, 08:22 PM
Currently I have a little script I run to set my overclock before I lauch the game:

#!/bin/sh

nvidia-settings -l
nvidia-settings -a GPUOverclockingState=1
nvidia-settings -a GPU2DClockFreqs=350,1261 -a GPU3DClockFreqs=452,1261


Then after I'm done playing I disable the overclock manually by running:

nvidia-settings -a GPUOverclockingState=0


What I'd like is a script that will run nvidia-settings then run the game and on exit set my overclock state back to 0. Is this do-able?

LinuxRocks
06-23-2006, 01:25 AM
Currently I have a little script I run to set my overclock before I lauch the game:

#!/bin/sh

nvidia-settings -l
nvidia-settings -a GPUOverclockingState=1
nvidia-settings -a GPU2DClockFreqs=350,1261 -a GPU3DClockFreqs=452,1261


Then after I'm done playing I disable the overclock manually by running:

nvidia-settings -a GPUOverclockingState=0


What I'd like is a script that will run nvidia-settings then run the game and on exit set my overclock state back to 0. Is this do-able?


I know you can rung nvidia-settings -l to just have it load your settings from ~/.nvidia-settings-rc, but I don't think the overclock settings are stored in that file.

Joe

Patrick
06-25-2006, 01:31 PM
Just edit your script to:

nvidia-settings -l
nvidia-settings -a GPUOverclockingState=1
nvidia-settings -a GPU2DClockFreqs=350,1261 -a GPU3DClockFreqs=452,1261
ut2004
nvidia-settings -a GPUOverclockingState=0

It will execute the overclockingstate=0 after ut2004 exits.

cakey
06-25-2006, 03:44 PM
Oooo Didnt think it would be that simple! duh. Thanks, I'll give it a try.

cakey
06-25-2006, 03:53 PM
Excellent! Works great thanks again.