I have wrote this script to automatically start bfgminer after X loads and it has been working fine. Until I compiled from git with scrypt enabled to mine litecoins. Now whenever it runs on start up, the GPU shows "ERR". If I comment out the command to run bfgminer then run that part manually after the computer starts, everything works fine.
Any thoughts?
#!/bin/sh
if pidof -x bfgminer > /dev/null
then
echo "bfgminer is running."
else
DATE=$(date +"%Y%m%d%H%M");
#
# Overclock The GPUs
#
# Uncomment the GPUs needed
#
export DISPLAY=:0.0; aticonfig --pplib-cmd "set fanspeed 0 100";
# export DISPLAY=:0.1; aticonfig --pplib-cmd "set fanspeed 0 100";
# export DISPLAY=:0.2; aticonfig --pplib-cmd "set fanspeed 0 100";
#
sleep 10s
#
echo "ROOTPASSWORD" | sudo -S aticonfig --od-enable
#
echo "ROOTPASSWORD" | sudo -S aticonfig --odsc=1200,1575 --adapter=all
#
#
cd /home/jason/miner-logs/
cp bfgminer-ltc /home/jason/miner-logs/archive/bfgminer-btc-$DATE
cp bfgminer-ltc bfgminer-ltc-last
rm bfgminer-ltc
#
cd /home/jason/bfgminer
#
# Uncomment Needed GPUs
#
export DISPLAY=:0
# export DISPLAY=:1
# export DISPLAY=:2
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100
#
# *** RUN BFGMINER ***
#
screen -dmS BTCbfgminer ./bfgminer 2>/home/jason/miner-logs/bfgminer-ltc -w 256 --scrypt -I 13 --lookup-gap 2 --thread-concurrency 24000 --shaders 1792 --gpu-threads 1 --vectors 1
fi
thanks,
Jason