Rockpi-poe.service fan control

I cannot find any instruction on internet about how to configure /etc/rockpi-poe.conf to my liking. Right now the device is constantly at 52 degree but the fan is way too noisy, it is like at full speed…

lv0 = 40
lv1 = 45
lv2 = 50
lv3 = 55

What do lv0-3 mean, and what does the number for each level mean?

If it is the same as in the Rock NAS, then lv0 == 25%, lv1 == 50%, lv2 == 75%, lv3 == 100%.
The numbers are the threshold in °C, i.e. if temperature is >=50°C and <55°C set the fan to 75%…
hence for your 52°C the fan is at 75%.

However, constant 52° is strange. My NAS is typically at 40°C with no load. Check the head sink.

@XT3 Thank you for your reply.

Constantly 52°C is the full load temperature. I have the following config right now but the fan is still super noisy while the current temperature is still 52ish.

lv0 = 60
lv1 = 65
lv2 = 70
lv3 = 75

and have the following error
systemd[1]: Started Rockpi PoE-FAN.
libmraa[1536]: libmraa version v2.1.0-24-gbd91964 initialised by user ‘root’ with EUID 0
libmraa[1536]: gpio: platform doesn’t support chardev, falling back to sysfs
libmraa[1536]: libmraa initialised for platform ‘ROCK Pi 4’ of type 20
libmraa[1536]: pwm_init: pwm0 already exported, continuing
libmraa[1536]: pwm0 write_duty: Failed to write to duty_cycle: Invalid argument

pwm0 and pwm1 are on in /boot/hw_intfc.conf

if i understand correctly 52 should make the fan stop because it is below the lv0 threshold. Between 60 and 65 it hits lv0 so 25% fan speed. Do you have any idea what’s going on? Thanks!

Because I have no PoE, I cannot help here, however there is an Armbian thread with the same problem:

Check if you have the “rockpi-poe.dtbo” loaded and the additional pwm exists. Otherwise my advice would be to download the libmraa/poe source, build it and debug…