Have you tried this http://everythingn9.com/adjust-rotat...vity-nokia-n9/ ?
I would try it before opening the device.