balena-io-experimental / browser

A drop-in web browser block
98 stars 76 forks source link

Make rotation delay configurable #175

Closed mtoman closed 1 month ago

mtoman commented 1 month ago

At this point we hardcode a 3 seconds delay before applying display rotation, which on some systems is not enough, while on other systems it is too much.

This patch exposes a ROTATE_DELAY variable that makes the delay configurable.

shaunmulligan commented 1 month ago

@mtoman I ran this quickly on a pi3 I had connected to my display and it all seems to work correctly

mtoman commented 1 month ago

I've also tested this on a Pi5 and it seems to work fine.

mtoman commented 1 month ago

lgtm