Author

Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.11.0 - page 536. (Read 5806088 times)

legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
Hello, I am trying to run cgminer with 1 BFL single. I compiled cgminer with --enable-bitforce and libudev support
...
Any ideas? Huh
Yeah there's a debug option that I added that will tell you the error code if anything unexpected happens.
So adding "-D" to the command line will give back a message like:
 Open %s failed, errno:%d <- linux
 Open %s failed, GetLastError:%u <- windows
That errno or GetLastError will help work it out.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Hello, I am trying to run cgminer with 1 BFL single. I compiled cgminer with --enable-bitforce and libudev support

Code:
alan@alan-Vostro-1500:~/bc/cgminer$ lsusb
...
Bus 002 Device 002: ID 0403:6014 Future Technology Devices International, Ltd FT232H Single HS USB-UART/FIFO IC
...
alan@alan-Vostro-1500:~/bc/cgminer$ ls /dev/serial/by-id/
usb-Butterfly_Labs_Inc._BitFORCE_SHA256-if00-port0
alan@alan-Vostro-1500:~/bc/cgminer$ ls /dev/ttyUSB*
/dev/ttyUSB0
alan@alan-Vostro-1500:~/bc/cgminer$ ./cgminer -S 0
All devices disabled, cannot mine!
alan@alan-Vostro-1500:~/bc/cgminer$ ./cgminer -S /dev/ttyUSB0
All devices disabled, cannot mine!
alan@alan-Vostro-1500:~/bc/cgminer$

Any ideas? Huh
As per readme, tried?:
sudo modprobe ftdi_sio vendor=0x0403 product=0x6014
full member
Activity: 165
Merit: 100
Hello, I am trying to run cgminer with 1 BFL single. I compiled cgminer with --enable-bitforce and libudev support

Code:
alan@alan-Vostro-1500:~/bc/cgminer$ lsusb
...
Bus 002 Device 002: ID 0403:6014 Future Technology Devices International, Ltd FT232H Single HS USB-UART/FIFO IC
...
alan@alan-Vostro-1500:~/bc/cgminer$ ls /dev/serial/by-id/
usb-Butterfly_Labs_Inc._BitFORCE_SHA256-if00-port0
alan@alan-Vostro-1500:~/bc/cgminer$ ls /dev/ttyUSB*
/dev/ttyUSB0
alan@alan-Vostro-1500:~/bc/cgminer$ ./cgminer -S 0
All devices disabled, cannot mine!
alan@alan-Vostro-1500:~/bc/cgminer$ ./cgminer -S /dev/ttyUSB0
All devices disabled, cannot mine!
alan@alan-Vostro-1500:~/bc/cgminer$

Any ideas? Huh
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
Hi, how is possible to change pool setting on many rigs(BAMT) in few steps at the same time?
Ask in the BAMT support thread ...
member
Activity: 73
Merit: 10
Hi, how is possible to change pool setting on many rigs(BAMT) in few steps at the same time?
hero member
Activity: 981
Merit: 500
DIV - Your "Virtual Life" Secured and Decentralize
the 700 firmwares did that to me. But the unit in question never acted right by itself so this isn't likely your problem. I think 800 did as well.
hero member
Activity: 626
Merit: 500
Mining since May 2011.
Hey all,

I been running cgminer for a while now with no problems (4 GPU and 2 BFL).  I just got another 4 BLF and I am now getting a weird problem. The BFL that cgminer labels as BFL 0 show crazy high hash rates (I wish 13000 M/s)  but is actually not doing any work (U=0).  See photo

-I've verified all the BLFs work independently on another system. 
-It does matter which unit is at the cgminer position BLF0 but that is the spot that always acts up.


Any ideas
Thanks
Nanook
Try specifying bitforce: before the port like "bitforce:\\.\COM5"

Thanks for the suggestion but it didn't seem to work.  I am launching cgminer with the following:
cgminer  -S bitforce:\\.\COM4 -S bitforce:\\.\COM5 -S bitforce:\\.\COM6 -S bitforce:\\.\COM7 -S bitforce:\\.\COM3 -S bitforce:\\.\COM8

