fan continously runs on kernel 5.8 but I need to use 5. kernel for PCIe sata card
#2
The 5.x kernels define a pwm-fan device in the device tree, but don't set up any parameters to control it, so the kernel turns it fully on by default.

On 5.x kernels, you should have a sysfs file /sys/devices/platform/pwm-fan/hwmon/hwmon0/pwm1 which can be used to control the fan from userspace, e.g.
Code:
echo 128 > /sys/devices/platform/pwm-fan/hwmon/hwmon0/pwm1
writing values 0 to 255 to the file will set the speed to approx 0 to 100%.

More advanced, you can have the kernel thermal subsystem to control the fan, e.g. by applying this device tree overlay to your device tree - it runs the fan progressively more as CPU speed rises through 54-64°C. For more detail Read the documentation on how thermal devices are described in device trees.


Messages In This Thread
RE: fan continously runs on kernel 5.8 but I need to use 5. kernel for PCIe sata card - by sigmaris - 10-19-2020, 03:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to use ROCKPro64 PCI-e X4 to M.2/NGFF NVMe SSD Interface Card jykeith123 1 397 11-26-2024, 11:08 AM
Last Post: wdt
  Mainline U-Boot with SPI, NVMe and SATA boot support sigmaris 108 143,196 09-25-2023, 12:46 AM
Last Post: ChriChri
  PCIE interface power on too late Slark Xiao 0 1,339 11-29-2022, 11:56 PM
Last Post: Slark Xiao
  Sata HD stopped booting db579 2 2,805 03-11-2022, 03:34 PM
Last Post: db579
  PCIe gen1 timeout - how to debug tosi 3 5,510 03-10-2022, 05:06 PM
Last Post: db579
  Anyone try an NVIDIA GPU in the PCIe slot? Paraplegic Racehorse 0 1,981 04-15-2021, 11:46 AM
Last Post: Paraplegic Racehorse
  Never ever mix up CPU board connector with 8-pin PCIE connector LMM 0 2,033 02-11-2021, 10:18 AM
Last Post: LMM
  PCIe Armbian and Ayufan for nvme ssd LMM 1 3,132 02-03-2021, 04:38 PM
Last Post: LMM
Bug Constant freezes or kernel panics data_kraken 7 8,664 12-23-2020, 11:17 AM
Last Post: LMM
  Rockpro64 with PCI FC Card - Not booting (Sometimes) MSteam 1 3,300 10-25-2020, 07:42 PM
Last Post: MSteam

Forum Jump:


Users browsing this thread: 5 Guest(s)