mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-03 07:57:49 +00:00
xbmc: change detection of GPU temperature because of a format change in output of nvidia-smi, thanks to gilphilbert and xe`
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
4950cfdc7a
commit
859a84f5b8
@ -23,7 +23,7 @@
|
||||
TEMP="0"
|
||||
|
||||
if lspci -n | grep 0300 | grep -q 10de; then
|
||||
[ -f /usr/bin/nvidia-smi ] && TEMP=`/usr/bin/nvidia-smi -a | grep 'Temperature' | awk '{print $3}'`
|
||||
[ -f /usr/bin/nvidia-smi ] && TEMP=`/usr/bin/nvidia-smi -q -x | grep 'gpu_temp' | awk '{ print $1 }' | sed 's,<gpu_temp>,,g'`
|
||||
fi
|
||||
|
||||
echo "${TEMP} C"
|
||||
|
Loading…
x
Reference in New Issue
Block a user