Live data from Hacker News

Show HN: Prevent your computer sleeping with just a webpage

nosleep.page

111–120 of 137 posts

Re: Show HN: Prevent your computer sleeping with just a webpage

#111
post #31

So i get annoyed that my computer doesn't go to sleep sometimes because some website is playing a video. Is there a simple way to tell Linux/Gnome/Chrome to ignore videos and go to sleep anyway? I don't watch long videos on this computer so I hate to come back into my office and find my screen never locked because some website played a video i wasn't even watching.

It used to be possible with mint.com. I actually reported that to them and they fixed it!

Re: Show HN: Prevent your computer sleeping with just a webpage

#112
post #46

This is awesome my work computer has a stupid 5 minute setting until it sleeps that is locked.

Deliberately bypassing that puts your employment at risk. There's a reason you're being forced to log in.

Auto sleep and auto screen lock are two very different things.

Re: Show HN: Prevent your computer sleeping with just a webpage

#113

Earlier quoted context omitted.

There's a checkbox "Manually block sleep and screen locking" and you just check that.

Where in the system tray is it? Do we need to click the battery icon or something? Maybe because I'm on a pretty old version (5.18.6), I don't see that checkbox anywhere I looked.

Yes, it's in the battery applet. I'm pretty sure it's been there for a long time, but I think it was named differently before ("disable power management" maybe?)

Re: Show HN: Prevent your computer sleeping with just a webpage

#114

Thanks for sharing this. I've seen it on some recipe websites recently and was wondering how it worked. I would recommend making the links (eg to the Mozilla page) use a different color or underlined.

While the use case for recipes stying alive is very useful. Should this responsibility really be delegated to each website?

I didn’t even know this was a feature of my browser. Say for example I write a shopping list based on the recipe web page, then go to the supermarket to buy the ingredients, leaving the tab open because I will need the instructions tomorrow for the cooking. Now my computer will be forced on during the rest of day based on the choice of the website owner?! Wtf. What if I leave the tablet open after finishing cooking, Is there any timeout on this thing or will that differ depending on each website?

Honestly this feature is really badly thought through. It should be a feature of the OS and not up to random web sites without even asking for permission.

Putting my most cynical hat on you could imagine advertisers enabling this on every website so you are more likely to be exposed to their ads.

Re: Show HN: Prevent your computer sleeping with just a webpage

#115

Earlier quoted context omitted.

Where in the system tray is it? Do we need to click the battery icon or something? Maybe because I'm on a pretty old version (5.18.6), I don't see that checkbox anywhere I looked.

Yes, it's in the battery applet. I'm pretty sure it's been there for a long time, but I think it was named differently before ("disable power management" maybe?)

Ah, yes, there's an "Enable Power management" checkbox, by default checked. Thanks.

Re: Show HN: Prevent your computer sleeping with just a webpage

#116
post #31

So i get annoyed that my computer doesn't go to sleep sometimes because some website is playing a video. Is there a simple way to tell Linux/Gnome/Chrome to ignore videos and go to sleep anyway? I don't watch long videos on this computer so I hate to come back into my office and find my screen never locked because some website played a video i wasn't even watching.

I have my computers set up to lock with Meta + L on my Linux machine and Cmd + L on my MacBook Pro M1. And then I quickly and simply lock them with that whenever I get up from my seat.

Re: Show HN: Prevent your computer sleeping with just a webpage

#117
post #93

Earlier quoted context omitted.

it's gotten to the point now where laptop manufacturers tell you not to put sleeping/hibernating laptop into a bag at all due to amount of heat they still generate even while sleeping [0]. Only those that are fully shut down should be placed in a bag (according to them). [0] https://www.dell.com/community/XPS/FAQ-Modern-Standby/td-p/7... Previous HN discussion: https://news.ycombinator.com/item?id=28639952

I miss hibernation. Real, write the contents of RAM to disk and shut-off completely type of hibernation.

I am confused. It's still around, right? It might be disabled by default on Windows, but you can always modify the power setting to enable hybernation? I set mine up and replaced "sleep" with "hibernate" in every setting I could find, like power button, lid close, idle timeout.

Re: Show HN: Prevent your computer sleeping with just a webpage

#118
post #31

So i get annoyed that my computer doesn't go to sleep sometimes because some website is playing a video. Is there a simple way to tell Linux/Gnome/Chrome to ignore videos and go to sleep anyway? I don't watch long videos on this computer so I hate to come back into my office and find my screen never locked because some website played a video i wasn't even watching.

I think at least if it's not the currently active tab it will still go to sleep, so it's not like a random Autoplay video in a background tab will ruin your day. At least that's what it seems like with Firefox on Linux.

Re: Show HN: Prevent your computer sleeping with just a webpage

#119

If you absolutely want to prevent a Mac from not only going to sleep, but restarting for any reason at all (say, to install important security updates, which are usually forced on the user with no choice), there aren't many good ways. The only thing I've found that really works reliably is to open MS Word, create a new document, add some random characters to it, and then leave without ever saving. Word will prevent t…

[deleted]
Post reply on HN