Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROTATE_DISPLAY does not work on RPi 4 #75

Open
nmaas87 opened this issue Aug 12, 2021 · 4 comments
Open

ROTATE_DISPLAY does not work on RPi 4 #75

nmaas87 opened this issue Aug 12, 2021 · 4 comments

Comments

@nmaas87
Copy link

nmaas87 commented Aug 12, 2021

The current version of the browser block does not rotate the display on the RPi 4 with the current settings / vc4-fkms-v3d.
If you decide to rotate, it will just resize the window - starting on 0,0 and then not e.g. landscape it like normal, but resize it in portrait if you ROTATE_DISPLAY=right - but not rotate the display/screen.
The only reliable way i found was to leave the ROTATE_DISPLAY and WINDOW_SIZE settings all alone and rotate the screen itself on boot by using BALENA_HOST_CONFIG_display_hdmi_rotate=3 (for 270 degree clockwise rotation). Then it will work flawlessly.

@jellyfish-bot
Copy link

[phil-d-wilson] This issue has attached support thread https://jel.ly.fish/da9aa3d4-b994-4e1b-8ff8-0b625ee6f746

@rahul-thakoor
Copy link
Collaborator

rahul-thakoor commented Sep 29, 2021

i think it might be related to https://github.com/balenablocks/browser/blob/a42c8c0da333a707b3a5e4b7b37e67a45e10a106/src/start.sh#L49

which leaves = after variable names.

we might need

environment=$(env | grep -v -w '_' | awk -F: '{ st = index($0,"=");print substr($1,0,st -1) ","}' | tr -d "\n")

@rahul-thakoor
Copy link
Collaborator

maybe fixed by #91 ?

@Chrissi2812
Copy link
Contributor

I have tested it with 2.0.7 and it does work now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants