When I resintalled my laptop, I decided it was time to give genkernel a try. I've been impressed with the hardware detection on the Gentoo LiveCD and knew genkernel was used. I've been happy with genkernel, even with long kernel build times. It gives me nice splashscreens right out of the box.
I've tried to get suspend to disk working in the past without luck. It would always hang and having to manually add patches was an annoyance. When I discovered that there was a portage package for a Suspend2 prepatched kernel I was exicted. To top this off, this kernel also has all of the normal gentoo-sources patches. Nice.
By follwing a
gentoo-wiki howto, I was able to get most of the way there. However, I was running into a problem with the fact that genkernel was producing a kernel with an associated initrd image. The help files I was able to find mentioned initrd images were supported but didn't give a lot of detail. The gentoo forums weren't much help either.
The solution was to modify the template used for the genkernel initrd image. In
/usr/share/genkernel/generic/linuxrc, change:
mount -o remount,rw /
mount -t proc proc /proc
to:
mount -o remount,rw /
mount -t proc proc /proc
# Support for suspend2 sources
echo > /proc/suspend2/do_resume
With this change, all I had to do was rebuild the initrd image. Now I have suspend to disk working like a charm!