Website keeping a device from sleeping

  • Thread starter Thread starter Raghav Gupta
  • Start date Start date
  • Tags Tags
    Device
Click For Summary

Discussion Overview

The discussion revolves around methods to prevent a device from sleeping while a user is visiting a website. Participants explore various techniques, including the use of a 1x1 pixel video loop and the concept of wakelock, while also considering user preferences and the context of a temporary website.

Discussion Character

  • Exploratory
  • Debate/contested

Main Points Raised

  • Some participants mention the technique called wakelock as a way to keep a device awake, but express concerns that it may be outdated.
  • There is a suggestion to embed a 1x1 pixel video loop on the website to prevent the device from dozing, with questions about the feasibility of creating such a video.
  • One participant notes that devices sometimes go to sleep even when a video is playing, excluding platforms like YouTube.
  • Another participant suggests setting the computer's sleep time to "never" as a straightforward solution, applicable to both Windows and Linux systems.
  • There is a clarification that the desired effect is specifically for visitors to the website, not for the website owner’s own device.
  • A later reply questions whether users would actually want their computers to remain awake due to the website's influence.
  • It is mentioned that the purpose of this functionality is related to a trick developed by someone and that the website is intended to be temporary.

Areas of Agreement / Disagreement

Participants express differing views on the effectiveness and desirability of keeping a device awake through a website, with no consensus reached on the best approach or user preferences.

Contextual Notes

Participants have not resolved the technical feasibility of using a 1x1 pixel video loop or the implications of user consent regarding keeping their devices awake.

Raghav Gupta
Messages
1,010
Reaction score
76
I searched some forums like stackexchange and they were telling of technique called wakelock to keep a device on a website from dozing . But they seem outdated.
Got a suggestion from somebody to embed a 1*1 pixel video loop on website so to keep device awake. But is making a 1*1 pixel looping video possible?
Sometimes device goes to sleep even if a video is running (excluding youtube).
Does anyone knows what programming can be done to achieve the desired effect?
I require this for a purpose and it is related to an app.
 
Technology news on Phys.org
Raghav Gupta said:
I searched some forums like stackexchange and they were telling of technique called wakelock to keep a device on a website from dozing . But they seem outdated.
Got a suggestion from somebody to embed a 1*1 pixel video loop on website so to keep device awake. But is making a 1*1 pixel looping video possible?
Sometimes device goes to sleep even if a video is running (excluding youtube).
Does anyone knows what programming can be done to achieve the desired effect?
I require this for a purpose and it is related to an app.
If you want your computer to not go to sleep, just set the sleep time to "never". I think that can be done in both windows and linux.
 
phinds said:
If you want your computer to not go to sleep, just set the sleep time to "never". I think that can be done in both windows and linux.
No, I want the effect on person visiting my website.
 
Raghav Gupta said:
No, I want the effect on person visiting my website.
But do they want their computer kept awake by your website?
 
  • Like
Likes   Reactions: JorisL and Ibix
Borg said:
But do they want their computer kept awake by your website?
It is basically for a trick someone has developed. The website is a temporary one.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
613
  • · Replies 2 ·
Replies
2
Views
8K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
13K
  • · Replies 13 ·
Replies
13
Views
5K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 7 ·
Replies
7
Views
4K