---------------------------------------------------------------- As long as your brower has this page open, your device should not go to sleep. This works with just the following javascript: try { const wakeLock = await navigator.wakeLock.request('screen'); } catch (err) { // the wake lock request fails - usually system related, such being low on battery console.log(`${sage}`); } [0]: https://developer.mozilla.org/en-US/docs/Web/API/WakeLock