When waking up from hibernation some systems having an Intel 855 / 865 / 915 chipset need to replace a video mode in the VBIOS before restarting X in order to get a certain screen resolution, like 1400x1050 in my case. The utility in gentoo for replacing the video mode is called "855resolution". hibernate-script supports something called "i915resolution" which does not exist under gentoo but probably is the same as "855resolution" in some other linux distribution. So in order to resume such a system either 855resolution has to change or hibernate-script. I did the latter. A patch is attached that works for me with the current ebuild. (I did not replace all entries of "i915" with "855" because shell variables don't seem to like numbers as their first character, and I think the /etc/init.d-script needs to be "restarted" instead of just "started"). I hope this helps others with their hibernation-problems.
Created attachment 92340 [details, diff] 855resolution for hibernate-script
PS: After looking into it a bit more, I suppose adding an "OnResume 98 /etc/init.d/855resolution restart" to the config file and enabling "SwitchToTextMode" achieves the same thing as this one option in the script. So adding this patch is probably not needed, although it's added convenience. Your choice.
Should be fixed in CVS now! Thanks for the patch.