The conversation on this page has been archived and is no longer active.

Computer sleep settings location

Message #1 - Posted 2005/04/23 - Andrew J. Brehm

Where exactly are the energy saver settings stored?

My iMac, as it should, falls asleep after an hour when not used. So I figured that I could wake it up by telephone which works.

However, once I log on (via SSH) the computer seems to believe that a login does not really count as a user's presence and falls asleep again.

Now I'm looking for a way to make the iMac stay awake when I'm logged in, perhaps by changing the energy saver settings via my login script and changing it back when I log out or so.

How would I achieve that?

Andrew J. Brehm
Marx Brothers Fan
PowerPC/Macintosh User
Supporter of Chicken Sandwiches

Message #2 - Posted 2005/04/23 - Kir?ly

Andrew J. Brehm wrote:

However, once I log on (via SSH) the computer seems to believe that a login does not really count as a user's presence and falls asleep again.

Now I'm looking for a way to make the iMac stay awake when I'm logged in, perhaps by changing the energy saver settings via my login script and changing it back when I log out or so.

The settings are stored in this file: /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist

About halfway down you should see this entry:

<key>System Sleep Timer</key> <integer>60</integer>

The number 60 is telling the computer to sleep after 60 minutes. If you change it to 0 it won't sleep.

K.

Message #3 - Posted 2005/04/24 - Andrew J. Brehm

Kir·ly wrote:

Andrew J. Brehm wrote:

However, once I log on (via SSH) the computer seems to believe that a login does not really count as a user's presence and falls asleep again.

Now I'm looking for a way to make the iMac stay awake when I'm logged in, perhaps by changing the energy saver settings via my login script and changing it back when I log out or so.

The settings are stored in this file: /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist

About halfway down you should see this entry:

<key>System Sleep Timer</key> <integer>60</integer>

The number 60 is telling the computer to sleep after 60 minutes. If you change it to 0 it won't sleep.

Stills falls asleep when I wake it up and log in via SSH.

I now believe that the only way might be to run VNC and send my password to the console.

Andrew J. Brehm
Marx Brothers Fan
PowerPC/Macintosh User
Supporter of Chicken Sandwiches

Message #4 - Posted 2005/04/24 - Bob Harris

Previously, Andrew J. Brehm wrote:

Where exactly are the energy saver settings stored?

My iMac, as it should, falls asleep after an hour when not used. So I figured that I could wake it up by telephone which works.

However, once I log on (via SSH) the computer seems to believe that a login does not really count as a user's presence and falls asleep again.

Now I'm looking for a way to make the iMac stay awake when I'm logged in, perhaps by changing the energy saver settings via my login script and changing it back when I log out or so.

How would I achieve that?

look at the pmset command

man pmset

You should be able to change sleep interval from the command line via pmset.

Bob Harris

Message #5 - Posted 2005/04/24 - Andrew J. Brehm

Bob Harris wrote:

Previously, Andrew J. Brehm wrote:

Where exactly are the energy saver settings stored?

My iMac, as it should, falls asleep after an hour when not used. So I figured that I could wake it up by telephone which works.

However, once I log on (via SSH) the computer seems to believe that a login does not really count as a user's presence and falls asleep again.

Now I'm looking for a way to make the iMac stay awake when I'm logged in, perhaps by changing the energy saver settings via my login script and changing it back when I log out or so.

How would I achieve that?

look at the pmset command

man pmset

You should be able to change sleep interval from the command line via pmset.

I'll try that. Thanks.

Andrew J. Brehm
Marx Brothers Fan
PowerPC/Macintosh User
Supporter of Chicken Sandwiches

Message #6 - Posted 2005/04/26 - Clark Martin

Previously, Andrew J. Brehm wrote:

Where exactly are the energy saver settings stored?

My iMac, as it should, falls asleep after an hour when not used. So I figured that I could wake it up by telephone which works.

However, once I log on (via SSH) the computer seems to believe that a login does not really count as a user's presence and falls asleep again.

Now I'm looking for a way to make the iMac stay awake when I'm logged in, perhaps by changing the energy saver settings via my login script and changing it back when I log out or so.

How would I achieve that?

If the computer is logged in to a user account you could try launching a Mac GUI application using the "open /Applications/ProgramName.app" command.

Apple Remote Desktop seems to have the same problem. Doing things with it besides remote control doesn't count as activity so it can go to sleep in the middle of a task.

Clark Martin
Redwood City, CA, USA Macintosh / Internet Consulting

"I'm a designated driver on the Information Super Highway"

Message #7 - Posted 2005/04/27 - Andrew J. Brehm

Clark Martin wrote:

Previously, Andrew J. Brehm wrote:

Where exactly are the energy saver settings stored?

My iMac, as it should, falls asleep after an hour when not used. So I figured that I could wake it up by telephone which works.

However, once I log on (via SSH) the computer seems to believe that a login does not really count as a user's presence and falls asleep again.

Now I'm looking for a way to make the iMac stay awake when I'm logged in, perhaps by changing the energy saver settings via my login script and changing it back when I log out or so.

How would I achieve that?

If the computer is logged in to a user account you could try launching a Mac GUI application using the "open /Applications/ProgramName.app" command.

A user is logged on but the screen is locked.

Apple Remote Desktop seems to have the same problem. Doing things with it besides remote control doesn't count as activity so it can go to sleep in the middle of a task.

That should be classified as a bug.

Andrew J. Brehm
Marx Brothers Fan
PowerPC/Macintosh User
Supporter of Chicken Sandwiches

Need Help? Have a Question?

Looking for more help, comments, and answers?

Ask your questions on Ask Different. Ask Different is a community of Apple users ready to help.