keepscreenunlocked.

Troubleshooting

Wake lock not working? Check these first.

If the screen still locks with the tool running, it is almost always one of the causes below. They are listed from most to least common.

Inactive

Pick a duration and hit start.

Duration

Stealth screen
— covers the page with black (or your own wallpaper) so it looks like nothing is open.
Fullscreen
— the same cover, edge to edge. Press Esc to leave.
Ambient sound

Starts only when you press Play. It fades out on its own, when you stop the tool, and when you enter stealth screen (unless you tick the box above).

Feedback

1. The tab is not visible

The browser releases the lock when the tab is hidden: switching to another tab, minimizing the window, or covering it fully with another window. Keep this tab in front, or put it in its own window next to the thing you are working on. The tool re-requests the lock when you return to the tab.

2. Battery saver or low power mode

Browsers can refuse or drop a wake lock when the device is in a battery-saving mode or the battery is very low. Turn off battery saver (Android) or Low Power Mode (iPhone, Mac) and start again.

3. The browser does not support it

You need Chrome, Edge or another Chromium browser, Firefox 126 or later, or Safari 16.4 or later. The page must be served over HTTPS, which this site is. Some in-app browsers (inside social apps, for example) do not support it, so open the page in your normal browser.

4. The lid is closed, or the OS is going to sleep

A wake lock keeps the screen on. It cannot stop a closed lid from sleeping the machine, and it does not stop the system itself from sleeping. For that you need OS settings or a command such as caffeinate, PowerToys Awake or systemd-inhibit. See keeping a laptop awake for a long task.

5. Work or school policy

On a managed device, an administrator can set the lock timer to override what apps ask for. If it locks at a fixed time no matter what, that is probably a policy, and it is there on purpose. A browser tool cannot and should not override it.

6. You expected it to change your online status

Teams, Slack and similar apps decide Away or Offline from your input activity, not from whether the screen is on. A wake lock does not affect that. See Teams and Slack.

A two-minute diagnosis

  1. Open the browser test and see whether the API is present and a lock is granted. If the API is missing, the browser does not support it.
  2. Start the tool and keep the tab in front. If the lock appears and stays, the problem was visibility.
  3. Plug in the device and turn off battery saver or low power mode. If it now holds, power saving was the cause.
  4. Test on a different browser. If one works and the other does not, the first browser or a profile policy is the culprit.
  5. Check whether the device is work-managed. If settings are greyed out or revert, a policy is enforcing the lock.

Checking it yourself in the console

If you are comfortable with developer tools, open the console on any secure (HTTPS) page and run:

navigator.wakeLock.request('screen')
  .then(l => { console.log('granted'); l.addEventListener('release', () => console.log('released')); })
  .catch(e => console.log(e.name, e.message));

If it prints "granted" the browser accepted the request, and "released" when the lock ends. If it prints an error, the name tells you what went wrong:

Error nameUsual meaning
NotAllowedErrorThe page is not visible, the system refused (for example battery saver), or a permissions policy blocks it.
TypeError or "undefined"The API does not exist in this browser, or the page is not served over HTTPS.

Embedded pages and permissions policy

If the tool is embedded in another page through an iframe, the embedding page must allow the feature through its permissions policy. A frame that does not grant the screen-wake-lock permission cannot take a lock, even in a browser that supports it. Opening the tool directly avoids the problem.

When it works but the screen still locks

The lock only controls display sleep from inside the browser. If the machine still locks, check three things: a lid or sleep rule on a laptop, a screen saver set to require a password, and a managed-device policy. Those sit outside the browser entirely, and the platform guides for Windows, Mac, Android and iPhone show where each one lives.