Troubleshooting MacOS X freeze after sleep

Just a quick note that might be helpful to MacBook owners out there.

A few days ago, my gf dropped her MacBook on the floor, "apple-logo" down, just after closing the lid, when entering sleep mode.

From that moment on, we feared the worst because the system wouldn't awake from sleep in a stable state, freezing ad eternum with our well-known spinning beachball on screen. Only a reboot would put the system in a normal state.

After running some disk utilities and doing some RAM checks, no anomalies were found.

I started a tail on /var/logs/system.log and noticed that since the "drop" there were no logs of writing to the /var/vm/sleepimage when entering the sleep state. Weird.

I deleted the /var/vm/sleepimage file and went into sleep mode. Touched a few keys and 'voila', no more spinning beachball and the system restored to a normal operating state.

The drop probably sent the HD needles into parking mode and corrupted the sleepimage file or there might actually be some bad sectors on that area, so the file deletion solved the problem for now.