mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
Merge pull request #2899 from mglae/master_amd_temp
cputemp: add amdgpu, prefer dedicated gpu
This commit is contained in:
commit
4bece6e4db
@ -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