The wiki page demonstrates that the N900 accelerometers do vary their output with orientation and so can be used to determine orientation. For the life of me, I can't work out how they do it.