I got my R4 and installed OWRT last snapshot.
Unfortunalely I can’t set up the fan to start at a certain temperature.
I got it working with my R3 and last OWRT stable by setting the threshold temperature:
Hi Frank thanks for the answer.
Do you think a temp of around 48° using only a passive heat sink would be ok?
What is the working temp range for the CPU?
I’m using a 50x61x13.8 heatsink (GPU/VGA type heatsink) with a 5v 4000 rpm fan, no PWM support, but it’s quiet (not silent). Not more than 40db, aka quiet library. Needed to trim just a couple edges off to keep it from touching any other board components.
Attached with some thermal tape (0.5mm on the cpu, 1mm on the emmc and ram).
root@bpi-r4:~# sensors; stress -c 4 -t 120; sensors; echo "sleeping 30 sec"; sleep 30; sensors
cpu_thermal-virtual-0
Adapter: Virtual device
temp1: +34.7 C
nvme-pci-20100
Adapter: PCI adapter
Composite: +34.9 C (low = -0.1 C, high = +86.8 C)
(crit = +89.8 C)
Sensor 1: +34.9 C (low = -273.1 C, high = +65261.8 C)
stress: info: [20539] dispatching hogs: 4 cpu, 0 io, 0 vm, 0 hdd
stress: info: [20539] successful run completed in 120s
cpu_thermal-virtual-0
Adapter: Virtual device
temp1: +40.8 C
nvme-pci-20100
Adapter: PCI adapter
Composite: +35.9 C (low = -0.1 C, high = +86.8 C)
(crit = +89.8 C)
Sensor 1: +35.9 C (low = -273.1 C, high = +65261.8 C)
sleeping 30 sec
cpu_thermal-virtual-0
Adapter: Virtual device
temp1: +36.1 C
nvme-pci-20100
Adapter: PCI adapter
Composite: +35.9 C (low = -0.1 C, high = +86.8 C)
(crit = +89.8 C)
Sensor 1: +35.9 C (low = -273.1 C, high = +65261.8 C)
root@bpi-r4:~#
I do like the bequiet fans, they have a 80mm one that would probably be better for you. Lower current draw and would fit the board better. You can technically drive them at 5v also, it just reduces their static pressure and some airflow (due to reduced RPM), but since you’re not using an enclosure and have several times the airflow needed already, that’s not going to be an issue.
I saw this fix ported in snapshots some days ago:
mediatek: fix version tag in thermal patches
mediatek: fix version tag in thermal patches
Some backported thermal patches ended up with the wrong…
…“mediatek: backport a hell of thermal commits”)
Is this having impact on the fan management?
As a passive heatsink it seems to be doing “meh” (sensors reports ~47°C when idle, ~52°C when running stress on all four cores) but I’d like to see how it performs when the fan is actually on (LOL).
For reference, here’s what it looks like attached and plugged in:
BTW: If you’re curious about that open-top case: That’s a parametric OpenSCAD 3D-printable case I’m working on. I’ll post it here (and Github) when it’s done (still haven’t coded the front plate yet). When it’s done you’ll be able to specify how much space you want above/below the board, whether and where you want antenna holes, whether or not to include various mounting options, etc. Neat feature: I made it so you can feel/press the WPS and Reset buttons via little flexure tabs/buttons (no need to get a needle hehe)
Strange. Are ou sure you connected the rigth pins? starting from the heatsink red,black and yellow(the farest from the heatsink?
I would love to find a solution, but at the moment there is not.
I build yesterday the snapshot, and the thermal patches did not have any impact on this issue.
Let’s wait and see.
I’m not sure daniel have already tested pwm and the fan socket…maybe there is additional work needed as we focus currently on network parts (ethernet/wifi).
Basicly for fan control you need thermal patches (lvts with infracfg-reset as depency) for reading temparature,then pwm for controlling the fan and finally the definition of cooling maps to bring both together.
I don’t think we’ll get the fan working until PWM support is added to OpenWRT (for this hardware).
For reference, I was able to get my heatsink fan spinning by manually pressing some 3.3V (would’ve used 5V but 3.3V was handy ) jumper wires to the positive (red) and negative (black) pins on the connector. Though it seemed to be spinning the wrong way (sucking air in from above as opposed to blowing it up and out). At least I can confirm that the fan does work
BTW: It was nice and quiet. Nearly silent
Based on this info I know the BPi-R4 isn’t supplying power via that “FAN” connector with the latest OpenWRT image (which I downloaded two days ago). I wonder where in the kernel tree we’d need to mess with things in order to add PWM support?