Merge commit '1f4421048206ca1745ddd6366588759c9c5c38f9' * commit '1f4421048206ca1745ddd6366588759c9c5c38f9': Improve orientation sensing when waking up while flat.
Merge commit '1f4421048206ca1745ddd6366588759c9c5c38f9' * commit '1f4421048206ca1745ddd6366588759c9c5c38f9': Improve orientation sensing when waking up while flat.