Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Prevent unwanted host sleep while networked Network
With the new child in the house, I've lately found myself working in many locations at many odd hours of the night. The end result is that my 12" PowerBook is getting a lot of exercise lately, including a lot of hint writing and editing. (And it's also making me yearn for a 15" Core Duo machine; as much as I love travelling with my 12" PB, it's not the ideal machine from which to work remotely within the house. The lack of pixels leads to too much reliance on Exposť to help get things done.)

My Dual G5 desktop runs a local copy of Geeklog, so I do all the previewing and editing of stories from its database on the G5. When working on the PB, I enter the G5's IP address to load the submitted stories, preview my edits, and then publish to the G5. (Later on, I dump the SQL data files from the G5 and upload to the web server to publish the hints.)

I was doing this the other evening when the G5 suddenly stopped serving pages. So I put down the PB, walked over to the den, and found that the G5 had decided it was time for its pre-set "sleep if idle for 30 minutes" timeout. But clearly the machine wasn't idle -- it was serving web pages to the PowerBook. I guess, though, from the system's perspective, this didn't show as activity as far as the sleep schedule was concerned (no mouse movement or screen updates).

I didn't really want to disable sleep on the G5, so after a bit of expermentation, I found the solution: to keep a networked machine awake, you simply have to connect to it via file sharing. On the PowerBook, I mounted my home directory from the G5, and went back to work. Hours later, the G5 was still awake. I unmounted the drive when I was done, and the G5 fell asleep again as scheduled.

I assume there are other tricks to keeping a "non active" networked machine awake (setting a cron task to do something every so many minutes?), but this one worked for me.
    •    
  • Currently 2.33 / 5
  You rated: 3 / 5 (3 votes cast)
 
[6,305 views]  

Prevent unwanted host sleep while networked | 7 comments | Create New Account
Click here to return to the 'Prevent unwanted host sleep while networked' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Prevent unwanted host sleep while networked
Authored by: Gigacorpse on May 15, '06 09:04:12AM

Well, I suppose you could write a script that would log into the server via SSH and tell pmset to turn off sleep. Of course, you could have to do the reverse when done.



[ Reply to This | # ]
Prevent unwanted host sleep while networked
Authored by: sjk on May 15, '06 07:08:27PM

Whoops, you've already suggested pmset. That'll teach me to read more carefully before posting.



[ Reply to This | # ]
Jiggler
Authored by: hayne on May 15, '06 09:33:38AM
Another way would be to run the "Jiggler" utility. Its sole purpose in life is to stop a machine from sleeping.

[ Reply to This | # ]
Prevent unwanted host sleep while networked
Authored by: morespace54 on May 15, '06 11:17:57AM

I found this to be the best trick...
Of course, if you forget to unmount the disk after using it (and do not turn your computers off, like me ;-)) then the remote computer will never fall to sleep... I found that out after a few days... ;-)



[ Reply to This | # ]
Prevent unwanted host sleep while networked
Authored by: WilliamServator on May 15, '06 12:47:06PM

You could just open the System Prefs and tell the energy saver preference pane "Sleep when inactive for:Never"...

You also will need to deselect "Put hardisks to sleep when possible."



[ Reply to This | # ]
Prevent unwanted host sleep while networked
Authored by: osxpounder on May 15, '06 03:32:41PM

Good hint -- I will try it tonight at home from a PC, and if that doesn't work, I'll check out Jiggler -- thanks, hayne.

---
--
osxpounder



[ Reply to This | # ]
Prevent unwanted host sleep while networked
Authored by: sjk on May 15, '06 07:06:45PM
Sleep settings can be adjusted using pmset.

[ Reply to This | # ]