Hey all
I would like to use AMDOverdriveCtrl to set the core clock and voltage of the two GPUs in my my mining rig - a 5870 and a 5770.
I have successfully made a script that sets these properties, and added it to be run in /etc/rc.local. The script looks like this:
#!/bin/bash
sleep 30
cd /home/user/
AMDOverdriveCtrl -b -i 3 .AMDOverdriveCtrl/5770.ovdr >> logs/overdrive.log 2>&1
AMDOverdriveCtrl -b -i 0 .AMDOverdriveCtrl/5870.ovdr >> logs/overdrive.log 2>&1
The problem is that when I start up my mining rig, and run "aticonfig --odgc" to see the clocks of my cards, they're at their default clocks (and voltages). So the script hasn't had any effect. This is printed to the log file:
Error: Unable to initialize gtk, is DISPLAY set properly?
Error: Unable to initialize gtk, is DISPLAY set properly?
The script works fine if I log in via SSH and execute it manually. But when run from /etc/rc.local, it prints the error message above.
You probgably need to export the DISPLAY variable: the following works for me from cron and such:
export DISPLAY=':0'/opt/bin/aticonfig --od-enable
/opt/bin/aticonfig --odgc
/opt/bin/aticonfig --odsc=900,1150
It just occurred to me that that can be more than one DISPLAY address, e.g. ':1' with a multi-card setup, I don't have a way to test this. Perhaps someone else can help here, as nor do I use the AMDOverdriveCtrl.