balena-io-experimental / browser

A drop-in web browser block
102 stars 80 forks source link

Make rotation delay configurable #175

Closed mtoman closed 3 months ago

mtoman commented 3 months 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 3 months ago

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

mtoman commented 3 months ago

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

mtoman commented 3 months ago

lgtm