Any other suggestions?
Thanks

Have you tried running (4) in one command prompt, (2) in another? IIRC someone had luck with that.
newbie
Activity: 48
Merit: 0
Hey all,

I been running cgminer for a while now with no problems (4 GPU and 2 BFL).  I just got another 4 BLF and I am now getting a weird problem. The BFL that cgminer labels as BFL 0 show crazy high hash rates (I wish 13000 M/s)  but is actually not doing any work (U=0).  See photo

-I've verified all the BLFs work independently on another system. 
-It does matter which unit is at the cgminer position BLF0 but that is the spot that always acts up.


Any ideas
Thanks
Nanook
Try specifying bitforce: before the port like "bitforce:\\.\COM5"

Thanks for the suggestion but it didn't seem to work.  I am launching cgminer with the following:
cgminer  -S bitforce:\\.\COM4 -S bitforce:\\.\COM5 -S bitforce:\\.\COM6 -S bitforce:\\.\COM7 -S bitforce:\\.\COM3 -S bitforce:\\.\COM8

Any other suggestions?
Thanks
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Hey all,

I been running cgminer for a while now with no problems (4 GPU and 2 BFL).  I just got another 4 BLF and I am now getting a weird problem. The BFL that cgminer labels as BFL 0 show crazy high hash rates (I wish 13000 M/s)  but is actually not doing any work (U=0).  See photo

-I've verified all the BLFs work independently on another system. 
-It does matter which unit is at the cgminer position BLF0 but that is the spot that always acts up.


Any ideas
Thanks
Nanook
Try specifying bitforce: before the port like "bitforce:\\.\COM5"
newbie
Activity: 48
Merit: 0
Hey all,

I been running cgminer for a while now with no problems (4 GPU and 2 BFL).  I just got another 4 BLF and I am now getting a weird problem. The BFL that cgminer labels as BFL 0 show crazy high hash rates (I wish 13000 M/s)  but is actually not doing any work (U=0).  See photo

-I've verified all the BLFs work independently on another system. 
-It does matter which unit is at the cgminer position BLF0 but that is the spot that always acts up.


Any ideas
Thanks
Nanook

http://i48.tinypic.com/3582j2t.jpg
newbie
Activity: 15
Merit: 0
I've been running cgminer with my 7970 for a while now. Everything worked perfect till I updated the Intel HD4000 driver.
I've tried making a new conf file but that didn't make a difference.

I get this error

Failed to init GPU thread 0, disabling device 0
Restarting the GPU from the menu vil nit fix this.
Try restarting cgminer.

Any suggestions as to how I can fix this?

Thank you :-)
legendary
Activity: 3586
Merit: 1099
Think for yourself
How do I let AMD Catalyst or MSI AB control fan speed instead of CGminer?

Don't you just remove the --Auto-fan command line argument?
Sam
full member
Activity: 154
Merit: 100
How do I let AMD Catalyst or MSI AB control fan speed instead of CGminer?
legendary
Activity: 3586
Merit: 1099
Think for yourself
My AVG antivirus reports that libpdcurses.dll is a password keylogger, I'm assuming this is false?

What is that free Microsoft antivirus?
Someone told me to use Microsoft antivirus + Microsoft firewall.

Microsoft Security Essentials
hero member
Activity: 626
Merit: 500
Mining since May 2011.
My AVG antivirus reports that libpdcurses.dll is a password keylogger, I'm assuming this is false?

What is that free Microsoft antivirus?
Someone told me to use Microsoft antivirus + Microsoft firewall.

Yes, false positive.

Microsoft Security Essentials
http://microsoft.com/security_essentials
full member
Activity: 154
Merit: 100
My AVG antivirus reports that libpdcurses.dll is a password keylogger, I'm assuming this is false?

What is that free Microsoft antivirus?
Someone told me to use Microsoft antivirus + Microsoft firewall.
legendary
Activity: 1795
Merit: 1208
This is not OK.
Have to say, everything's working perfectly with CGminer for me right now.
Up to 3 days non-stop, and not a single error of any kind Smiley

