How do I sleep AND log out?

evoevo
Posted:
in macOS edited January 2014
I want to put my computer to sleep, and when it wakes up, I want it to display the login screen. Is there a way to have the computer log out when you put it to sleep? I can't find this option anywhere... aside from laboriously going to Log Out, then hitting the power button on the side of my eMac...
«1

Comments

  • Reply 1 of 31
    I haven't been able to find a way to make it log out after it goes to sleep... but i do have a couple keyboard shortcuts that will make your life a little easier.



    Log out: Command + Shift + Q



    Sleep: Command + Option + Eject



    At least that way you don't have to hit your power button.
  • Reply 2 of 31
    overhopeoverhope Posts: 1,123member
    Yeah, I think this would be good feature to have (and I've hunted high and low for it), so I suggested it on the OS X feedback page.



    All it needs is for the machine to be able to sleep at the login screen, and I don't see why it would be so hard. As it stands, it could be considered a security problem...



    Although, looking at another thread, I've just considered the possibility that the power button on my Cube or display might send it to sleep while I'm logged out... hmm, I shall experiment.



    [ 09-12-2002: Message edited by: Overhope ]</p>
  • Reply 3 of 31
    Jaguar does allow you to sleep at the login screen. As I described above, if you hit the key combos to log out, and then sleep, it will. That's what I do every night at home when I'm done with the Mac... Log out, sleep. All without ever hitting the power button.
  • Reply 4 of 31
    overhopeoverhope Posts: 1,123member
    Yeah, thanks for lifting a veil on that: in my stupidity I was thinking that the lack of a Sleep button in the dialog and the fact it won't sleep on its own meant it wouldn't do it at all... <img src="graemlins/oyvey.gif" border="0" alt="[No]" />
  • Reply 5 of 31
    reidreid Posts: 190member
    In my experience, Jaguar will go to sleep at the login screen following your Energy Saver settings IF you've got Personal File Sharing turned off.
  • Reply 6 of 31
    overhopeoverhope Posts: 1,123member
    Hmm, maybe I never left it long enough...



    Update, nope, I left it for half an hour on the login screen and it sat there without doing a thing, which makes sense, since there won't be any Energy Saver prefs loaded until a user has logged in. Oh well, interesting experiment.



    [ 09-14-2002: Message edited by: Overhope ]</p>
  • Reply 7 of 31
    Just FWIW, mine DOES go to sleep by itself if left at the login screen. So do 4 other iMacs I've installed Jaguar on. But I just manually sleep mine at the login screen when I'm done by hitting Command + Option + Eject... I just wanted to point out that I don't need to, because mine does sleep by itself if just left on at the login screen.
  • Reply 8 of 31
    overhopeoverhope Posts: 1,123member
    It's probably a model-specific difference: I'm running a Cube. Still, it's not actually a problem, as the power buttons on the machine and the display will zap it to sleep, as will the keyboard shortcuts (thanks for those, BTW).



    Typically Apple: you think, "I wish it did that", and it turns out that it already does.
  • Reply 9 of 31
    maybe you didn't set the energy saver preferences yet?



    mine sleeps if I leave it sit too.
  • Reply 10 of 31
    Yes, I do have Energy Saver preferences set up (5 minutes Display, 15 for the system), and that all works properly, but, as I said earlier, when there's no user logged in, these shouldn't have any effect. Although I can't remember if I set any up for the root... hmm, maybe I'll go play a bit later.



    Updated: yes, the root had Energy Saver set to Never: I changed it, and it will now sleep all on its lonesome at the login screen. So that's another one all tidied up and put to bed, thanks for the input, guys.



    [ 09-15-2002: Message edited by: Overhope ]</p>
  • Reply 11 of 31
    escherescher Posts: 1,811member
    [quote]Originally posted by Xaqtly:

    <strong>Sleep: Command + Option + Eject</strong><hr></blockquote>



    Unfortunately, that keyboard combination doesn't work on my iBook (Dual USB). Anybody know the sleep keyboard combination for iBook (and presumably PowerBooks as well)?



    Escher
  • Reply 12 of 31
    try Command + Option + Power key on Macs that don't have an Eject button, such as portables.
  • Reply 13 of 31
    I have an iMac G4 15" and that key combo (command+option+eject) used to work until I upgraded to Jaguar. Now it won't respond. I have to let it fall asleep according to my energy saving prefs. If anybody has any ideas on how to fix it or what it might have been changed to, that would be most excellent. It is probably just the case of something breaking because of one of the new 150 added features in jaguar. Maybe the 10.2.1 update will fix it.
  • Reply 14 of 31
    command-option-eject puts my dual usb ibook to sleep. However, you can't just tap it quickly. You have to hold it down for a bit (just like when you want to eject the cd).



    However, the easiest way to put an iBook to sleep is to close the lid.
  • Reply 15 of 31
    pasmac, I can tell you it's not Jaguar specifically that's causing it not to work. It works fine on the 4 different Macs with Jaguar I've tried it on so far, including mine which is an 800 MHz flat panel iMac like yours. So it's something on your Mac specifically. It is possible maybe something got corrupted when you installed Jaguar, but Jaguar itself won't disable that sleep command.



    You say you "upgraded" to Jaguar... did you mean that literally, as in you did the "Upgrade" option in the installer? If so, I'd say do a clean install of Jaguar. You will probably notice a big speed boost and it will fix little problems like this one.
  • Reply 16 of 31
    I can see where this feature might be handy...



    Let's say you're in a design department, but you want each computer password protected. If you walk-away and the screensaver kicks in... only YOU can unlock it... no one else can login to use the puter. If it went to login after sleeping... it would allow other users to acces THEIR accounts on the machine if you left.



    * IN A PERFECT WORLD, though *



    If the user has ANY open documents on their computer... dumping to the login screen would be an issue. What do you do with all the Photoshop and illustrator documents that were open...? which ones does it save and which ones does it NOT save...? How is it gonna tell that ANNOYING MSN Chat client that; YES... I really DO want to quit (GOD that bugs me).



    It seems that waking-up to the login-screen would only be helpful if MAC OSX could have "Saved-states" where things load back as they were before... but that still does nothing for the open files... especially those that were opened across a network from a server.



    I have no answers... only wrenches to throw in the gears... sorry.
  • Reply 17 of 31
    What you are all describing has existed in the UNIX world for many years.



    It's called screen lock, in SUN openwin it is the xlock program. On Hp vue systems it is vuelock.



    Why log off when you just want to protect the screen for a short time.



    Some UNIX systems auto screen lock and start the screen saver at the same time.



    Since Jaguar will not install on my G3 PB and I have not yet received my new PowerMac to try it either, I do not know if such a thing is available.



    [ 09-17-2002: Message edited by: MrBillData ]</p>
  • Reply 18 of 31
    [quote]Originally posted by MrBillData:

    <strong>What you are all describing has existed in the UNIX world for many years.



    It's called screen lock, in SUN openwin it is the xlock program. On Hp vue systems it is vuelock.



    Why log off when you just want to protect the screen for a short time.



    Some UNIX systems auto screen lock and start the screen saver at the same time.



    Since Jaguar will not install on my G3 PB and I have not yet received my new PowerMac to try it either, I do not know if such a thing is available.



    [ 09-17-2002: Message edited by: MrBillData ]</strong><hr></blockquote>



    Ummm... no... I don't *think* we're talking about the same thing here...



    I think the original idea was that INSTEAD of just locking-out the screen (which can be done via screensavers) it will go directly to a login screen to allow OTHER users access to THEIR accounts automatically.



    But as I posted above... there are issues with auto-logging-out.
  • Reply 19 of 31
    That does not make sense.



    You want to log off... i.e. abandon the system.



    But at the same time you want it to run something to entertain the people that might be casually noticing it or save a miniscule amount of power being asleep.



    How absurd.



    Just start a cron job at boot time to check for a user on the console every minute. Have it go to sleep if it finds that there isn't anyone logged on.



    [ 09-17-2002: Message edited by: MrBillData ]</p>
  • Reply 20 of 31
    [quote]Originally posted by MrBillData:

    <strong>That does not make sense.



    You want to log off... i.e. abandon the system.



    But at the same time you want it to run something to entertain the people that might be casually noticing it or save a miniscule amount of power being asleep.



    How absurd.



    Just start a cron job at boot time to check for a user on the console every minute. Have it go to sleep if it finds that there isn't anyone logged on.



    [ 09-17-2002: Message edited by: MrBillData ]</strong><hr></blockquote>



    You're still missing the point...



    Maybe This will clarify:



    IGNORE the screensaver... IGNORE sleep...



    I have a mac... I'm working on stuff...



    I walk away, and INSTEAD of it going to sleep after it "times-out"... it LOGS OUT and goes to sleep instead.



    THAT (I believe) is what he was talking about. The system would just log the user out at "sleep" time... thus requiring someone to log-back-in... but now, ANY user setup on that machine can access it.



    Is that any clearer...? I'm not good at describing these things...
Sign In or Register to comment.