I am still experiencing the same problem with my Mac falling asleep while I am using it.
I have set it to wake up when the modem rings (to receive faxes). My plan was to use this to wake up the Mac remotely and then use it via SSH. Otherwise I would have to prevent it from sleeping all day.
But for some reason the Mac falls asleep after a minute or so even when I am logged on and using it.
Is there a way to prevent this?
I was thinking that maybe killing the process that shows the screensaver security login screen would make the Mac believe that somebody is using the console. But I cannot seem to find out what program I'd have to kill to get this done.
Help!
Thank you.
On 11/05/2005 9:15 AM, Andrew J. Brehm wrote:
I am still experiencing the same problem with my Mac falling asleep while I am using it.
I have set it to wake up when the modem rings (to receive faxes). My plan was to use this to wake up the Mac remotely and then use it via SSH. Otherwise I would have to prevent it from sleeping all day.
But for some reason the Mac falls asleep after a minute or so even when I am logged on and using it.
By "logged in" you mean logged in via the console remotely, I assume. I've had this problem too.
While I have no solution to the immediate problem, I use the Wake-on-lan stuff to wake up my Mac remotely. I can run a Perl script from my edge box that sends the WOL magic packet to the Mac, and then I ssh in.
I've had some success in having a background process send the magic packet periodically whilst I am logged in, but can't remember if I verified that this worked or not.
I set my sleep time to 45 minutes, and am usually quite done by then.
clvrmnky clvrmnky-uunet@redacted.invalid wrote:
On 11/05/2005 9:15 AM, Andrew J. Brehm wrote:
I am still experiencing the same problem with my Mac falling asleep while I am using it.
I have set it to wake up when the modem rings (to receive faxes). My plan was to use this to wake up the Mac remotely and then use it via SSH. Otherwise I would have to prevent it from sleeping all day.
But for some reason the Mac falls asleep after a minute or so even when I am logged on and using it.
By "logged in" you mean logged in via the console remotely, I assume. I've had this problem too.
Exactlly.
While I have no solution to the immediate problem, I use the Wake-on-lan stuff to wake up my Mac remotely. I can run a Perl script from my edge box that sends the WOL magic packet to the Mac, and then I ssh in.
That would be an idea, yes.
I've had some success in having a background process send the magic packet periodically whilst I am logged in, but can't remember if I verified that this worked or not.
I'll try that.
I set my sleep time to 45 minutes, and am usually quite done by then.
If I had 45 minutes, I wouldn't complain. However, when the Mac wakes up to receive a fax, it falls asleep again within a minute.
I wish the energy saver would simply not make the computer fall asleep when I'm using it!
But i'll try sending the wake-on-lan trick!
clvrmnky clvrmnky-uunet@redacted.invalid wrote:
I've had some success in having a background process send the magic packet periodically whilst I am logged in, but can't remember if I verified that this worked or not.
It doesn't work. I have tried it. Here's what I did.
Started a terminal and typed
sleep 10; while true; do stayup; done
in it. Before the ten seconds elapsed I forced to computer to sleep.
("stayup" is an alias to wakeonlan with my ethernet address.)
I then called the computer from my mobile phone. It woke up, expecting a possible fax, displayd the screensaver password window, stayed awake for a minute and then fell asleep again.
When I woke it up again and unlocked the screen I could see that wakeonlan was indeed running several dozen times while the computer was awake for the minute.
So that doesn't appear to work.
What I see as possible solutions is to either switch off sleep completely from a terminal session (and switch it on again in the logoff script), or kill the screensaver and make the Mac believe that somebody is at the console.
I have not found out how to do either. I think the first would be the best.
Andrew J. Brehm ajbrehm@redacted.invalid wrote:
Started a terminal and typed
sleep 10; while true; do stayup; done
in it. Before the ten seconds elapsed I forced to computer to sleep.
("stayup" is an alias to wakeonlan with my ethernet address.)
I then called the computer from my mobile phone. It woke up, expecting a possible fax, displayd the screensaver password window, stayed awake for a minute and then fell asleep again.
When I woke it up again and unlocked the screen I could see that wakeonlan was indeed running several dozen times while the computer was awake for the minute.
What's "wakeonlan"?
Have you checked out, "man pmset"?
NAME pmset -- modify power management settings
SYNOPSIS pmset [-a | -b | -c | -u] [displaysleep minutes] [disksleep minutes] [sleep minutes] [womp 1/0] [ring 1/0] [autorestart 1/0] [dps 1/0] [reduce 1/0] [powerbutton 1/0] [lidwake 1/0] [acwake 1/0] [lessbright 1/0] [halfdim 1/0] [sms 1/0] [boot] pmset -u [haltlevel percent] [haltafter minutes] [haltremain minutes] pmset -g [disk | live | cap | sched | ups | ps | pslog] pmset schedule [cancel] type date+time [owner] pmset repeat cancel pmset repeat type weekdays time
DESCRIPTION pmset changes and reads power management settings such as idle sleep timing, wake on administrative access, automatic restart on power loss, etc.
Do you (want to) know how to script killing and restarting the screensaver? Get the PID and freeze it with kill -STOP $PID, continue with kill -CONT $PID.
Troubled Tony tt@redacted.invalid wrote:
Andrew J. Brehm ajbrehm@redacted.invalid wrote:
Started a terminal and typed
sleep 10; while true; do stayup; done
in it. Before the ten seconds elapsed I forced to computer to sleep.
("stayup" is an alias to wakeonlan with my ethernet address.)
I then called the computer from my mobile phone. It woke up, expecting a possible fax, displayd the screensaver password window, stayed awake for a minute and then fell asleep again.
When I woke it up again and unlocked the screen I could see that wakeonlan was indeed running several dozen times while the computer was awake for the minute.
What's "wakeonlan"?
Have you checked out, "man pmset"?
NAME pmset -- modify power management settings
SYNOPSIS pmset [-a | -b | -c | -u] [displaysleep minutes] [disksleep minutes] [sleep minutes] [womp 1/0] [ring 1/0] [autorestart 1/0] [dps 1/0] [reduce 1/0] [powerbutton 1/0] [lidwake 1/0] [acwake 1/0] [lessbright 1/0] [halfdim 1/0] [sms 1/0] [boot] pmset -u [haltlevel percent] [haltafter minutes] [haltremain minutes] pmset -g [disk | live | cap | sched | ups | ps | pslog] pmset schedule [cancel] type date+time [owner] pmset repeat cancel pmset repeat type weekdays time
DESCRIPTION pmset changes and reads power management settings such as idle sleep timing, wake on administrative access, automatic restart on power loss, etc.
Do you (want to) know how to script killing and restarting the screensaver? Get the PID and freeze it with kill -STOP $PID, continue with kill -CONT $PID.
Know that. Tried that. The problem is the machine still falls asleep after being woken up via modem.
Andrew J. Brehm ajbrehm@redacted.invalid wrote:
Troubled Tony tt@redacted.invalid wrote:
DESCRIPTION pmset changes and reads power management settings such as idle sleep timing, wake on administrative access, automatic restart on power loss, etc.
Do you (want to) know how to script killing and restarting the screensaver? Get the PID and freeze it with kill -STOP $PID, continue with kill -CONT $PID.
Know that. Tried that. The problem is the machine still falls asleep after being woken up via modem.
I have to check: you ran the pmset after the wake from modem, right?
You're saying the pmset command doesn't work?
Call Apple!
-- Andrew J. Brehm Marx Brothers Fan
Yea Gummo.