Macintosh Sleep and Wake report….
I was hoping to find a simple way to report within Max if my MacMini is asleep or awake.
Here’s my situation: I am running an installation that uses a camera input (jit.qt.grab) to drive the patch. It works great until the computer goes to sleep – when the computer wakes up again I am not getting any signal from the camera. If there was a way to report in Max that it had awoke, then I could reset the camera.
I’ve considered trying to use the shell or aka.power objects to control the sleep mode and coordinate that with the jit.qt.grab reset, but was hoping for a simpler solution. Gestalt perhaps?
Thanks for any/all help.
It might be easier to set the sleep time to "never" from the energy saver menu in system preferences. Is there a reason you don’t want to do this?
Thanks, I have it set up to "never" sleep now, but it’s an installation that will be running 24/7 for a month, so I was hoping to set it to sleep when the gallery is closed for the weekends.
The "schedule" button in the same menu?
Have a look at my wakemess object in the St.ools…
or paste this:
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 992.3ocyYssaiaCD8Y6uBB8Z8Rvg2DY+P5KEKJTr3lUEVRFRLsocw9u2gRxN JMqVKoHSjW7kgJzm4vYNyLLea+tjGpe10lP9UxuS1s6a62sqyTvvtguuKoL6 4imxZ6drjJ2eW+velbneIu6Yem4eg.LF6h4uTW4aK9WWXI.nrAyUOUVTcx46 1I9fwyY9iesn5w+nwcz2iD.rTohyshCDN92CVgRxOPjVbqHbFkQ97KaY8S9K 6ILXsHuCTHP+DLFSUYkcXJ42bM4YUYWVqeK7+yYWO.RJpPn74vhee+9vKGlI 8z4eI+H+kMs+JXBzeUFIbfHt5iK0S4S5MIW2ji0kktp9irjU3dSb52f+jNBR Ztl+J6zRhBfoYENXnBcpLDE.FE0pSSk3mMo2fa3ukaDqJJH4PG2sc7j2WW1t D5Q8SRRDZJyXDh.8HTTEnAtESRT2fdDukdjqhd9xo5LefiBYKaNUQ.hu.Qx1 DL0yJZNkI3bU5AhcEQQpUqkfrSmyrkLTdleqXGfKPQ1TiQhwR.mJMBSJrtXI 8pHoSEscrzk2Ws.7DjU64SEdBinWXUJwzjlxRMVlTi7DWHoXXkAEmXKOrJ88 DVs0DU21tMUwYXfjPpEPP+FS2zREfAXBwxqsYhaU79cJYwYQLTEVgZvbi8p6 dyR4r25t1j6a85yMtytpbRqyuUJHZfZsZodbxPpbE8qwVWo5UcNW5Zaydz8F 94grpG2prfWBJvpOoRvJ65pkGnFrCmkPMPDolohbBdnqIq4w1sOxAPFJzpuA +bpd4Bo.+iQadXeQ4KMD5l8tzOXfZMi.stte67fsjV9zFkRMtv6noCUqXlIP F2BKQXtfQrCnLTUnWN85ZkCTe7lKnz4apwy5M6xF5IFCNqYfplixyOJNR+wH Ey2MyD4gMU4Y7DAqRVdcM31O82cfj1vAmFHn2432f49LyTGBvkq9+WwWmmDr +Zxqs9oliW18g1tIu3G4tVeQUluntZzyDjPwY0u7PesHO2UMtu1xh7y0H1Fv vDmjyERou5WaBHAuB22aHomAjjQEQpYfHczQzMijhKjjy.RlnhHwbIoEjtw4 oTyvsnxYoTa3BvPcpw247T1MpqSwBn3nZjkX3oKi6mxQAtgZUbA6UN56D+74 f+E5.BrLq8xIhpueDtITcAKlzOA4UquS3GJ3baUTUTC9g4nrahOjt4wbjwjd NXJMtXRMSozEnaosTANFS3p5ACp8XPcmv+oCthZudohWrGC7CwsDNLmxSQ9X dNp1QVzfOCQCQ7gzMClXwESvLvjMtPhcGJgBo.UNbKz24JnyL6juRBE+x22+ ejXEplH -----------end_max5_patcher-----------
|Thanks, I have it set up to "never" sleep now, but it’s an installation that will be running 24/7 for a month, so I was hoping to set it to sleep when the gallery is closed for the weekends.|
I don’t think you need to give the computer a break. The OS has been designed to be running all the time. However, because of possible memory leaks I think it would be ok to restart the application every now and then. What I have good experiences with is to ask the staff to take the power cord out in the evening, plug it in the morning and enable "restart after power failure" and put your app in the startup items.
Forums > MaxMSP