distribution/packages/sysutils/autostart/sources/quirks/AYANEO AIR/002-fancontrol
fewtarius 4b9e65325f
* Update kernel and OS to support AyaNeo Air / Air Pro fan control.
* Bump WIFI drivers.
* Add WIFI module quirk and WIFI not waking from sleep on Air.
* Fix splash screen on rotated displays.
* Move autostart to its own package.
2022-12-19 17:14:32 -05:00

18 lines
493 B
Bash

#!/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="/sys/devices/platform/oxp-platform/hwmon/hwmon4/pwm1"
DEVICE_TEMP_SENSOR="/sys/class/hwmon/*/temp1_input"
echo 1 >/sys/devices/platform/oxp-platform/hwmon/hwmon4/pwm1_enable
EOF