Resuming from hibernation and Intel 945 video adapter
Intel 945-series video adapter (as probably all Intel’s built-in video adapters) has pretty common issue regarding incorrect resolution modes. Fortunately, that can be easily fixed by 915resolution package. However, that fix needs to be executed not only when computer boots up, but also while resuming from hibernation. Otherwise, we might get some ugly resolution like 1024×768 after resuming, forcing us to execute 915resolution and restart X manually, which makes whole hibernation completely pointless.
Fortunately, there is a way of forcing 915resolution to run while resuming computer from hibernation. It’s all done by pm-utils – a package of utilities, which handles suspending, hibernation etc. Let’s take a look to /etc/pm/hooks directory. It contains some number of executable scripts, which are executed while suspending/hibernating and also resuming a computer. Order of execution is determined by script’s name which usually starts with a number, so it’s quite easy to tell which script will has priority.
At this point, it’s pretty clear how to put 915resolution fix into action. It’s a matter of modifying one of existing scripts, or adding a new one. I’ve added a new one, named 19fixresolution, which looks like this:
#!/bin/sh
case "$1" in
thaw)
915resolution 58 1440 900
;;
*)
;;
esac
exit $?
Btw, it’s quite important to make sure that 19fixresolution script is executed before video initialization (in my case: 20video script).
All scripts are executed with single parameter: suspend – while suspending; hibernate – while hibernating; resume – while resuming from suspension; thaw – while resuming from hibernation. My little script does only action while resuming from hibernation, obviously. 915resolution 58 1440 900 is a command, which actually replaces 0x58 resolution mode of video adapter with 1440×900 resolution. And that’s it!
Fixing resolution with Intel’s video adapters is pretty good example of using pm-utils to fiddle with suspend/hibernation issues on your laptop. Have a look to sources listed below, to get more detailed explanation of pm-utils.
[UPDATE] Easier way of fixing resolution
Ha! Somehow I couldn’t manage to do that earlier, but now it works! If you’ll install 915resolution package from updates repository (i.e. by yum), it will install 915resolution service in the system:

Once you check this service to run every time machine boots up, then just have a look into /etc/sysconfig/915resolution file, making sure you have proper video mode and resolution set up:
# Mode to overwrite RESOLUTION="58 1440 900"
And that’s it! You can enjoy proper resolution after each reboot and/or resume of the computer with no need to fiddle pm-utils anymore. :)
Related
915resolution homepage
Pm-utils explained on openSUSE wiki
Other pm-utils’ useful info:
http://marc.theaimsgroup.com/?l=fedora-list&m=116955326320212&w=2
http://webcvs.freedesktop.org/pm-utils/pm-utils/README?view=markup