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


Click here to return to the 'Switch to login window upon sleep' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Switch to login window upon sleep
Authored by: Dahak on Jul 28, '04 01:29:33PM

What model PowerBook do you have? I just set this up on a 15" Aluminum PB and it works great.



[ Reply to This | # ]
Switch to login window upon sleep
Authored by: fbitterlich on Jul 29, '04 06:53:20AM
That's a 12" Al. It appears to be a permissions problem; when I change the "rc.login" script from this...

for home in /var/root /Users/*; do
        if [ -f "$home/.sleep" -a -x "$home/.sleep" ]; then
               su - `basename "$home"` -c "$home"/.sleep
        fi
done
... to this...

for home in /var/root /Users/*; do
        if [ -f "$home/.sleep" -a -x "$home/.sleep" ]; then
                "$home"/.sleep
        fi
done
..., then it works. Looks like it chokes on the "su" command... If I do that line manually, it asks for a passsword.

[ Reply to This | # ]
Switch to login window upon sleep
Authored by: beanboyrjs on Jul 29, '04 10:37:16AM

That worked! Thanks



[ Reply to This | # ]
Switch to login window upon sleep
Authored by: whatevrnvrmind on Jul 30, '04 09:13:51PM

I'm a little bit of a newbie. Can you be a little more specific on how to locate this file and edit it?



[ Reply to This | # ]