You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



How do I find the GPU temperature of an Intel card using command-line?

Author (Read 15501 times)

0 Members and 3 Guests are viewing this topic.

Re: How do I find the GPU temperature of an Intel card using command-line?
« Reply #8 on: September 15, 2019, 12:46:25 PM »
 

Moltke

  • Platinum Level Poster
  • **********
  • 1134
    Posts
  • Reputation: 126
  • Linux Lite Member
    • View Profile

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750

  • Kernel: 5.x
@Moltke
Thanks for your reply - unfortunately this doesn't seem to work for the GPU (at least for the Dell Latitude D630), see below:
Code: [Select]
mike@D630:~$ inxi -s
Sensors:   System Temperatures: cpu: 38.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
mike@D630:~$

For some reason it says mobo is not available (not detected), and of course the Intel card is integrated into the mobo, so therefore no GPU temperature reading ...

I notice the temperatures on your setup are pretty high (75-76 C); maybe more cooling needed ...

Yes, I have to do something about it. I used to have this "cooling fan" I placed under the laptop but it broke and I  haven't been able to buy a new one, they got pretty expensive down here.  Also, temperatures here where I live are pretty high right now, it is like hell on earth whenever I go out lol
Without each others help there ain't no hope for us :)
Need a translation service? https://www.deepl.com/es/translator
 

Re: How do I find the GPU temperature of an Intel card using command-line?
« Reply #7 on: September 15, 2019, 12:28:20 PM »
 

Moltke

  • Platinum Level Poster
  • **********
  • 1134
    Posts
  • Reputation: 126
  • Linux Lite Member
    • View Profile

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750

  • Kernel: 5.x
You can also add to Lite's conky widget with something like below, but you'll have to figure out which is the right number sensor.
${hwmon temp 2}C
Also possible with lm sensors like the syntax below for conky for CPU multiple cores
${exec sensors | grep 'Core 0' | awk '{print $3}' | cut -c2-3}°C
Updates will be at conky's pace.You can also display in conky from cat like already suggested.

TC

@trinidad  I was just thinking in this. I just can't figure out how to.  BTW, this:
Code: [Select]
${exec sensors | grep 'Core 0' | awk '{print $3}' | cut -c2-3}°C didn't work for me nor did
Code: [Select]
${hwmon temp 2}C conky widget only shows  "ºC" but no temps are shown.
EDIT:
Aha! Figured it out
Code: [Select]
${execi 60 sensors | grep temp1 | cut -c 16-19}°C adding this line to my .conkyrc made the trick. Thanks to your code/line  :)
« Last Edit: September 15, 2019, 12:36:00 PM by Moltke »
Without each others help there ain't no hope for us :)
Need a translation service? https://www.deepl.com/es/translator
 

Re: How do I find the GPU temperature of an Intel card using command-line?
« Reply #6 on: September 15, 2019, 11:35:03 AM »
 

trinidad

  • Platinum Level Poster
  • **********
  • 1463
    Posts
  • Reputation: 212
  • Linux Lite Member
    • View Profile
    • dbts-analytics.com

  • CPU: i7 4 cores 8 threads

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD graphics

  • Kernel: 5.x
You can also add to Lite's conky widget with something like below, but you'll have to figure out which is the right number sensor.
${hwmon temp 2}C
Also possible with lm sensors like the syntax below for conky for CPU multiple cores
${exec sensors | grep 'Core 0' | awk '{print $3}' | cut -c2-3}°C
Updates will be at conky's pace.You can also display in conky from cat like already suggested.

TC
« Last Edit: September 15, 2019, 11:38:37 AM by trinidad »
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 

Re: How do I find the GPU temperature of an Intel card using command-line?
« Reply #5 on: September 15, 2019, 10:30:08 AM »
 

Moltke

  • Platinum Level Poster
  • **********
  • 1134
    Posts
  • Reputation: 126
  • Linux Lite Member
    • View Profile

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750

  • Kernel: 5.x
