aticonfig fan speeds
#7
BTW here's the shell script I use. Keep in mind I have two GPUs and this script only adjusts the second one (the first one has no fan). Do I need a separate account for the wiki?

Code:
#!/bin/bash

##
# atifan.sh v1.0
# by chort
##

# Which GPU device you're modifying. If you have only one GPU, it's 0
DEVICE=0

# If you have more than one GPU, change DISPLAY value to match the specific card
# :0.0 = device 1, :0.1 = device 2, :0.2 = device 3, etc.
# Cards with 2 GPUs (5970, 6990) might have two fans, which are treated as separate device
export DISPLAY=":0.${DEVICE}"

function usage {
        echo "Usage: $0 [get|set <%>]"
}

if [ -z "$1" ]
then  
        usage
fi

if [ X"$1" == "Xget" ]
then  
        aticonfig --pplib-cmd "get fanspeed 0"
        aticonfig --adapter=$DEVICE --odgt
fi

if [ X"$1" == "Xset" ]
then  
        if [ $2 -gt 9 2>/dev/null ] && [ $2 -lt 99 ]
        then  
                echo "Setting fanspeed to ${2}%"
                aticonfig --pplib-cmd "set fanspeed 0 $2"
                aticonfig --pplib-cmd "get fanspeed 0"
        else
                # Only values from 10% to 100% are valid
                usage
        fi
fi


Messages In This Thread
aticonfig fan speeds - by chort - 11-30-2011, 01:02 AM
RE: aticonfig fan speeds - by atom - 11-30-2011, 11:54 AM
RE: aticonfig fan speeds - by chort - 11-30-2011, 07:58 PM
RE: aticonfig fan speeds - by KT819GM - 11-30-2011, 08:22 PM
RE: aticonfig fan speeds - by chort - 11-30-2011, 08:36 PM
RE: aticonfig fan speeds - by atom - 12-01-2011, 11:08 AM
RE: aticonfig fan speeds - by chort - 12-19-2011, 01:04 AM
RE: aticonfig fan speeds - by splash_ - 07-31-2012, 06:13 PM