I use a Dell Studio 1745 laptop. every time i disconnect the power cord, the system hibernates. It is because Ubuntu erroneously thinks the power is too low right after disconnecting the laptop from the power source. After few seconds, the power meter works properly but the system still hibernates.

Is there a way to set Ubuntu to do nothing when the power gets critically low?

I'm on Ubuntu 11.10 64-bit.