System Wake Lock
A way to keep the CPU awake while the screen is off; never shipped.
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
| Browser | Status | First version | Note |
|---|---|---|---|
| Chrome | Not supported | Not available | None |
| Edge | Not supported | Not available | None |
| Firefox | Not supported | Not available | None |
| Safari | Not supported | Not available | None |
| Safari on iPhone | Not supported | Not available | None |
| Chrome on Android | Not supported | Not available | None |
| Samsung Internet | Not supported | Not available | None |
How a site asks for it
| API | navigator.wakeLock.request('system') (rejected) |
| How access is granted | not-exposed |
| What the user sees | Not exposed. |
| Needs a secure context (HTTPS) | Yes |
| Needs a user gesture | No |
| How long it lasts | n/a |
| How to take it back | n/a |
| Inside an iframe | n/a |
Typical flow
- 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
| Type | Example | Apps |
|---|---|---|
| music | A web music player wanted to keep playing through a long sleep. It uses media playback instead, which the system treats as allowed. | None named |
| productivity | A web backup tool wanted to upload photos overnight with the screen off. It uses background sync and upload retries instead. | None named |
| games | A browser game wanted to run a simulation while the device sleeps. It uses push alerts and saved state instead. | None named |
| fitness | A web run tracker wanted to keep recording a route with the screen off. It needs an installed app for that. | None named |
| video | A web video downloader wanted to keep downloading overnight. It uses background fetch instead. | None named |
| health | A web sleep or health logger wanted to stay awake to record data. It cannot do so on the web. | None named |
| enterprise | A 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
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 1 of 5 | How revealing the data is |
| Utility | 1 of 5 | How useful it is to honest apps |
| Friction | 3 of 5 | How much the user has to do |
| Fingerprint bits | Not rated | Rough identifying entropy, when known |
History
- 2019, Chrome n/a: System lock removed from the spec and not implemented
Related capabilities
Related
- 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.