When moving my macbook it sometimes switch off unexpectedly (black screen) and switch on again after several seconds.
I remember solving the problem several month ago by changing a internal MacOS X settings with such a command:
defaults write com.apple.??????
This command disabled the automatic shock detection system that prevent hard drive damage.
Does someone knows this command? a better alternative?