Quote
product: Mobile GM965/GL960 Integrated Graphics Controller (primary)
Upon some reading, it seems that on machines with no dedicated GPU but integrated ones only, both cpu and gpu temps are the same. However, you could try finding temps on "/sys/class/"  from a terminal do
Code: [Select]
ls /sys/class/ you'll see something similar to this:
Code: [Select]
$ ls /sys/class/
ata_device  devcoredump     gpio         kfd            net           pwm           scsi_host    vtconsole
ata_link    devfreq         graphics     leds           nvme          rapidio_port  sound        watchdog
ata_port    dma             hidraw       mdio_bus       pci_bus       regulator     spi_master   wmi
backlight   dmi             hwmon        mem            phy           rfkill        thermal
bdi         drm             i2c-adapter  memstick_host  powercap      rtc           tpm
block       drm_dp_aux_dev  ieee80211    misc           power_supply  scsi_device   tty
bluetooth   extcon          input        mmc_host       pps           scsi_disk     vc
bsg         firmware        iommu        nd             ptp           scsi_generic  video4linux
CPU temps are usually read from /hwmon/hwmon0/temp1_input, so if I run here
Code: [Select]
cat /sys/class/hwmon/hwmon0/temp1_input I get this
Code: [Select]
67000 which is the temperature for the cpu, as for the gpu temps they can be read from /graphics/fb0/device/hwmon/hwmon2/temp1_input so running
Code: [Select]
cat /sys/class/graphics/fb0/device/hwmon/hwmon2/temp1_input shows
Code: [Select]
66000 which is about the same than the cpu reports. So you could try something like this
Code: [Select]
watch -c cat /sys/class/graphics/fb0/device/hwmon/hwmon2/temp1_input which will monitor the gpu temps every 2 secs.

Hope this helps! :)
Without each others help there ain't no hope for us :)
Need a translation service? https://www.deepl.com/es/translator
 

Re: How do I find the GPU temperature of an Intel card using command-line?
« Reply #4 on: September 15, 2019, 08:59:47 AM »
 

m654321

  • Gold Level Poster
  • *******
  • 893
    Posts
  • Reputation: 86
  • Linux Lite Member, 'Advocate' & Donator
    • View Profile

  • CPU: Intel Pentium [email protected] (2cores) on an Asus X71Q

  • MEMORY: 4Gb

  • VIDEO CARD: Intel GM45 Express Chipset

  • Kernel: 4.x
@Moltke
Thanks for your reply - unfortunately this doesn't seem to work for the GPU (at least for the Dell Latitude D630), see below:
Code: [Select]
mike@D630:~$ inxi -s
Sensors:   System Temperatures: cpu: 38.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
mike@D630:~$

For some reason it says mobo is not available (not detected), and of course the Intel card is integrated into the mobo, so therefore no GPU temperature reading ...

I notice the temperatures on your setup are pretty high (75-76 C); maybe more cooling needed ...
« Last Edit: September 15, 2019, 09:09:32 AM by m654321 »
64bit OS (32-bit on Samsung netbook) installed in Legacy mode on MBR-formatted SSDs (except pi which uses a micro SDHC card):
2017 - Raspberry pi 3B (4cores) ~ [email protected] - LibreElec, used for upgrading our Samsung TV (excellent for the task)  
2012 - Lenovo G580 2689 (2cores; 4threads] ~ [email protected] - LL3.8/Win8.1 dual-boot (LL working smoothly)
2011 - Samsung NP-N145 Plus (1core; 2threads) ~ Intel Atom [email protected] - LL 3.8 32-bit (64-bit too 'laggy')
2008 - Asus X71Q (2cores) ~ Intel [email protected] - LL4.6/Win8.1 dual-boot, LL works fine with kernel 4.15
2007 - Dell Latitude D630 (2cores) ~ Intel [email protected] - LL4.6, works well with kernel 4.4; 4.15 doesn't work
 

Re: How do I find the GPU temperature of an Intel card using command-line?
« Reply #3 on: September 14, 2019, 10:42:44 AM »
 

