You are not logged in.

#1 2009-11-08 14:06:05

orphius1970
Member
From: Modesto (HELL) California
Registered: 2009-02-27
Posts: 151

[SOLVED] Nvidia Card temps from CLI

I have been trying to get the Temps for my 9400GT at CLI.
Lm_sensors doesn't read my vid card and I have tried using "nvidia-settings -q GPUCoreTemp"
with no luck. When I do I get the following:
Attribute 'GPUCoreTemp' (nellie:0.0): 41.
    'GPUCoreTemp' is an integer attribute.
    'GPUCoreTemp' is a read-only attribute.
    'GPUCoreTemp' can use the following target types: X Screen, GPU.

Any help would be nice! This is for a script to display System info.

Last edited by orphius1970 (2009-11-08 15:16:13)


AMD Phenomx3, 4gb ram, Nvidia Gforce 9400gt,
MSI K9N2 Diamond Motherboard, Arch x86_64

Offline

#2 2009-11-08 15:03:04

hstein80
Member
Registered: 2009-02-26
Posts: 2

Re: [SOLVED] Nvidia Card temps from CLI

try this
nvidia-settings -q GPUCoreTemp | awk '{if (NR==2) {print $4}}'

Offline

#3 2009-11-08 15:10:35

orphius1970
Member
From: Modesto (HELL) California
Registered: 2009-02-27
Posts: 151

Re: [SOLVED] Nvidia Card temps from CLI

thank you! Is there a way to display it in farhenheit?


AMD Phenomx3, 4gb ram, Nvidia Gforce 9400gt,
MSI K9N2 Diamond Motherboard, Arch x86_64

Offline

#4 2009-11-08 15:14:50

hstein80
Member
Registered: 2009-02-26
Posts: 2

Re: [SOLVED] Nvidia Card temps from CLI

nvidia-settings -q GPUCoreTemp | awk '{if (NR==2) {print ($4*9)/5+32}}'

Celsius in Fahrenheit = (( TCelsius × 9 ) / 5 ) + 32

Offline

#5 2009-11-08 15:15:58

orphius1970
Member
From: Modesto (HELL) California
Registered: 2009-02-27
Posts: 151

Re: [SOLVED] Nvidia Card temps from CLI

Awesome hsteind80!!!
Thank you

Maybe you can help with this?
When i put that in a script... It doesn't output a result...
When I run it from command line it does... I am new to the whole scripting thing.
Any help would be appreciated.

EDITED:

Figured it out!

Last edited by orphius1970 (2009-11-08 16:31:40)


AMD Phenomx3, 4gb ram, Nvidia Gforce 9400gt,
MSI K9N2 Diamond Motherboard, Arch x86_64

Offline

#6 2009-11-08 23:54:03

orphius1970
Member
From: Modesto (HELL) California
Registered: 2009-02-27
Posts: 151

Re: [SOLVED] Nvidia Card temps from CLI

Ok now I have a new problem. I just installed another video card. So now I have 2 on
a hybrid sli setup. How do I change the afore mentioned command for the individual
cards????

NEVERMIND!
Figured it out changed it as such:
"nvidia-settings -q [gpu:0]/GPUCoreTemp | awk '{if (NR==2) {print ($4*9)/5+32}}'"
"nvidia-settings -q [gpu:1]/GPUCoreTemp | awk '{if (NR==2) {print ($4*9)/5+32}}'"

Thank you!

Last edited by orphius1970 (2009-11-09 00:05:33)


AMD Phenomx3, 4gb ram, Nvidia Gforce 9400gt,
MSI K9N2 Diamond Motherboard, Arch x86_64

Offline

Board footer

Powered by FluxBB