Skip to Content
Platform.Ontology

System Wake Lock

A way to keep the CPU awake while the screen is off; never shipped.

Blocked for appsNotifications and backgroundKeep awakeWeb browsersWhile you use it

In one line

Can't keep your device awake with the screen off; no browser ever shipped this

A way to keep the CPU awake while the screen is off; never shipped.

The spec once listed a system lock that would keep the machine awake with the screen off. No browser shipped it because of battery abuse risk. Proxies are audio playback, background sync and push.

What it can and can't do

What the user does: Nothing. It is not available

It can

  • Use workarounds such as audio playing, push or background sync instead
  • Keep the screen on while the page is visible, which is a different feature

It cannot

  • Keep the computer awake with the screen off from a web page
  • Work in any browser
  • Run long downloads this way, since it was dropped for battery abuse risk
  • Bypass battery saver rules

Browser support

BrowserStatusFirst versionNote
ChromeNot supportedNot availableNone
EdgeNot supportedNot availableNone
FirefoxNot supportedNot availableNone
SafariNot supportedNot availableNone
Safari on iPhoneNot supportedNot availableNone
Chrome on AndroidNot supportedNot availableNone
Samsung InternetNot supportedNot availableNone

How a site asks for it

APInavigator.wakeLock.request('system') (rejected)
How access is grantednot-exposed
What the user seesNot exposed.
Needs a secure context (HTTPS)Yes
Needs a user gestureNo
How long it lastsn/a
How to take it backn/a
Inside an iframen/a

Typical flow

  1. Calling request('system') rejects with TypeError

Data you get

What comes back: none
Shape: none
How often: n/a

No individual data fields. The signal is the access itself.

Technical limits

  • Not available in any browser

The story

What it is

A way to keep the whole device awake with the screen off. It was never released.

For you

You cannot do this on the web. A site cannot keep your device awake after the screen goes off. This protects your battery. Only the screen lock exists.

For makers

Makers wanted long background tasks such as downloads, uploads and music. Browser makers declined to ship it for battery reasons. Developers use push, background fetch and media sessions instead.

Where you see it

TypeExampleApps
musicA web music player wanted to keep playing through a long sleep. It uses media playback instead, which the system treats as allowed.None named
productivityA web backup tool wanted to upload photos overnight with the screen off. It uses background sync and upload retries instead.None named
gamesA browser game wanted to run a simulation while the device sleeps. It uses push alerts and saved state instead.None named
fitnessA web run tracker wanted to keep recording a route with the screen off. It needs an installed app for that.None named
videoA web video downloader wanted to keep downloading overnight. It uses background fetch instead.None named
healthA web sleep or health logger wanted to stay awake to record data. It cannot do so on the web.None named
enterpriseA web kiosk wanted to keep running during idle. It uses the screen wake lock instead.None named

Risks

  • Not available
  • Battery drain risk if added

Good uses and abuse

Legitimate uses

  • Long downloads

Known abuse

  • Battery abuse and crypto miners

Scores

ScoreValueMeaning
Sensitivity1 of 5How revealing the data is
Utility1 of 5How useful it is to honest apps
Friction3 of 5How much the user has to do
Fingerprint bitsNot ratedRough identifying entropy, when known

History

  • 2019, Chrome n/a: System lock removed from the spec and not implemented
  • Screen Wake Lock. Can keep your screen on while the page is showing, but not in the background

Sources

How well checked: Inferred from related behavior.

On this page