Title: AMDOverdriveCtrl in Linuxcoin startup script doesn't have any effect Post by: runeks on January 16, 2012, 07:04:08 PM 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: Code: #!/bin/bash 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: Code: 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. Title: Re: AMDOverdriveCtrl in Linuxcoin startup script doesn't have any effect Post by: Dutch Merganser on January 16, 2012, 07:10:08 PM 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: Code: #!/bin/bash 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: Code: 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. Title: Re: AMDOverdriveCtrl in Linuxcoin startup script doesn't have any effect Post by: runeks on January 16, 2012, 10:31:58 PM Yippee! Thank you! That did the trick. I had tried adding a line that said "DISPLAY=:0" before, but it didn't work properly. It seems it was the "export" keyword that was missing.
|