The screen flipping sounds like an issue with onboard graphics, What PC do you have? and what graphics card if any?
If that is the case though should be as simple as, Right click on desktop, click properties, click on settings, then advanced, Thn find your card (will be intel extreme graphics or similar) Click graphics properties, then display properties, and uncheck the box next to enable screen rotation, Should get you sorted.
Solid,