Live data from Hacker News

Show HN: Prevent your computer sleeping with just a webpage

nosleep.page

121–130 of 137 posts

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

#122
post #121

> they're often overkill Can you explain why? I never wants my Mac to sleep except when I close the lid. Amphetamine does the job; it starts at boot and I don’t have to care about it at all.

I'm not saying web applications are always better (of course they aren't), but they are better for when you either can't/don't want to install any application that gives access to everything on your computer. If a simple navigation to the URL can give you the same thing as installing a application (implicitly giving them access to all your files and more), wouldn't you normally prefer the first?

Again, web applications are not better for everything, but they are more safe for the average computer user, as they run in a restricted environment, compared to native applications.

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

#123
post #32

Earlier quoted context omitted.

Sorry, i'm a kde user but not sure how this would be done...? Would you kindly provide details, or a link to a how to?

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

Ah yes, of course! How did i ever miss that? I see it now; thanks very much!

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

#124
post #93

Earlier quoted context omitted.

Nothing like packing up your laptop at the end of the day, clicking "sleep" and wondering if it actually will cooperate or if you have open it back up and close random tabs and programs till it does,then waiting for the fan to audibly stop before putting it into a bag!

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

The problem is with sleep (and the "active" sleep "S0 Low Power" that will check email) and Modern Standby, which uses software to choose when to Hibernate, so might not.

Hibernate S4 itself is fine, except the risk of physically triggering wakeup.

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

#125

Earlier quoted context omitted.

I think on Windows you can run powercfg /requests I'm not sure about linux or Mac though

On MacOS, Activity Monitor has a "Preventing Sleep" column. From the command line, "pmset -g" or "pmset -g assertions" has useful information.

Now we need a menu appplet, cute icon, and name like Lullaby.

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

#126

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…

Why would Word do all that craziness instead of just saving a copy of the document like it did 20 years ago?

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

#127
post #71
post #44

Earlier quoted context omitted.

I can think of a few reasons. Looking at that page, the extension seems to only be compatible with Crome OS. A pretty limited audience can use that. Also, I assume this is a pet project of the author. They had a need, and found a way to solve it. They probably had fun, and learned some things along the way. Often, that’s kind of the whole point of a weekend project. Even if there is another established solution, ‘Why…

It has worked on every OS that has chrome that I have used and takes like 30 seconds to install. It is easier to click a chrome extension to stay awake than go to a webpage in my opinion. You do you though

Hey fair enough. Good to know. But you’re the one who asked ‘why’? I guess you thought that was rhetorical? :)

I was just going off the docs which specifically mention Chrome OS and Chrome-books. Personally, I’ve never really had a use case for something like this.

My only point is, I still applaud the author’s effort here, and it taught me something new about Web APIs. It’s interesting that you can do that at all with a web page!

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

#129
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.

As I understand on current windows, the normal power off is actually hibernate.

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

#130

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…

Open a vim session in Terminal. Active processes prevent Terminal from quitting which prevents shutdown from proceeding
Post reply on HN