distribution/packages/hardware/quirks/devices/ayn Loki Max/020-fan_control
fewtarius 947c482a37
* Improved support for AMD p-state drivers (<7w idle on AMD 6800U).
* Break Loki Zero link to configure proper default TDP for Max and MiniPro.
* Revert drain when charged while powered off support for RK3566.
2023-11-26 19:03:00 +00:00

11 lines
444 B
Bash
Executable file

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