mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +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
|
||||
if [ -f "${hwmon}/name" ]; then
|
||||
case $(cat ${hwmon}/name) in
|
||||
nouveau|radeon)
|
||||
[[ -f "${hwmon}/temp1_input" ]] && TEMP="$(cat ${hwmon}/temp1_input)" && break
|
||||
[[ -f "${hwmon}/temp2_input" ]] && TEMP="$(cat ${hwmon}/temp2_input)" && break
|
||||
;;
|
||||
coretemp)
|
||||
nouveau|radeon|amdgpu)
|
||||
[[ -f "${hwmon}/temp1_input" ]] && TEMP="$(cat ${hwmon}/temp1_input)" && break
|
||||
[[ -f "${hwmon}/temp2_input" ]] && TEMP="$(cat ${hwmon}/temp2_input)" && break
|
||||
;;
|
||||
# intel gpu is supported by cpu coretemp below
|
||||
esac
|
||||
fi
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user