trinidad

  • Platinum Level Poster
  • **********
  • 1463
    Posts
  • Reputation: 212
  • Linux Lite Member
    • View Profile
    • dbts-analytics.com

  • CPU: i7 4 cores 8 threads

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD graphics

  • Kernel: 5.x
LL comes with inxi already installed.
TC
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 

Re: How do I find the GPU temperature of an Intel card using command-line?
« Reply #2 on: September 14, 2019, 09:51:53 AM »
 

Moltke

  • Platinum Level Poster
  • **********
  • 1134
    Posts
  • Reputation: 126
  • Linux Lite Member
    • View Profile

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750

  • Kernel: 5.x
Quote
Using command-line, how can I get the GPU temperatures?
  You might try with
Code: [Select]
inxi -s This is what it shows here
Code: [Select]
inxi -s
Sensors:   System Temperatures: cpu: 75.5 C mobo: N/A gpu: radeon temp: 76 C
           Fan Speeds (RPM): N/A

To install just run
Code: [Select]
sudo apt-get install inxi
Hope this helps! :)
Without each others help there ain't no hope for us :)
Need a translation service? https://www.deepl.com/es/translator
 

How do I find the GPU temperature of an Intel card using command-line?
« Reply #1 on: September 14, 2019, 06:53:56 AM »
 

m654321

  • Gold Level Poster
  • *******
  • 893
    Posts
  • Reputation: 86
  • Linux Lite Member, 'Advocate' & Donator
    • View Profile

  • CPU: Intel Pentium [email protected] (2cores) on an Asus X71Q

  • MEMORY: 4Gb

  • VIDEO CARD: Intel GM45 Express Chipset

  • Kernel: 4.x
I sometimes use the 'sensors' with/without the 'watch'  command in terminal to check on CPU temperatures. On the same machine, I'd like to check GPU temperatures - I can find info on this for nvidia GPUs on the web, but not Intel ones. The Dell Lattitude D630 in question (my daily driver - see signature) has an Intel card - details of its video card are contained in the following:
Code: [Select]
mike@D630:~$ sudo lshw -C display
[sudo] password for mike:
  *-display:0             
       description: VGA compatible controller
       product: Mobile GM965/GL960 Integrated Graphics Controller (primary)
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 0c
       width: 64 bits
       clock: 33MHz
       capabilities: msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:27 memory:f6e00000-f6efffff memory:e0000000-efffffff ioport:efe8(size=8)
  *-display:1 UNCLAIMED
       description: Display controller
       product: Mobile GM965/GL960 Integrated Graphics Controller (secondary)
       vendor: Intel Corporation
       physical id: 2.1
       bus info: pci@0000:00:02.1
       version: 0c
       width: 64 bits
       clock: 33MHz
       capabilities: pm bus_master cap_list
       configuration: latency=0
       resources: memory:f6f00000-f6ffffff


Using command-line, how can I get the GPU temperatures?
« Last Edit: December 01, 2019, 09:03:55 PM by firenice03 »
64bit OS (32-bit on Samsung netbook) installed in Legacy mode on MBR-formatted SSDs (except pi which uses a micro SDHC card):
2017 - Raspberry pi 3B (4cores) ~ [email protected] - LibreElec, used for upgrading our Samsung TV (excellent for the task)  
2012 - Lenovo G580 2689 (2cores; 4threads] ~ [email protected] - LL3.8/Win8.1 dual-boot (LL working smoothly)
2011 - Samsung NP-N145 Plus (1core; 2threads) ~ Intel Atom [email protected] - LL 3.8 32-bit (64-bit too 'laggy')
2008 - Asus X71Q (2cores) ~ Intel [email protected] - LL4.6/Win8.1 dual-boot, LL works fine with kernel 4.15
2007 - Dell Latitude D630 (2cores) ~ Intel [email protected] - LL4.6, works well with kernel 4.4; 4.15 doesn't work
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section