LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-20-2012, 05:28 AM   #1
elias.alberto
LQ Newbie
 
Registered: Aug 2012
Posts: 1

Rep: Reputation: Disabled
Arrow From which file (not terminal command) can I read onboard GeForce GPU temperature?


I need to read the temperature of my GPU right from a "file" (actually right from the "files" used to communicate directly with the hardware), not from a Terminal command. It's an onboard nvidia geforce go 6150. Where can I find the temperature? Couldn't find it on /sys/class/thermal/ because the structure seems confusing.

For the ones interested in more info:
I've installed lubuntu on a hp pavillion dv6000 (which suffers from the dreaded problem with the chipset, which heats so much it cracks the solder joints and needs to be re-soldered). For obvious reasons, I want to monitor the GPU temperature. On lubuntu there's LXpanel, which has a temperature measuring widget which works normally for the CPU, reading from /sys/class/thermal/thermal_zone0/temp (celsius, number such as 35000).
I've tried to make this widget read from Terminal commands such as "nvidia-smi -q -d TEMPERATURE" (properly filtered with grep); also tried "nvidia-settings -q [gpu:0]/GPUCoreTemp -t". Both commands output the temperature I want to know, but the widget just shows "NA". So, I guess the widget tries to read from a file, not taking commands as arguments.
Tried to look around /sys/class/thermal/ and found shortcuts for "cooling_device0", "cooling_device1" and the already mentioned "thermal_zone0". Dug a bit into each of them, but everything is totally confusing for me. Haven't found any other file suggestively named "temp".
Even thought about writing some sort of script to dump the temperature to a file, but it might be cpu-costly and this machine is already damn slow (that's why I installed lubuntu on it). After all, the info's already somewhere in there, I just gotta know where to find it.

Last edited by elias.alberto; 08-20-2012 at 07:10 AM.
 
Old 08-20-2012, 12:09 PM   #2
abrinister
Member
 
Registered: Dec 2010
Location: Boston, MA, USA
Distribution: Arch Linux
Posts: 460

Rep: Reputation: 38
How about here?

Try this:
Code:
nvidia-smi -lso > temp.txt; cat temp.txt | grep Temperature > finaltemp
Alex Brinister
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GPU temperature and fan speed? lugoteehalt Linux - Hardware 10 04-09-2011 03:39 PM
Change nvidia gpu shutdown temperature? dustin2128 Slackware 3 03-26-2011 04:31 PM
No Picture, onboard video and geforce fx 5500 vid card on system, using geforce?? dragoncorp.org Linux - Newbie 1 04-17-2006 01:56 PM
Will Debian 3.1 support a Geforce FX5500 GPU? fields987 Debian 1 07-28-2005 02:31 PM
gkrellm and nvidia gpu temperature nemesi Slackware 1 03-22-2005 05:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration