distribution/packages/hardware/quirks/devices/AYANEO AIR/002-fancontrol
fewtarius 668f91fbb2
* Add platform quirks feature.
* Clean up quirks.
* New AMD default TDP (15w).
* Fix GPU perf setting bug.
2023-07-25 21:06:19 +00:00

17 lines
473 B
Bash
Executable file

#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
. /etc/profile
if [ ! -d "/storage/.config/profile.d" ]
then
mkdir -p /storage/.config/profile.d
fi
cat <<EOF >/storage/.config/profile.d/002-fancontrol
DEVICE_HAS_FAN=true
DEVICE_PWM_FAN="$(find /sys/devices/platform/oxp-platform -name pwm1)"
DEVICE_TEMP_SENSOR="$(find /sys/devices/pci*/* -path "*/nvme" -prune -o -name temp1_input -print)"
EOF