Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 01-22-11, 06:06 PM   #1
schmidtbag
Registered User
 
schmidtbag's Avatar
 
Join Date: Jan 2011
Posts: 9
Lightbulb Graphical GPU Monitor

I created this program I call "NV Chart" which is a simple graphical tool made in Python that can graph your current GPU temperature, fan speeds, usage, and memory.




Let me know what you think. Post if you have any questions.


For more information and to download it, go here:
https://sourceforge.net/projects/nvchart/



Also if any admins/moderators like my program enough, would it be possible to make this post sticky?
Attached Thumbnails
Click image for larger version

Name:	screenshot.jpeg
Views:	972
Size:	40.8 KB
ID:	42036  Click image for larger version

Name:	screenshot270.jpeg
Views:	799
Size:	20.9 KB
ID:	42050  Click image for larger version

Name:	screenshot270b.jpeg
Views:	778
Size:	13.9 KB
ID:	42051  

Last edited by schmidtbag; 01-24-11 at 06:06 PM.
schmidtbag is offline   Reply With Quote
Old 01-22-11, 09:54 PM   #2
Dizzle7677
Registered User
 
Dizzle7677's Avatar
 
Join Date: May 2008
Location: Relativity
Posts: 194
Default Re: Graphical GPU Monitor

Pretty cool...Thanks.
__________________
Elephants can fly but they have no reason to.
------------------------------------------
Phenom II X3 720 @ 3.5Ghz | Asus M4A785-M | 2 Gig Crucial DDR2 @ 960 Mhz | GeForce GT 440 1024 MB | Linux 3.6.1 / Ubuntu 12.04 / W.I.N.E v1.5.14
Dizzle7677 is offline   Reply With Quote
Old 01-23-11, 04:34 AM   #3
gradinaruvasile
Registered User
 
gradinaruvasile's Avatar
 
Join Date: May 2008
Posts: 199
Default Re: Graphical GPU Monitor

Hm. I have a fanless 8200 and i get this output:

Code:
$ python nvchart.py 1 0 0
Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 1413, in __call__
    return self.func(*args)
  File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 498, in callit
    func(*args)
  File "nvchart.py", line 15, in loop
    fanspeed.set(int(os.popen("echo -e '%s' | grep 'Fan Speed' | sed 's/.*\: //g' | sed 's/\%s//g'" % (data,"%")).read()))
ValueError: invalid literal for int() with base 10: ''
The window opens but it has empty black boxes and the cards name (GeForce 8200). BTW my nvidia-smi output is:

Code:
$ nvidia-smi -a

==============NVSMI LOG==============


Timestamp			: Sun Jan 23 12:32:59 2011

Driver Version			: 260.19.36


GPU 0:
	Product Name		: GeForce 8200
	PCI Device/Vendor ID	: 84910de
	PCI Location ID		: 0:2:0
	Board Serial		: 0
	Display			: Connected
	Temperature		: 45 C
	Utilization
	    GPU			: 0%
	    Memory		: 0%
gradinaruvasile is offline   Reply With Quote
Old 01-23-11, 08:34 AM   #4
schmidtbag
Registered User
 
schmidtbag's Avatar
 
Join Date: Jan 2011
Posts: 9
Default Re: Graphical GPU Monitor

Quote:
Originally Posted by gradinaruvasile View Post
Hm. I have a fanless 8200 and i get this output:

Code:
$ python nvchart.py 1 0 0
Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 1413, in __call__
    return self.func(*args)
  File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 498, in callit
    func(*args)
  File "nvchart.py", line 15, in loop
    fanspeed.set(int(os.popen("echo -e '%s' | grep 'Fan Speed' | sed 's/.*\: //g' | sed 's/\%s//g'" % (data,"%")).read()))
ValueError: invalid literal for int() with base 10: ''
The window opens but it has empty black boxes and the cards name (GeForce 8200). BTW my nvidia-smi output is:

Code:
$ nvidia-smi -a

==============NVSMI LOG==============


Timestamp			: Sun Jan 23 12:32:59 2011

Driver Version			: 260.19.36


GPU 0:
	Product Name		: GeForce 8200
	PCI Device/Vendor ID	: 84910de
	PCI Location ID		: 0:2:0
	Board Serial		: 0
	Display			: Connected
	Temperature		: 45 C
	Utilization
	    GPU			: 0%
	    Memory		: 0%
oooooooooo yeah the program is searching for fan speed but since yours is silent it doesn't have one at all. i'll see what i can do to fix that.

EDIT:
problem fixed. the fan speed graph will still show up for you but technically, no fan would still mean 0% fan speed anyway. i'm not sure if i'll get to removing "defective" graphs any time soon.
schmidtbag is offline   Reply With Quote
Old 01-23-11, 08:45 AM   #5
schmidtbag
Registered User
 
schmidtbag's Avatar
 
Join Date: Jan 2011
Posts: 9
Default Re: Graphical GPU Monitor

