LcdStudio.Com Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Nvidia Control Panel plugin (download it here)
Goto page Previous  1, 2, 3, 4  Next
 
Reply to topic    LcdStudio.Com Forum Index » Plugins View previous topic
View next topic
Nvidia Control Panel plugin (download it here)
Author Message
Marc



Joined: 26 Nov 2006
Posts: 36

Post Reply with quote
Okay, so now i have:

Public Declare Function NvGetData Lib "nvcpl.dll" ( _
ByVal datatype As Integer, ByRef pdwValue As Integer) As Long

system = NvGetData(7, pdwValue)
ds.SetValue("NvControl.nrofgpu", pdwValue)

Still no luck Sad
Sat May 05, 2007 4:51 pm View user's profile Send private message
Ray
Site Admin


Joined: 23 Apr 2005
Posts: 3333

Post Reply with quote
While messing with their C sample, turns out you need to call NvGetDisplayInfo before NvCplGetDataInt starts working.
Sat May 05, 2007 6:19 pm View user's profile Send private message Send e-mail Visit poster's website
Marc



Joined: 26 Nov 2006
Posts: 36

Post Reply with quote
Okay, didn't know that. I'll give it a try.
Sat May 05, 2007 6:24 pm View user's profile Send private message
gta1337



Joined: 07 May 2007
Posts: 1

Post Reply with quote
Have you got it to work yet? Have been waiting a long time for SLi support. Post if you figure it out, would make alot of people happy! Very Happy

I'm new here BTW Rolling Eyes
Mon May 07, 2007 1:31 am View user's profile Send private message
Marc



Joined: 26 Nov 2006
Posts: 36

Post Reply with quote
Hang on, still working on it.

Can you help me out again Ray, can't figure out how to call NvGetDisplayInfo Sad .
Especially the part with the pszUserDisplay, is that an Array?

Sorry to bug you with this btw.
Mon May 07, 2007 4:09 pm View user's profile Send private message
Ray
Site Admin


Joined: 23 Apr 2005
Posts: 3333

Post Reply with quote
Quote:

Parameters In LPCSTR pszUserDisplay -- <device #> [NV device moniker]
See “Passing Device Monikers in pszUserDisplay” on page 100 as well as
“Device Moniker Version 2 String Format” on page 99.


See the docs that come with it or just look at their sample app and see what they use for that parameter, although you cannot write C you'l have a rather large chance of understanding what a piece of code is doing or trying to do by just looking at it.
Mon May 07, 2007 4:27 pm View user's profile Send private message Send e-mail Visit poster's website
Marc



Joined: 26 Nov 2006
Posts: 36

Post Reply with quote
Okay, so i think i understand half of it, it should be something like:

system = NvGetDisplayInfo("0", displayinfo)

Where "0" is the device number as string. But displayinfo consists of:
displayinfo.cbsize
displayinfo.dwInputFields1
displayonfo.dwInputFields2

So, can i make an array?

Public Declare Function NvGetDisplayInfo Lib "nvcpl.dll" ( _
ByVal displaynr As String, ByRef deviceinfo As Array)

dim displayinfo(0 to 2) as array
displayinfo(0) = 3
displayinfo(1) = 0x00000001
displayinfo(2) = 0x00000010

Does this make sense?
Mon May 07, 2007 7:23 pm View user's profile Send private message
Ray
Site Admin


Joined: 23 Apr 2005
Posts: 3333

Post Reply with quote
It doesn't, you should really read up to doing structures and pinvokes i kinda getting the feeling i'm writing the plugin instead of you..
Mon May 07, 2007 9:40 pm View user's profile Send private message Send e-mail Visit poster's website
Marc



Joined: 26 Nov 2006
Posts: 36

Post Reply with quote
Quote:
i kinda getting the feeling i'm writing the plugin instead of you


Yeah sorry about that, but thats not my intention. It's just that this pinvoke stuff is a bit more difficult than i am used to do with vba. I think i'll be taking a course in the next couple of month's cause i really like to learn this.

Quote:
structures


Thanks, that really help me out (again).
Tue May 08, 2007 5:59 pm View user's profile Send private message
SupeRaven



Joined: 02 Jan 2006
Posts: 3

Post Reply with quote
Um... the link don't work any more. Says it was removed because it was inactive for 30 days. Can someone repost it?
Thu Jun 28, 2007 3:40 am View user's profile Send private message
Marc



Joined: 26 Nov 2006
Posts: 36

Post Reply with quote
Link updated.
Thu Jun 28, 2007 6:37 am View user's profile Send private message
Turist



Joined: 13 Jul 2007
Posts: 14

Post Re: Nvidia Control Panel plugin (download it here) Reply with quote
Marc wrote:
Whit thanks to Abnormal1 for compiling it, here is the plugin for nvidia control panel:

http://www.badongo.com/file/3575990


Thanks a lot for this plugin, but i have some problems with it: ambient temp shows always zero. I live in Russia and it sometimes gets really cold here, but now its not the case Smile GPU temp readings are correct.

I have Nvidia 8800GTS 640Mb

Thanks in advance
Fri Jul 13, 2007 9:40 pm View user's profile Send private message
Marc



Joined: 26 Nov 2006
Posts: 36

Post Reply with quote
I'm not sure, bnut i think the driver you have doesn't support reading the ambient temp. Else it schould work. Tell me which driver you have and i'll have a look. Also you could try Everest.
Sat Jul 14, 2007 7:58 am View user's profile Send private message
Turist



Joined: 13 Jul 2007
Posts: 14

Post Reply with quote
Marc wrote:
I'm not sure, bnut i think the driver you have doesn't support reading the ambient temp. Else it schould work. Tell me which driver you have and i'll have a look. Also you could try Everest.


All other apps are reading temps correctly... i have 158.22 en whql driver installed.
i dont really like idea of having everest running in background Smile but i`ll give it a try

Btw: i`m curious if anyone knows what does it means, when from time to time Lcd studio "loses" variables and there are either "Error" or "<variable name>" displayed on my G15 screen instead of data. I use perfcounters, speedfan, nvidia plugins. This never happens to speedfan values but with perfcounters almost everyday :\

Thanks
Sat Jul 14, 2007 10:46 pm View user's profile Send private message
Turist



Joined: 13 Jul 2007
Posts: 14

Post Reply with quote
Everest itself does not show amb temp too. But RivaTuner does.
I can not load Everest plugin (nothing happens when i click checkbox for this plugin), but i think i will clear this in related topic Smile

PS: may be my Lcd studio installation got corrupted? never had such problems before...
Sat Jul 14, 2007 11:06 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    LcdStudio.Com Forum Index » Plugins All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4  Next
Page 3 of 4

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.