On Ubuntu 14.04 I got used to run during the boot process a python script for conky to read my GPU temperature and then change my FAN speed according to the temperature. This is the script:
#
# python /home/ibart/.scripts/ventola_ati.py
#
import os
import time
minTemp = 45.00
maxTemp = 70.00
minSpeed = 10
maxSpeed = 90
updateInterval = 3
fanSpeed = 25
while True:
f = os.popen('aticonfig --od-gettemperature | grep "Sensor 0" | cut -c43-47')
currentTemp = eval(str(f.readlines())[2:7])
if currentTemp > maxTemp:
if fanSpeed < maxSpeed:
fanSpeed = fanSpeed + 1
if currentTemp < minTemp:
if fanSpeed > minSpeed:
fanSpeed = fanSpeed - 1
os.system('aticonfig --pplib-cmd "set fanspeed 0 ' + str(fanSpeed) + '"')
print fanSpeed
print currentTemp
time.sleep(updateInterval)
What now that Ubuntu dropped the official drivers for my card, an old and fancy HD5770?
Thanks.
edit. On 16.04 sensors
detects it. Thanks Luca.
– Mich. Gio. Apr 20 '16 at 10:31ibart@quad:~$ sensors radeon-pci-0100 Adapter: PCI adapter temp1: +49.0°C (crit = +120.0°C, hyst = +90.0°C)
Is it possible to change its speed setting without aticonfig?sensors
doesn't get the fan so I don't think I can manage to change the speed at all. I'll give a try reading. Bye! – Mich. Gio. Apr 20 '16 at 11:14