Can you please try this and give it a shot, when you install it, it's called USB Charge Commander.
When you select "Disable USB Charging", the charging of the battery becomes disabled. Likewise, "Enable USB Charging" re-enables it - Simple really...
Let me know how it goes?
Will push this out to github ASAP.... Have phun \o/
Edited: ITs available to ye all in spirit of open source - have fun in browsing the code - might prove to be educational for those learning to program.
Edited by t0mm13b, 03 March 2011 - 07:12 PM.