user4819: I've just started upgrading my USB miners with Antminer U2's and so far everything is running well.  I am able to run all of my miners OC'd to 2.0GH/s with the following command:
bfgminer --set-device antminer:clock=x0981 -o POOL_URL -u POOL_USERNAME -p POOL_PASSWORD -S antminer:all
However I would like to know if it is possible to specify these overclock settings in a config file... I normally have a config file with various options set up that I load using bfgminer's -c flag.  I tried the obvious:

...
"shares" : "0",
"kernel-path" : "/usr/local/share/bfgminer",
"scan" : [
        "antminer:clock=x0781@/dev/ttyUSB0",
        "antminer:clock=x0781@/dev/ttyUSB1",
        "antminer:clock=x0781@/dev/ttyUSB2",
        "antminer:clock=x0781@/dev/ttyUSB3",
        "antminer:clock=x0781@/dev/ttyUSB4"
]
}

but unfortunately that didn't work.  Also my attempts at googling
I found plenty of examples of people setting overclocking using the command line (or batch files) but none using a config file.

user942: Try:
"scan" : [
        "antminer:clock=x0781"
]


4819: <p>I've just started upgrading my USB miners with Antminer U2's and so far everything is running well.  I am able to run all of my miners OC'd to 2.0GH/s with the following command:</p>

<p><code>bfgminer --set-device antminer:clock=x0981 -o POOL_URL -u POOL_USERNAME -p POOL_PASSWORD -S antminer:all</code></p>

<p>However I would like to know if it is possible to specify these overclock settings in a config file... I normally have a config file with various options set up that I load using bfgminer's <code>-c</code> flag.  I tried the obvious:</p>

<p><code>
...
"shares" : "0",
"kernel-path" : "/usr/local/share/bfgminer",
"scan" : [
        "antminer:clock=x0781@/dev/ttyUSB0",
        "antminer:clock=x0781@/dev/ttyUSB1",
        "antminer:clock=x0781@/dev/ttyUSB2",
        "antminer:clock=x0781@/dev/ttyUSB3",
        "antminer:clock=x0781@/dev/ttyUSB4"
]
}
</code></p>

<p>but unfortunately that didn't work.  Also my attempts at googling
I found plenty of examples of people setting overclocking using the command line (or batch files) but none using a config file.</p>
 942: <p>Try:</p>

<pre><code>"scan" : [
        "antminer:clock=x0781"
]
</code></pre>
