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…
Show HN: Prevent your computer sleeping with just a webpage
81–90 of 137 posts
Re: Show HN: Prevent your computer sleeping with just a webpage
#82Earlier quoted context omitted.
For some reason caffeinate doesn't keep my computer awake (newish macbook pro)
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.
I think you buried the lede there...
Re: Show HN: Prevent your computer sleeping with just a webpage
#83Interesting. The various customizations Asus makes with its gaming software on my laptop somehow stops the PowerToys keep-awake utility from functioning as intended. I wonder if this page will do the trick.
Re: Show HN: Prevent your computer sleeping with just a webpage
#84with text file saved as .bat file ` @echo off powercfg.exe -x -monitor-timeout-ac 5 powercfg.exe -x -disk-timeout-ac 180 powercfg.exe -x -standby-timeout-ac 180 powercfg.exe -x -hibernate-timeout-ac 999 `
Disclaimer: I built the tool.
Re: Show HN: Prevent your computer sleeping with just a webpage
#85Earlier 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.
I think on Windows you can run powercfg /requests I'm not sure about linux or Mac though
Re: Show HN: Prevent your computer sleeping with just a webpage
#86Re: Show HN: Prevent your computer sleeping with just a webpage
#87If 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…
The windows equivalent to this is an unsaved text file in notepad.
Re: Show HN: Prevent your computer sleeping with just a webpage
#88Re: Show HN: Prevent your computer sleeping with just a webpage
#89Yeah, 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.
Uh oh, sounds like you might have to actually do your job too!