Laptop immediately suspends when going onto battery power

I think this thread talks about this issue.

There's also a bug report on Lanchpad that may apply. See comment #4.

As a kludgy work-around, I turned off auto-hybernate by putting the following command into my /etc/rc.local file.

gconftool-2 --type bool --set /apps/gnome-power-manager/general/use_time_for_policy false

On the downside, if I forget to plug in my computer it just dies after the battery is spent.


This is still an issue in 11.10 (beta 2 with kernel 3.0.0-12-generic) but the location has moved. See this post to fix for 11.10.

Where do I set use_time_for_policy?