[Solved] No CPU/GPU temp reported in Kodi
#1
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
Reply
#2
Yep same problem here for CPU.

GPU shows fine though.

NUC haswell setup
Reply
#3
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.
Reply
#4
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
Reply
#5
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?
Reply
#6
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.
Reply
#7
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.
Reply
#8
Great guys!! I had the same problem and now it is solved, thank you!! Smile
Reply

Logout Mark Read Team Forum Stats Members Help
[Solved] No CPU/GPU temp reported in Kodi0