Right now, when restoring resolution, screen rotations are hardcoded to "normal". They should be configurable or ideally detected and restored as they were.