Phoronix Forums  

Go Back   Phoronix Forums > Software > Gaming

Gaming Gaming on GNU/Linux with both open and closed-source titles.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-22-2006, 08:22 PM
cakey cakey is offline
Junior Member
 
Join Date: Jun 2006
Location: Maine, USA, Earth
Posts: 13
Default UT2k4/nvidia-settings Game Launch Script

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?
Reply With Quote
  #2  
Old 06-23-2006, 01:25 AM
LinuxRocks LinuxRocks is offline
Junior Member
 
Join Date: Jun 2006
Posts: 11
Default

Quote:
Originally Posted by cakey
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
Reply With Quote
  #3  
Old 06-25-2006, 01:31 PM
Patrick Patrick is offline
Junior Member
 
Join Date: Jun 2006
Location: Michigan
Posts: 35
Default

Just edit your script to:
Code:
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.

Last edited by Michael; 06-25-2006 at 02:02 PM. Reason: [CODE] tag is currently broken, investigating.
Reply With Quote
  #4  
Old 06-25-2006, 03:44 PM
cakey cakey is offline
Junior Member
 
Join Date: Jun 2006
Location: Maine, USA, Earth
Posts: 13
Default

Oooo Didnt think it would be that simple! duh. Thanks, I'll give it a try.
Reply With Quote
  #5  
Old 06-25-2006, 03:53 PM
cakey cakey is offline
Junior Member
 
Join Date: Jun 2006
Location: Maine, USA, Earth
Posts: 13
Default

Excellent! Works great thanks again.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:03 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2009 by Phoronix Media.