Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

nvidia GPU temp PLUG IN

Place your requests for plugins here

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo

pr0xZen
Posts: 24
Joined: March 19th, 2005, 10:57 pm

nvidia GPU temp PLUG IN

Post 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.
limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Post 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?
pr0xZen
Posts: 24
Joined: March 19th, 2005, 10:57 pm

Post 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.
Last edited by pr0xZen on March 31st, 2005, 3:18 pm, edited 1 time in total.
limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Post 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) :wink:
pr0xZen
Posts: 24
Joined: March 19th, 2005, 10:57 pm

Post by pr0xZen »

I sure will :) You the man :D

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.
limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Post by limbo »

An annoying bug on code, is driving me crazy! :twisted:


Can you tell me the default path of "gpud.hml" ?
limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Post by limbo »

Forget the path.....................
I overrided the bug :shock:
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''
I HAVE GOOD NEWS
download the beta1here and tell me what do you think...


:?:
pr0xZen
Posts: 24
Joined: March 19th, 2005, 10:57 pm

Post by pr0xZen »

just just a sec. been struggling with the LCD, for a moment there I thought I'd fried it.
pr0xZen
Posts: 24
Joined: March 19th, 2005, 10:57 pm

Post 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.
limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Post by limbo »

Try the beta 2
I think I found something :oops:
pr0xZen
Posts: 24
Joined: March 19th, 2005, 10:57 pm

Post by pr0xZen »

I don't know what you did, but it SURE THE H*LL worked! :D Yuou pulled it off man!!! :D Thank you SooO Much :D :D I'll trhrow in another post, have to play more with this N.O.W :D *HUGS*
pr0xZen
Posts: 24
Joined: March 19th, 2005, 10:57 pm

Post 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.
Glen
Posts: 4
Joined: March 24th, 2005, 6:07 am

Post 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
pr0xZen
Posts: 24
Joined: March 19th, 2005, 10:57 pm

Post 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 :)
limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Post 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
pr0xZen
Posts: 24
Joined: March 19th, 2005, 10:57 pm

Post 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 :)
pr0xZen
Posts: 24
Joined: March 19th, 2005, 10:57 pm

Post 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.
limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Post by limbo »

Sorry but I have no time to change the code right now :cry:

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
cloudkat
Posts: 4
Joined: May 4th, 2005, 8:08 pm
Location: Knoxville, TN
Contact:

Post by cloudkat »

Just curious....Is there any update to this thread??
I would like to try out this RivaTuner plugin.
pr0xZen
Posts: 24
Joined: March 19th, 2005, 10:57 pm

Post 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.
pr0xZen
Posts: 24
Joined: March 19th, 2005, 10:57 pm

Post by pr0xZen »

Any news?
abrasiveone
Posts: 7
Joined: June 8th, 2005, 1:16 pm

Post 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.
limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Post by limbo »

There is a new version on under dev...
This hopfully fixes the bug!

Can anybody test this dll before release?
limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Post by limbo »

Good News! :idea:

NEW BETA 3 IS HERE


Please download it & test it.

Waiting for news about the god damn bug! :twisted:
Last edited by limbo on June 11th, 2005, 8:09 am, edited 1 time in total.
pr0xZen
Posts: 24
Joined: March 19th, 2005, 10:57 pm

Post by pr0xZen »

Broken link? Can't wait to try it out...
Post Reply