distribution/packages/hardware/quirks/devices/AYANEO AIR/020-fan_control
fewtarius 972b2085f1
* Documentation update, AMD64 PS2 now defaults to pcsx2-sa on fresh flashes.
* JELOS Information now displays fan speed and CPU temp correctly on supported AYANEO and ayn Loki devices.
2023-10-01 18:08:59 +00:00

11 lines
451 B
Bash
Executable file

#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
cat <<EOF >/storage/.config/profile.d/020-fan_control
DEVICE_HAS_FAN="true"
DEVICE_PWM_FAN="$(find /sys/devices/platform/oxp-platform -name pwm1)"
DEVICE_FAN_INPUT="$(find /sys/devices/platform/oxp-platform -name fan*_input)"
DEVICE_TEMP_SENSOR="$(find /sys/devices/pci*/* -path "*/nvme" -prune -o -name temp1_input -print)"
EOF