Page 1 of 2
nvidia GPU temp PLUG IN
Posted: March 31st, 2005, 3:37 am
by pr0xZen
I don't know if this can be done with any of the plugins available - atleast I couldn't see how.
I'd really like to pull this one off myself, but I have a s*htload of exams and such coming up, wich leaves no time atm to learn programming. So I'm asking you coders out there if you can help.
I need a plugin to read characters number 26 and 27 on the 2. last (2. from the bottom) line of a file.
This file is rivatuner's GPU temp log (gpu.hml), and the format is like this:
80, 31-03-2005 04:18:18, 45.000
The "45" there is what I need to fetch, wich is the gpu temp.
Now, it (RivaTuner1) always add a "line shift" to the bottom, so if reading from the very last line in the file, the output would be blank.
It also adds a lot of blank spaces at the end of every line(same number on every line), so reading charcter 20 and 21 from the end of the file would probably do the same, although the output would in that case have to be reversed (as if value was 45 it would read 54(?))
I don't know if this would be an enormous hassle, or an quick'n easy task, but if anyone of you could take a look at it - It'd be great.
As I haven't figured any other way out yet, I guess there are quite alot of other people interested in getting nvidia GPU temps up on that LCD.
Posted: March 31st, 2005, 2:45 pm
by limbo
I'm not sure about the structure of the file containing the temp info...
Can you upload somewhere this htm file?
or point me to an online example?
Posted: March 31st, 2005, 3:06 pm
by pr0xZen
http://www.freewebtown.com/pr0xzen/gpu.zip
RivaTuner appends a line per "XXXX" millisecons (set interval). Important to note, is that there's a line shift at the bottom - so the very last line is always empty.
Posted: March 31st, 2005, 3:11 pm
by limbo
I think it's possible to retrieve the value that you want...
Give me some time to check out what can I do (on plugin development)

Posted: March 31st, 2005, 3:17 pm
by pr0xZen
I sure will