Only issue I'm seeing is for every longpoll notification in the log, there's a 'pool not providing work fast enough' message. right after it
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
Step 1:
 ensure --api-listen --api-allow w:127.0.0.1 is set

Step 2:
 Have 2 cron jobs that run at whatever 2 times you want e.g.
  00 23 * * * root /usr/local/bin/cgspeed up
  00 6 * * * root /usr/local/bin/cgspeed down


Step 3: /usr/local/bin/cgspeed (don't forget to chmod +x /usr/local/bin/cgspeed)
Code:
#!/bin/sh
#
if [ "$1" = "up" ] ; then
 echo -n 'gpuintensity|0,9' | nc 127.0.0.1 4028 ; echo
fi
#
if [ "$1" = "down" ] ; then
 echo -n 'gpuintensity|0,d' | nc 127.0.0.1 4028 ; echo
fi
... I haven't tested it but it looks OK Smiley

Also, if your linux doesn't have 'nc' it may be called 'ncat' or 'netcat'

Lastly if you don't want the email status messages sent to root twice a day, then make the echo lines look like:
  echo -n 'gpuintensity|0,d' | nc 127.0.0.1 4028 &> /dev/null on the end of each 'echo' line
full member
Activity: 133
Merit: 100
Just use console to change it in the fly Smiley
G I D
G I 9
Smiley
thx Wink
no I mean it automatically every day in Linux...

This doesn't meet all your criteria wrt not restarting cgminer, but here is something I whipped up before API support was added:

Code:
#!/bin/sh

export DISPLAY=:0
export GPU_USE_SYNC_OBJECTS=1

while true ; do
 killall -HUP cgminer > /dev/null 2>&1
 now="`date +%Y%m%d%H%M%S`"
 if [ -e "/usr/tmp/mine-high" ];
 then
   echo "Starting cgminer in high mode"
   cgminer --url xxxx --user xxxx --pass xxxx --url xxxx --user xxxx --pass xxxx --auto-fan --auto-gpu --gpu-engine 300-750 --gpu-memclock 150 --gpu-vddc 1.0 --intensity "d,8,8,8" --gpu-fan 30-85 --temp-target 73 -w 256 --text-only 2> /home/jintu/cgminer-logs/run.$now.$$.log
 else
  if [ -e "/usr/tmp/mine-low" ];
   then
    echo "Starting cgminer in low mode"
    cgminer --url xxxx --user xxxx --pass xxxx --url xxxx --user xxxx --pass xxxx --auto-fan --auto-gpu --gpu-engine 300-550 --gpu-memclock 150 --gpu-vddc 1.0 --intensity "d,8,8,8" --gpu-fan 30-50 --temp-target 73 -w 256 --text-only 2> /home/jintu/cgminer-logs/run.$now.$$.log
   fi
 fi
 echo "Sleeping for 10 seconds."
 sleep 10

done

This script fires up automatically when X starts (my miners are setup to autologin).

I also have the following cron config to control when it should be in each mode:

Code:
#Weekdays
0 0 * * mon,tue,wed,thu,fri /usr/local/bin/mine-high.sh
0 12 * * mon,tue,wed,thu,fri /usr/local/bin/mine-low.sh
#Weekend
0 0 * * sat,sun /usr/local/bin/mine-high.sh
0 13 * * sat,sun /usr/local/bin/mine-low.sh

and finally here are the scripts called by cron:

mine-high.sh
Code:
#!/bin/sh
#
rm /usr/tmp/mine-low > /dev/null 2>&1
touch /usr/tmp/mine-high > /dev/null 2>&1
killall -HUP cgminer > /dev/null 2>&1

mine-low.sh
Code:
#!/bin/sh
#
rm /usr/tmp/mine-high > /dev/null 2>&1
touch /usr/tmp/mine-low > /dev/null 2>&1
killall -HUP cgminer > /dev/null 2>&1


hero member
Activity: 807
Merit: 500
kill pgrep cgminer
cgminer -options
Tongue
is there any way to run cgminer with different configs (night/day) with the scheduler without restarting cgminer?
Tongue
Jump to: