Comment 70 for bug 508516

Revision history for this message
jim_charlton (charltn) wrote :

To use hibernate instead of suspend on lid close is easier than I thought. Use
gconf-editor (I did this as a regular user)

Go to apps->gnome-power-manager->buttons and change lid_ac and lid_battery to hibernate instead of suspend.

I then tried closing the lid without the ac power attached. When I opened again, I had to press the power button and then the system rebooted and tried to resume. But the x-display did not start properly. So I shut down and tired again with the power attached. This time it hibernated and when I opened the lid, it automatically resumed. The resume takes only about 12 seconds but the hibernate on closing the lid takes about a minute. I tired again with the ac power disconnected. This time I had to press the button to get it to resume but it resumed just fine.

So I think this works and is a pretty good work-around for the failure to suspend to ram. It is just a bit slow to write the image to disk... But typically we don't really care about an extra minute to shut down. We just want it to restart fast with all of our programs running. I have to admit that I did not try it with a bunch of programs running. That should be checked.

I may still work on getting suspend to ram (s2ram) and resume to work.. but for now... I am happy with how it works.