Computer sleep settings location

I'm looking for a way to make the iMac stay awake when I'm logged in
Andrew J. Brehm wrote on :

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?

sp replied on :

Andrew J. Brehm ajbrehm@redacted.invalid 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:

System Sleep Timer 60

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

K.

Andrew J. Brehm replied on :

Kir·ly sp@redacted.invalid wrote:

Andrew J. Brehm ajbrehm@redacted.invalid 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:

System Sleep Timer 60

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.

Bob Harris replied on :

In article 1gvhbp9.geode71wjoy2mN%ajbrehm@redacted.invalid, ajbrehm@redacted.invalid (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
Andrew J. Brehm replied on :

Bob Harris nospam.News.Bob@redacted.invalid wrote:

In article 1gvhbp9.geode71wjoy2mN%ajbrehm@redacted.invalid, ajbrehm@redacted.invalid (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.

Clark Martin replied on :

In article 1gvhbp9.geode71wjoy2mN%ajbrehm@redacted.invalid, ajbrehm@redacted.invalid (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.

Andrew J. Brehm replied on :

Clark Martin cmnews@redacted.invalid wrote:

In article 1gvhbp9.geode71wjoy2mN%ajbrehm@redacted.invalid, ajbrehm@redacted.invalid (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.