Wednesday, June 13, 2007

The minimalisation of Suspend2

For a while now, I've been seeking to reduce the size of the suspend2 patch, and especially the number of existing files that are touched by it.

This work is going to become very visible with the next release. I'm removing support for the resume2= and noresume2 parameters, in favour of the equivalents already in vanilla - resume= and noresume. The format will still be the same - you'll still be able to say resume=file:/dev/sda3:0x5549, for example.

Actually, some of this has been in for a while. For several months now, resume= and noresume (if specified) have overridden resume2= and substituted for noresume2. This is just the next step.

At the same time, I'm making Suspend2 depend on swsusp in the kernel configuration options. This allows me to remove modifications to several files that were previously made to allow you to configure Suspend2 without having swsusp enabled.

When you get the next release of Suspend2, then, you'll want to double check that you have swsusp enabled under Power Management options. Without it, suspend2 (renamed "Enhanced Hibernation (Suspend2)") won't appear or be built.