ok now its updated. as of right now, for anyone who gets errors reading any of the information the program charts, the chart will still show up but it will be blank. i might end up making data-less charts go away in the future but that'll take surprisingly a lot more time for something that is really only card specific.
schmidtbag is offline   Reply With Quote
Old 01-23-11, 11:23 AM   #6
gradinaruvasile
Registered User
 
gradinaruvasile's Avatar
 
Join Date: May 2008
Posts: 199
Default Re: Graphical GPU Monitor

It is working now. Only that the fan and memory sections are black. It seems that nvidia-smi only reports memory usage for dedicated GPU memory. My 8200 is integrated and uses shared memory, nvidia-smi is always shows memory usage at 0%.
gradinaruvasile is offline   Reply With Quote
Old 01-23-11, 11:28 AM   #7
schmidtbag
Registered User
 
schmidtbag's Avatar
 
Join Date: Jan 2011
Posts: 9
Default Re: Graphical GPU Monitor

Quote:
Originally Posted by gradinaruvasile View Post
It is working now. Only that the fan and memory sections are black. It seems that nvidia-smi only reports memory usage for dedicated GPU memory. My 8200 is integrated and uses shared memory, nvidia-smi is always shows memory usage at 0%.
yea sorry, nothing i can really do about that. i'm surprised it still doesn't work even though its shared memory.



btw, if the fermi cards show more live variable information, if anyone wants me to add those charts i can. i can't test if they work because i don't have one of those cards but its not hard to add. the code is open source and there isn't much to it if anyone feels like adding it themselves.
schmidtbag is offline   Reply With Quote
Old 01-23-11, 11:44 AM   #8
Dizzle7677
Registered User
 
Dizzle7677's Avatar
 
Join Date: May 2008
Location: Relativity
Posts: 194
Default Re: Graphical GPU Monitor

[quote=gradinaruvasile;2382055]Hm. I have a fanless 8200 and i get this output:

Code:
$ python nvchart.py 1 0 0
Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 1413, in __call__
    return self.func(*args)
  File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 498, in callit
    func(*args)
  File "nvchart.py", line 15, in loop
    fanspeed.set(int(os.popen("echo -e '%s' | grep 'Fan Speed' | sed 's/.*\: //g' | sed 's/\%s//g'" % (data,"%")).read()))
ValueError: invalid literal for int() with base 10: ''
[quote]

Install python-tk
__________________
Elephants can fly but they have no reason to.
------------------------------------------
Phenom II X3 720 @ 3.5Ghz | Asus M4A785-M | 2 Gig Crucial DDR2 @ 960 Mhz | GeForce GT 440 1024 MB | Linux 3.6.1 / Ubuntu 12.04 / W.I.N.E v1.5.14
Dizzle7677 is offline   Reply With Quote

Old 01-23-11, 11:47 AM   #9
gradinaruvasile
Registered User
 
gradinaruvasile's Avatar
 
Join Date: May 2008
Posts: 199
Default Re: Graphical GPU Monitor

Quote:

Install python-tk
I installed it before. The issue was that my card has no fan and nvidia-smi has no entry for fan speed (which was expected by the script).
gradinaruvasile is offline   Reply With Quote
Old 01-24-11, 01:08 AM   #10
Licaon
Registered User
 
Licaon's Avatar
 
Join Date: Nov 2004
Location: Between the keyboard and the chair.
Posts: 490
Default Re: Graphical GPU Monitor

BTW, nvidia-smi changed syntax/output on beta 270.18
Licaon is offline   Reply With Quote
Old 01-24-11, 06:31 AM   #11
brucecadieux
Registered User
 
Join Date: Dec 2008
Posts: 78
Default Re: Graphical GPU Monitor

python /opt/nvchart/nvchart.py 1000 0 0
Invalid input arguments

Invalid input arguments

Invalid input arguments

Invalid input arguments

Invalid input arguments

Invalid input arguments

Invalid input arguments

Invalid input arguments

Invalid input arguments

Invalid input arguments
brucecadieux is offline   Reply With Quote
Old 01-24-11, 01:18 PM   #12
schmidtbag
Registered User
 
schmidtbag's Avatar
 
Join Date: Jan 2011
Posts: 9
Default Re: Graphical GPU Monitor

@licaon
i'll get to checking that out right now. depending on what exactly the new output is, it might not impact my program unless:

Quote:
Originally Posted by brucecadieux View Post
python /opt/nvchart/nvchart.py 1000 0 0
Invalid input arguments

Invalid input arguments

Invalid input arguments

Invalid input arguments

Invalid input arguments

Invalid input arguments

Invalid input arguments

Invalid input arguments

Invalid input arguments

Invalid input arguments
are you using the beta 270 drivers? i'm not sure what or why this error message would occur.
schmidtbag is offline   Reply With Quote
Reply


Thread Tools

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 01:59 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.