mxtommy / Kip

SignalK Instrument package
MIT License
77 stars 40 forks source link

Add WakeLock option #277

Open godind opened 8 months ago

godind commented 8 months ago

Add a WakeLock option to prevent device from sleeping and locking the screen.

godind commented 5 months ago

replace NoSleep so it works on non-mobile devices: https://medium.com/@dhashvir/how-to-setup-a-typescript-project-to-use-wake-lock-api-e2243512c012

JonyIvy commented 5 months ago

The current implementation with NoSleep works on my Raspberry Pi with DSI touch display, if KIP is in fullscreen mode. In window mode, the screensaver kicks in as configured. For me this is quite ok.

godind commented 5 months ago

Maybe not that important them. Just need to look at power and cpu usage of the current implementation.

godind commented 1 month ago

Investigate nosleep library use case to determine if a more modern approach with less ressource consumption can be applied.

Feature requirement: in full screen, screen saver should not activate.