droid x unable to charge....


what makes you think this is a software issue?

Try a different usb cord, charger, battery then phone. I'm running 1.8.19 on my DX without any charging issues, so the issue is on your end.
 
Do you mean "while off" because if so, then I really don't think there is a fix.

"The road to hell is paved with good intentions"