Website keeping a device from sleeping

  • Thread starter Thread starter Raghav Gupta
  • Start date Start date
  • Tags Tags
    Device
Click For Summary
The discussion revolves around techniques to prevent a device from going to sleep while a user is on a website. The outdated method of using wakelock was mentioned, and an alternative suggestion was to embed a 1x1 pixel video loop to keep the device awake. However, there are concerns about the feasibility of creating such a video and the effectiveness of this method, as devices sometimes still go to sleep even when a video is playing. Participants clarify that the goal is to keep the user's device awake while visiting the website, which is intended for a temporary purpose related to an app. There are also suggestions to adjust device settings to prevent sleep, but the focus remains on achieving this effect through web programming.
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 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.
 
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...

Similar threads

Replies
40
Views
8K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
8K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
11K
  • · Replies 13 ·
Replies
13
Views
5K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K