Kodi Community Forum
[Solved] No CPU/GPU temp reported in Kodi - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: [Solved] No CPU/GPU temp reported in Kodi (/showthread.php?tid=216499)



[Solved] No CPU/GPU temp reported in Kodi - BWNautilus - 2015-01-27

Did a fresh install of 14.0. No CPU/GPU temp reported in System info. They both report as "?". I remember getting CPU/GPU temp in 13.1. Is there something in the BIOS I have to enable? CPU: i3-3225, GPU: Mesa DRI Ivybridge, OpenGL version 3.0 Mesa 10.1.3.

Thanks


RE: No CPU/GPU temp reported in Kodi - zag - 2015-01-28

Yep same problem here for CPU.

GPU shows fine though.

NUC haswell setup


RE: No CPU/GPU temp reported in Kodi - alecmascot - 2015-01-28

I use this method in advancedsettings.xml :

Code:
<cputempcommand>sensors|sed -ne "s/CPU Temperature: \+[-+]\([0-9]\+\).*/\1 C/p"</cputempcommand>
<gputempcommand>echo "$(nvidia-smi -q -d temperature | grep Gpu | cut -c35-37) C"</gputempcommand>

Sensors needs to be installed.


RE: No CPU/GPU temp reported in Kodi - Ectholian - 2015-02-04

just copy/paste both commands in the console (without the <tags>), ie:
sensors|sed -ne "s/CPU Temperature: \+[-+]\([0-9]\+\).*/\1 C/p"

They should give you a fairly good hint to what's wrong. Otherwise just type sensors in the console. It will give you a list of the sensor names.
The gpu command of alecmascot is only for nvidia.

I use these ones (e-350 cpu and ati card):
<cputempcommand>sensors k10temp-pci-00c3 | sed -ne "s/temp1: \+[-+]\([0-9]\+\).*/\1 C/p"</cputempcommand>
<gputempcommand>sensors radeon-pci-0008 | sed -ne "s/temp1: \+[-+]\([0-9]\+\).*/\1 C/p"</gputempcommand>

Otherwise just post the output of sensors Smile


RE: No CPU/GPU temp reported in Kodi - BWNautilus - 2015-02-08

The command:

sensors|sed -ne "s/CPU Temperature: \+[-+]\([0-9]\+\).*/\1 C/p"

gave no output. So I just ran sensors. Here's the output:

root@xbmc:~# sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +27.8°C (crit = +106.0°C)
temp2: +29.8°C (crit = +106.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +38.0°C (high = +85.0°C, crit = +105.0°C)
Core 0: +36.0°C (high = +85.0°C, crit = +105.0°C)
Core 1: +38.0°C (high = +85.0°C, crit = +105.0°C)

root@xbmc:~#

I never had this problem in Gotham -- my HW hasn't changed since I upgraded to Kodi. I have an ASUS P8H77-M PRO motherboard. Do I need to create a custom lm-sensors config file in /etc/sensors.d ? I see there is one for Asus P8H77-I here. Can I use this?


RE: No CPU/GPU temp reported in Kodi - BWNautilus - 2015-02-08

Problem solved. Here's my advancedsettings.xml:

<advancedsettings>
<useddsfanart>true</useddsfanart>
<cputempcommand>cputemp</cputempcommand>
<gputempcommand>gputemp</gputempcommand>
<samba>
<clienttimeout>30</clienttimeout>
</samba>
<network>
<disableipv6>true</disableipv6>
</network>
</advancedsettings>

When I tried to run cputemp I got:

-bash: /usr/bin/cputemp: Permission denied

Permissions for cputemp:

ls -l /usr/bin/cputemp
-rwxr--r-- 1 root root 962 Dec 24 03:59 /usr/bin/cputemp

Changing perms to allow execution:

chmod +x /usr/bin/cputemp /usr/bin/gputemp

Now temps are reported in Kodi!! Thx to previous posters.


[Solved] No CPU/GPU temp reported in Kodi - spookybathtub - 2015-10-02

Is there any security reason for only allowing root to execute cputemp? I had the same problem with a Kodibuntu installation. I think this should be considered a bug.


RE: [Solved] No CPU/GPU temp reported in Kodi - plasticjungle - 2016-01-30

Great guys!! I had the same problem and now it is solved, thank you!! Smile