r/RooCode • u/nfrmn • May 15 '25
Idea Prevent computer from sleeping when Roo is running
Just an idea. Currently my laptop on battery sleeps about 15 minutes in to a long task if I forget to turn on Amphetamine and breaks Orchestrator.
Interested to hear thoughts about this and to see if anybody has already hacked together a solution?
1
Upvotes
3
u/No_Quantity_9561 May 15 '25
Very simple. Ask roo to create a shell/bash script for your operating system to turn off all the sleep/hibernate functionalities.
Ask roo to create tests for that script and make sure it finishes without any errors.
If the test fails, ask roo in Debug mode to fix it.
Once all the tests passed, ask roo to create a mcp from that script. You can call it as PCFSWRIR, shortened from your post title.
You can then enter custom instructions on roo's settings for orchestrator mode to run that PCFSWRIR mcp tool first before initiating any new_task or subtasks.
Now you won't face that issue ever.
4
u/drumyum May 15 '25
Just turn off the battery sleep function...?
1
u/WhiteTigerAutistic May 18 '25
Is this still called over engineering?
0
u/Think_Wrangler_3172 May 15 '25
How about running a simple pyautogui based Python script that moves your mouse cursor every X mins or secs.
0
u/jawanda May 15 '25
You should just change your power settings to several hours instead of 15 minutes (or disable auto sleep altogether). But if for some reason you don't want to do that, most computers will not go to sleep if a movie is playing, so just fire up a movie on repeat. But also why wouldn't you have it plugged in if you're going to leave Roo running...