Hello,
yesterday i installed ubuntu on my mining rigs , and ran on some problems setting Fan speed using sgminer, because AMD drivers do not let you set the fan speed using ubuntu through sgminer commands, so i created this script that will set your fan speed to 80% aprox and Start sgminer.
settings for : 4*radeon rx470 AMDGPU-PRO Driver 17.10 , Ubuntu 16.04
Each one giving 1.5 mh/s , running at 80% fan speed, 70°-74° Celsius.
#!/bin/bash
cd /root/sgminer
export DISPLAY=:0
export DISPLAY=:1
export DISPLAY=:2
export DISPLAY=:3
export GPU_MAX_ALLOC_PERCENT=100
export GPU_USE_SYNC_OBJECTS=1
echo 190 > /sys/class/drm/card0/device/hwmon/hwmon0/pwm1
echo 190 > /sys/class/drm/card1/device/hwmon/hwmon1/pwm1
echo 190 > /sys/class/drm/card2/device/hwmon/hwmon2/pwm1
echo 190 > /sys/class/drm/card3/device/hwmon/hwmon3/pwm1
./sgminer -k xevan-mod -o stratum+tcp://bsd.suprnova.cc:8686 -u username -p password --temp-cutoff 88 --temp-overheat 75 --temp-target 70 -I 18
also install lm-sensors:
sudo apt-get install lm-sensors
Detect all sensors (say yes to all):
sudo sensors-detect
and install our sensors monitor in this case psensor:
sudo apt-get install psensor
and voila! why install psensor? sgminer in ubuntu do not show Fan speed RPM using AMDGPU-PRO Driver , so you will have to monitor temperature using external software
hope it helps you all!
regards
IParn