balena-dash icon indicating copy to clipboard operation
balena-dash copied to clipboard

ROTATE_DISPLAY does not behave as expected

Open damianpowell opened this issue 4 years ago • 2 comments

I am trying to create a kiosk in portrait orientation. I have set an environment variable ROTATE_DISPLAY=left but this appears to rotate the chromium window and relocate it's top-left corner to the new position but it does not appear to resize the window to 1080x1920, as expected. I have tried specifying the window size manually, via WINDOW_SIZE=1080,1920 but that appears to just change the black area of the screen to white, but not render content there.

Furthermore, the touch-panel doesn't appear to rotate with the screen, although I think I have a solution for this by including xserver-xorg-input-libinput and modifying 40-libinput.conf.

I am using a Raspberry Pi 4 (4GB).

I would be extremely thankful for any assistance on this - I've been hitting my head on a wall for nearly a week now!

damianpowell avatar Mar 30 '20 17:03 damianpowell

hi there! can you please provide some details regarding the screen you are using?

rahul-thakoor avatar Apr 15 '20 09:04 rahul-thakoor

I am running into a similar problem. While the (hdmi) display rotates, touch input is still rotated by 90°. Strange thing is that an external mouse behaves as expected. Any Ideas on how to rotate the touch input as well? Thank you!

terehov avatar Mar 17 '21 18:03 terehov