Live data from Hacker News

Show HN: Prevent your computer sleeping with just a webpage

nosleep.page

91–100 of 137 posts

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

#91
post #82
post #28

Earlier quoted context omitted.

I've been using a Zoom meeting of just myself, locked, audio and camera off. Worked like a charm when I needed to discharge a swelling battery.

> Worked like a charm when I needed to discharge a swelling battery. I think you buried the lede there...

It just happens, apparently. Here's a decent rundown:

https://www.ifixit.com/Wiki/What_to_do_with_a_swollen_batter...

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

#93
post #37

Earlier quoted context omitted.

Additionally, something to tell me whether my PC will go to sleep or not if left alone. OP's problem happens to me every so often that I need to make sure the PC is indeed going to sleep before heading out.

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

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

#94

Can this web page keep my computer awake without me explicitly giving it permission? I don't really like that, and would like to tell my browser not to allow it.

Only if the web page is visible - page is active tab and browser is visible.

It's a useful feature, I use it to prevent a tablet displaying a dashboard turning off the screen due to lack of user action.

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

#95
post #79

Earlier quoted context omitted.

The windows equivalent to this is an unsaved text file in notepad.

PowerToys[0] has a utility for that. It stays in the corner of the taskbar. [0] https://github.com/microsoft/PowerToys

This is good for users who don't have admin rights but want to keep online for employee monitoring purposes.

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

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

Maybe if you're slacking off, but if you're working on a project with 10-minute compile times, you can't really use the computer for anything else while it's doing that, and it's quite annoying if it decides to go to sleep in the middle of that because you haven't nudged the mouse recently enough.

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

#98

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…

And it does specifically need to be a third party application like Word. Built in apps like TextEdit support state restoration, so it will probably still reboot if you have unsaved content in TextEdit.

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

#99
post #89

Yeah, let's make it harder for the people who have to clean up after security incidents. The automatic logout policies are there for a reason. Bypassing that means one day, somebody's going to forget and leave an important workstation open for a passersby or malicious actor. If it's that inconvenient, talk with your IT people and make a case for changing it. If you use stuff like this, I hope you get shitcanned.

> let's make it harder for the people who have to clean up after security incidents Uh oh, sounds like you might have to actually do your job too!

I'm so glad I left desktop support, but I still empathize. Running a network of hundreds of endpoints means you have to sacrifice laziness. That means you have to log in again after leaving your computer for five minutes. Because if you don't, the jackass who doesn't like you will wait to surf your computer to porn sites, or your coworkers will replace your wallpaper, or someone actually malicious will delete your project files and backups, or run a zero-day.

All sorts of shit like that happens. People are fundamentally lazy and stupid, which is why we can't have nice things, line workplaces where you don't have to worry about leaving your computer unlocked.

Stuff like this site that makes it easier to embrace the laziness and stupidity just make life worse.

How about no browsers? How about limiting network access to a strict whitelist approved by the boss and nothing else?

That's the type of shit that happens when you create tools like this. I 100% guarantee this site will be misused and the resulting corporate overcorrection will make hundreds or thousands of people's lives objectively worse.

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

#100

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…

An open iTerm terminal or Emacs window also fulfill this function for me (usually unintentionally)
Post reply on HN