Since nothing survives a reboot on a S5, you'll have to do this a little different than the S4 to test without repacking the firmware.
To use it :
Change 192.168.0.16 with the Ip address of your miner
scp bitmain_spi_fan_6.ko root@192.168.0.16:/lib/modules/3.8.13/kernel/drivers/bitmain/ #Copy the file to the miner
then ssh to the miner :
ssh
root@192.168.0.16then :
cp /lib/modules/3.8.13/kernel/drivers/bitmain/bitmain_spi.ko /config/bitmain_spi_original.ko #Makes a backup
cp /lib/modules/3.8.13/kernel/drivers/bitmain/bitmain_spi_fan_6.ko /lib/modules/3.8.13/kernel/drivers/bitmain/bitmain_spi.ko # Copy the new file to the good place
cd /etc/init.d/ #Change directories
./cgminer.sh restart # Restart cgminer
I've tested both files:
Ambient temps here today are -5 C & I'm running 9 miners in this rack.
bitmain_spi_s5_fan_6.ko runs the fans at 3240 RPM and temps are averaging 56 C
bitmain_spi_s5_fan_3.ko runs the fans at 2760 RPM and temps are averaging 66 C