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


Click here to return to the 'Tiger installation tips!' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Tiger installation tips!
Authored by: whit_g on Oct 07, '05 11:21:59AM
I just went through a big rigamarole trying to get this to work in Tiger (including soliciting help from the author of SleepWatcher, who was very helpful) and thought I'd post what I found out. There are really just two alterations to the instructions at the top (my apologies if either of these have already been mentioned): 1. The filename you're looking for (since the 2.0 update) is '/etc/rc.sleep', not '~/.sleep'. 2. The code you need to add to rc.sleep can (or should, I'm not sure) be on two lines, like so:
#/bin/sh

/System/Library/CoreServices/Menu Extras/User.menu/Contents/Resources/CGSession -suspend
This setup is working perfectly on 10.4.2. Hopefully that will help anyone who is still trying to use this tip. I only wish Apple would add this as a system option.

[ Reply to This | # ]
Tiger installation tips!
Authored by: martyl on Oct 10, '05 11:01:46AM

Rather than show the login window, I'm trying to get the equivalent of choosing "Lock screen" from the Keychain menu bar item. Does anyone know how to invoke this from the command line so I can use it with SleepWatcher? Is this as safe as switching to the login screen?

Thanks!

---
Marty Lindower



[ Reply to This | # ]
Tiger installation tips!
Authored by: TicToc on Oct 17, '05 03:20:03AM
Thanks for the tip. It got the hint working on my Powerbook (running 10.4.2). A couple of comments/questions:
1. Shouldn't the first line be
#!/bin/sh
2. Shouldn't there be a
\
after "Menu" in the second line?

3. Implementing this tip does make the login window activate on sleep, for all users. What I liked about the original hint (and the original rc.sleep file) is that it runs ~/.sleep, which can be different for each user. Have you any idea how to get that functionality back? I've tried installing the Sleepwatcher StartUpItem, complete with rc.sleep file, and .sleep as in the original hint, but it fails on sleep with the complaint
System/Library/CoreServices/Menu Extras/User.menu/Contents/Resources/CGSession: Unable to Fast User Switch: User must be the current console user or root.

Thanks,
John

[ Reply to This | # ]
Tiger installation tips!
Authored by: magnamous on Sep 12, '06 12:45:25AM
In /etc/rc.sleep, change this line:
su - $name -c "$home/.sleep"
to this:
"$home/.sleep"
Worked for me on a Pismo on 10.4.7, but I don't know enough to know whether this is secure or not: it executes as the current user, but I don't know if there are other things that need to be taken into consideration.

[ Reply to This | # ]
Switch to login window upon sleep
Authored by: whit_g on Oct 10, '05 11:43:25AM

Sorry, that reply was intended for the previous poster - I hit the wrong button. :)



[ Reply to This | # ]