root cd $(dirname $(which bq27200.sh)); wget http://maemo.cloud-7.de/maemo5/patches_n_tools/calibrate-bq27k.sh; chmod +x calibrate-bq27k.sh
will start charging battery on plugin of charger, and script waits untill battery full and VDQ:1, before the discharging begins (tested)
the script, when finding a valid discharge process (VDQ:1) in progress, will try to stop charging (also emergency charging aka flatbatrecover) and continue to DIScharge battery until the learning cycle complete. Advantage: faster. Tested to work by Kerio