Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Website keeping a device from sleeping

  1. Apr 10, 2016 #1
    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.
  2. jcsd
  3. Apr 10, 2016 #2


    User Avatar
    Gold Member

    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.
  4. Apr 10, 2016 #3
    No, I want the effect on person visiting my website.
  5. Apr 10, 2016 #4


    User Avatar
    Science Advisor
    Gold Member
    2017 Award

    But do they want their computer kept awake by your website?
  6. Apr 10, 2016 #5
    It is basically for a trick someone has developed. The website is a temporary one.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted

Similar Discussions: Website keeping a device from sleeping
  1. Personal Website (Replies: 15)

  2. Burst Sleep mode (Replies: 3)

  3. WebSite music (Replies: 12)