I didn't test yet, but seems good for my porpose... I will test later today, but I have one question.
this line is correct?
CURSPD=`aticonfig --pplib-cmd "get fanspeed 0" | grep Result | sed 's/.* \([0-9]*[0-9][0-9]\)\%.*/\1/'`
the get fanspeed 0 part... is 0 for device?
if yes, I will just change it to 1 over device 2, correct?
Yes that's correct. aticonfig get the parameters for the card according to the DISPLAY variable. The DISPLAY variable has the device number assigned to it: