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: fbitterlich on Jul 28, '04 12:51:07PM

For some reason it doesn't work for me... sleepwatcher is running (checked with "ps -ax"), my ~/.sleep is "chmod +x" (I can run it manually, and I can also run /etc/rc.sleep manually), but when my PowerBook goes to sleep (manually, or by closing the lid), it doesn't run the .sleep script. Any ideas?



[ Reply to This | # ]
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 | # ]
Switch to login window upon sleep
Authored by: beanboyrjs on Jul 28, '04 11:26:26PM

This isn't working for me either. I have a 15" TiBook, and have made the same checks.



[ Reply to This | # ]
Switch to login window upon sleep
Authored by: whatevrnvrmind on Jul 29, '04 02:26:01AM

Not working for me either. I have a PowerBook G4/1.25 GHz.



[ Reply to This | # ]