Website keeping a device from sleeping

  • Thread starter Thread starter Raghav Gupta
  • Start date Start date
  • Tags Tags
    Device
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 2K views
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.
 
Physics 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.