Currently, when you connect an external monitor to an Android phone that supports mirroring, the phone makes the assumption that the external monitor is configured in landscape orientation. Thus, when the phone is held vertically (in this case, Galaxy S III) in portrait orientation, the video image on the display is a portrait, but with a central feature on both sides. Of course, when the phone is held horizontally, the output fills the external display.
What I'm looking for is a way to make the Galaxy S III flip its screen in such a way that when it is held in portrait orientation, the output will fill the external display. It should work on Android - I'm not talking about a specific application, in particular, it should work consistently in all applications.
The external display will be installed vertically, so it is important that the Galaxy S III exit in portrait orientation is completely filled and has the correct orientation on the external display.
Can someone give me any tips on where to start? I already looked through the source code for S III and could not find any hints (I have no experience writing my own drivers on Android). This will be for the US variants (in particular, Verizon, although the video equipment - the Adreno 225 GPU chip and SiI9234 MHL - is the same in all US variants). Perhaps someone who is more experienced in this area may shed light on this.
source share