You the man
I see that MBM 5.3 supports shared memory (
http://mbm.livewiredev.com/mbmcode5.html) - and RivaTuner is supposed to also do so, exactly forthis kind of purpose. Alas, I have not been able to locate any of the SDK examples, no code, manual, guide. nada. But they swear it's there.
Posted: March 31st, 2005, 6:37 pm
by limbo
An annoying bug on code, is driving me crazy!
Can you tell me the default path of "gpud.hml" ?
Posted: March 31st, 2005, 7:20 pm
by limbo
Forget the path.....................
I overrided the bug
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''
I HAVE GOOD NEWS
download the beta1
here and tell me what do you think...

Posted: March 31st, 2005, 8:28 pm
by pr0xZen
just just a sec. been struggling with the LCD, for a moment there I thought I'd fried it.
Posted: March 31st, 2005, 8:40 pm
by pr0xZen
Great news indeed

D'oh

It outputs correct indeed. But - there's a problem. I set RivaTuner to poll values every 5 seconds. Now, when the plugin is applied, within 0-5 seconds rivatuner stop logging with an error message stating something like "failed to open file for write". Does the plugin "hug the file" continously while running? I figured, opening the file and reading shouldn't neccesarily take 5 seconds...? Hope you can enlighten / suggest a remedy.
Edit: I tried to "edit" and delete the gpu.hml file, but I was unable to write to/delete the file until I killed Smartie. Before doing this i tried removing the lines containing plugin "execution", and disabling the screen wich was used. Seems somehow, once executed, the plugin permanetly opens and hug the file, until Smarite is shut down.
Posted: March 31st, 2005, 9:34 pm
by limbo
Try the
beta 2
I think I found something 
Posted: March 31st, 2005, 10:12 pm
by pr0xZen
I don't know what you did, but it SURE THE H*LL worked!

Yuou pulled it off man!!!

Thank you SooO Much

I'll trhrow in another post, have to play more with this N.O.W

*HUGS*
Posted: March 31st, 2005, 10:41 pm
by pr0xZen
It works. It works god damn well Limbo, excellent work
If anyone else is interested in running this, to set up RivaTuner for this do the following:
1. Open RivaTuner (obviously install first:)
2. Under "Main" tab, select "Customize" in "Target Adapter" section, and then "Hardware monitoring".
3. You get a bunch of graphs. close all EXCEPT "Core temperature".
4. Press "Setup" button.
5. Set "Data polling interval" to 5000 ms. Select a destination and file name for the log file (f.x. gpu.hml). Uncheck "Stop logging..." and check "Recreate exsisting log files".
5. Apply and "OK".
6. Now, activate "the red button" (Enable background monitoring) and "the floppy" (Log to file).
7. You're good to go. The readme.txt following the plugin, explains plugin usage.
Posted: April 1st, 2005, 12:28 am
by Glen
Limbo you do some great work for everyone! Thanks again.
I can see many uses for this plugin, but is it possible that there could be a manual character number in there for the start position?
e.g.
$dll(riva,1,number of characters to return,character number to start read,path of file)
So for this FRAPS output:
2005-03-25 16:53:33 - RichardBurnsRally_SSE
Frames: 1410 - Time: 20000ms - Avg: 70.500 - Min: 57 - Max: 76
I could read, say the 23rd character for however many characters (in this case 21).. etc. etc. so that the display could be:
RichardBurnsRally_SSE
Avg: 70.500
Min: 57
Max: 76
Time: 16:53:33
Rather than the one big scrolling line i have at the moment..
Thanks
Glen
Posted: April 1st, 2005, 2:07 am
by pr0xZen

it did it again... wel, it didn't lock the file, it just obviously was reading at the same time rivatuner was writing. guess that's an issue when rivatuner either just tops logging when file gets XX mb, or just continoues forever - the file gets big an opening takes time. more time for conflicts.
Anyway, fixed it up in 2 secs and back on track. for now. great wirk

Posted: April 1st, 2005, 11:57 am
by limbo
I' ll try to release a final version (ver 0.1) and fix this bug
it did it again... wel, it didn't lock the file, it just obviously was reading at the same time rivatuner was writing. guess that's an issue when rivatuner either just tops logging when file gets XX mb, or just continoues forever - the file gets big an opening takes time. more time for conflicts.
Anyway, fixed it up in 2 secs and back on track. for now. great wirk
But for now you have to live with this
It's hard to work without the specific program installed to the machine
I'll post a message to inform you when the final version is ready
Posted: April 1st, 2005, 4:19 pm
by pr0xZen
I tried to indicate that it wasn't a major problem, only happens every 2 hours

But if you were to find a way to work around it, that would ofcourse be great.
Anyway, if you're interested in taking a further look into this, or the shared memory option, (they said it was taken onboard for just his type of thing. Actually CrystalControl2 does this, but who wants to use stinkin' CC when you've got Smartie, eh?) you'll find RivaTuner at
http://download.guru3d.com/rivatuner/
Again, thanks alot, and great work

Posted: April 13th, 2005, 10:49 pm
by pr0xZen
Did you find out anthing about avoiding the read/write crash? Not a major issue, but it has been occuring quite alot lately.
Posted: April 14th, 2005, 3:54 pm
by limbo
Sorry but I have no time to change the code right now
It's still on my mind...
Try to play with the refresh interval on the "Riva" prog
A value like "5333" instead the "5000" may help
Posted: May 4th, 2005, 8:11 pm
by cloudkat
Just curious....Is there any update to this thread??
I would like to try out this RivaTuner plugin.
Posted: May 4th, 2005, 11:28 pm
by pr0xZen
I don't know for sure... I've got it working, but You'll have to reinitiate the "log-to-file" setting in RivaTuner, every 2 hours or so. Limbo said he'd take a look at it when he had a bit more time on his hands. But trust me, it works. Although, poll interval can't be set higher than 5000ms, any lower seems only to shorten the time between "re-initiations".
Hopefully, Limbo will figure something out when he finds time.
Posted: June 1st, 2005, 5:46 am
by pr0xZen
Any news?
Posted: June 8th, 2005, 1:37 pm
by abrasiveone
I can't seem to get this to work. Followed all the instructions to no avail.
Is there another way to do this? I have a BFG 6800GT using the latest Det drivers and the newest version of Rivatuner.
Keeps giving me a plugin error.
Posted: June 10th, 2005, 4:23 pm
by limbo
There is a new version on under dev...
This hopfully fixes the bug!
Can anybody test this dll before release?
Posted: June 10th, 2005, 5:18 pm
by limbo
Good News!
NEW BETA 3 IS HERE
Please download it & test it.
Waiting for news about the god damn bug!

Posted: June 11th, 2005, 2:33 am
by pr0xZen
Broken link? Can't wait to try it out...