mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 14:37:59 +00:00
cputemp: add amdgpu, prefer dedicated gpu
This commit is contained in:
parent
eef941cb6b
commit
5a9f7f2819
@ -19,14 +19,11 @@ if [ $(basename "$0") = "gputemp" -o "$1" = "gpu" ]; then
|
|||||||
for hwmon in /sys/class/hwmon/*; do
|
for hwmon in /sys/class/hwmon/*; do
|
||||||
if [ -f "${hwmon}/name" ]; then
|
if [ -f "${hwmon}/name" ]; then
|
||||||
case $(cat ${hwmon}/name) in
|
case $(cat ${hwmon}/name) in
|
||||||
nouveau|radeon)
|
nouveau|radeon|amdgpu)
|
||||||
[[ -f "${hwmon}/temp1_input" ]] && TEMP="$(cat ${hwmon}/temp1_input)" && break
|
|
||||||
[[ -f "${hwmon}/temp2_input" ]] && TEMP="$(cat ${hwmon}/temp2_input)" && break
|
|
||||||
;;
|
|
||||||
coretemp)
|
|
||||||
[[ -f "${hwmon}/temp1_input" ]] && TEMP="$(cat ${hwmon}/temp1_input)" && break
|
[[ -f "${hwmon}/temp1_input" ]] && TEMP="$(cat ${hwmon}/temp1_input)" && break
|
||||||
[[ -f "${hwmon}/temp2_input" ]] && TEMP="$(cat ${hwmon}/temp2_input)" && break
|
[[ -f "${hwmon}/temp2_input" ]] && TEMP="$(cat ${hwmon}/temp2_input)" && break
|
||||||
;;
|
;;
|
||||||
|
# intel gpu is supported by cpu coretemp below
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user