Trackball wake

Originally by drewis. Doesn't work properly when cherry-picked.

Conflicts:

	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java