Kodi Community Forum

Full Version: ATI Fanspeed
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is on xbmcbuntu, I can control the fanspeed manually by doing
DISPLAY=:0.0 aticonfig --pplib-cmd "set fanspeed 0 20"

I would like this to be saved or to happen automatically each time I start up.

I tried doing crontab -e

@reboot DISPLAY=:0.0 aticonfig --initial -f
@reboot DISPLAY=:0.0 aticonfig --pplib-cmd "set fanspeed 0 20"

doesn't work

tried putting n a
@reboot DISPLAY=:0.0 aticonfig --pplib-cmd "set fanspeed 0 20" in a file called ati.sh making executable and putting in init.d but this doesn not work.

tried putting
DISPLAY=:0.0 aticonfig --pplib-cmd "set fanspeed 0 20"
in rc.local

Can please someone tell me exactly how I do this?
solution provided by dlast on ubuntu forums

I made it work by putting the command into a script (/usr/local/bin/setfanspeed ; don't forget to chmod +x setfanspeed) and setting this script in /etc/lightdm/lightdm.conf : adding a line
display-setup-script=/usr/local/bin/setfanspeed

for debugging the script startup you can also add some redirection of the output and log it into a file:
DISPLAY=:0.0 aticonfig --pplib-cmd "set fanspeed 0 20" 2> /tmp/setfanspeed.err.log > /tmp/setfanspeed.log