In gingerbread there was an option to calibrate the g sensor, but I've looked and I can't see it anywhere in jb. Having said that, I've never needed to recalibrate since I was on froyo. Try hunting through the settings, or see if there's an app that will do it.