On 18/04/16(Mon) 00:22, Marcus Glocker wrote: > On Sun, Apr 17, 2016 at 11:33:18PM +0200, Olivier Cherrier wrote: > > > With this diff, the fans go at their maximun speed and stay like that: > > $ sysctl hw.sensors > > hw.sensors.smu0.temp0=31.75 degC (CPU T-Diode) > > hw.sensors.smu0.fan0=4018 RPM (System Fan) > > hw.sensors.smu0.fan1=4018 RPM (CPU fan) > > hw.sensors.smu0.fan2=4018 RPM (Hard Drive) > > hw.sensors.smu0.volt0=11.88 VDC (CPU Voltage) > > hw.sensors.smu0.current0=0.59 A (CPU Current) > > hw.sensors.lmtemp0.temp0=31.00 degC > > > > In this version (the patch you sent), nothing is responsible of setting the > > fan speeds according to the temp; isn't it ? > > Yes, I was just looking after adjusting the setting of the initial fan > speed to something more silent than currently :-) The fan control based > on the temperature would be the next step, like you and mpi@ already > provided some diffs. I'll try to test them soon as well. > > On your machine there is no average value at all. Just min-value and > max-value. If the average value can't be figured out I personally would > prefer trying to set the initial fan speed to min-value then.
Looking at all the G5 device-trees I found, the value of "unmanage-value" always match the "max-value" of the same node. So I'd suggest using that. Note that there's some code in FreeBSD to do proper sensor management via i2c, porting that might be a more complete solution.
