My .sh file has this and permissions set to owner:
./cgminer -o stratum+tcp://de.ckpool.org:3333 -u mybtcaddress -p x
I've also added --usb :1 or --usb 1:12,1:13,1:14 1:15 and --gekko-newpac-freq x but nothing makes a difference. lsusb works as the devices are recognized.
When you run the script be sure to do sudo ./name_of_your_script.sh I typically set the executable to everyone instead of owner. And when starting it to be sure to key up sudo otherwise you get permission issues and the miner will fail.
Also if it's still not finding your newpacs. Do the following. On a command line key:
lsusb
And you should get output as follows:
mstrozier@Pi-Miner:~ $ lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)
Bus 001 Device 004: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)
Bus 001 Device 011: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)
Bus 001 Device 010: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)
Bus 001 Device 009: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP2102/CP2109 UART Bridge Controller [CP210x family]
Bus 001 Device 008: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)
Bus 001 Device 007: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)
Bus 001 Device 005: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP2102/CP2109 UART Bridge Controller [CP210x family]
Bus 001 Device 003: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port Hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
mstrozier@Pi-Miner:~ $
Here I can tell my miners are Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO) Any of the newpac and R606s will appear as these. The CP210x family that is also in this list are my Future Bit Moonlanders. This is also how I identify the devices in my scripts by using -usb 1:10, 1:11 as examples. I always specify the bus/device for each miner.
Example of my .sh file:
./cgminer -o stratum+tcp://lcc.coinfoundry.org:3220 -u wallet_address.worker_name -p x --usb 1:7,1:8,1:10,1:11,1:4,1:6 --gekko-newpac-freq 450 --gekko-r606-freq 700 --widescreen
Another way is to do also do the following:
dmesg | grep ttyUSB
Should see something similar:
mstrozier@Pi-Miner:~ $ dmesg | grep ttyUSB
[ 255.291849] usb 1-1.3: FTDI USB Serial Device converter now attached to ttyUSB0
[ 255.483431] usb 1-1.2.2: cp210x converter now attached to ttyUSB1
[ 255.669690] usb 1-1.4: FTDI USB Serial Device converter now attached to ttyUSB2
[ 255.909808] usb 1-1.2.3: FTDI USB Serial Device converter now attached to ttyUSB3
[ 256.189305] usb 1-1.2.4: FTDI USB Serial Device converter now attached to ttyUSB4
[ 256.463699] usb 1-1.2.5: cp210x converter now attached to ttyUSB5
[ 256.714893] usb 1-1.2.6: FTDI USB Serial Device converter now attached to ttyUSB6
[ 256.974852] usb 1-1.2.7: FTDI USB Serial Device converter now attached to ttyUSB7
[ 426.943461] ftdi_sio ttyUSB2: FTDI USB Serial Device converter now disconnected from ttyUSB2
[ 427.313085] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[ 427.681190] ftdi_sio ttyUSB7: FTDI USB Serial Device converter now disconnected from ttyUSB7
[ 428.034089] ftdi_sio ttyUSB6: FTDI USB Serial Device converter now disconnected from ttyUSB6
[ 428.391508] ftdi_sio ttyUSB4: FTDI USB Serial Device converter now disconnected from ttyUSB4
[ 428.745016] ftdi_sio ttyUSB3: FTDI USB Serial Device converter now disconnected from ttyUSB3
mstrozier@Pi-Miner:~ $
The ftdi_sio are the usb ports identified towards my newpacs / r606.
If you run those two commands and do not see anything similar listed then you will need to check your connects to make sure the devices are being picked up by the Pi.