Remote sleep and reboot

Woody's icon

Hi everyone!

I'm running 10 MacMinis in an exhibition.
For more control I want a central computer, running a MAX patch. It should be able to remotely restart them and put them to sleep, individually. Can MAX do such a thing?

greets
Woody

zipb's icon
joshua goldberg's icon

max can send shell commands via the shell object.

On Feb 1, 2008, at 8:37 AM, Wouter Verbiest wrote:

>
> Hi everyone!
>
> I'm running 10 MacMinis in an exhibition.
> For more control I want to build a central computer, running a MAX
> patch. It should be able to remotely restart them and put them to
> sleep, individually. Can MAX do such a thing?
>
> greets
> Woody

Woody's icon

Interesting.
I just hooked my Macbook to my PC using a basic switch.
Then I installed the aka.power external (http://www.iamas.ac.jp/~aka/max/#aka_power) on my MacBook.

Via udpsend and udpreceive I sent the Macbook a "sleep" message on its correct host and port, which got routed to the aka.power object. And so it went to sleep...
Very nice, and very simple. But now, how do I wake it up using MAX?

I am not a big programmer, so, any simple suggestions?

pdelges's icon
Jennek Geels's icon

On 1-feb-2008, at 16:53, Wouter Verbiest wrote:

>
> Interesting.
> I just hooked my Macbook to my PC using a basic switch.
> Then I installed the aka.power external (http://www.iamas.ac.jp/
> ~aka/max/#aka_power) on my MacBook.
>
> Via udpsend and udpreceive I sent the Macbook a "sleep" message on
> its correct host and port, which got routed to the aka.power
> object. And so it went to sleep...
> Very nice, and very simple. But now, how do I wake it up using MAX?

you might try to wake the mac using "wake on LAN"
http://en.wikipedia.org/wiki/Wake-on-LAN

also be sure to check your system preferences > energy saver >
options > wake options
and check "wake for ethernet network administrator access" on the mac
minis you want to wake up

HtH
-jennek

Woody's icon

Does anyone know how to send a Wake-on-lan message/package using MAX?

Masayuki Akamatsu's icon

Hi,

On 2008/02/02, at 19:57, jennek geels wrote:

> you might try to wake the mac using "wake on LAN"
> http://en.wikipedia.org/wiki/Wake-on-LAN

It's useful information.

I success it with aka.datagram & udpsend.
Check the attached patch.

Of course, you have to change 'MAC address' and 'Broadcast address' as
your network environment.

Thanks,
Masayuki

Woody's icon

Thanks Masayuki!

But..what attached patch do you mean...?

Masayuki Akamatsu's icon

On 2008/02/04, at 4:54, Wouter Verbiest wrote:

> But..what attached patch do you mean...?

You can wake another sleeping Mac (maybe PC too) up with that patch.
(I made spelling mistakes. sorry)

Connect two computers to LAN ( with Ehternet cables ).
Change the message to a sleeping computer's MAC address ( of Ethernet
chip ).
MAC address is normally expressed in a hexadecimal with colon ( ex.
00:0a:95:c4:a9:56 ) but you have to express it in a decimal and comma
( ex. 0, 10, 149, 196, 169, 86 ) in this patch.
And click the button.

The broadcast address 255.255.255.255 will work but it's better to
change it according to your subnet address. Don't change the port
number 6.

Cheers,
Masayuki

Jennek Geels's icon

On 3-feb-2008, at 20:54, Wouter Verbiest wrote:
> Thanks Masayuki!
> But..what attached patch do you mean...?

Patches attached to the mailing list do not make it to the forum,
if I remember correctly.

here is the text version of the patch that Masayuki posted.

to quickly input the mac address in hexadecimal, use numbox with its
display style set to hex.

-jennek

Max Patch
Copy patch and select New From Clipboard in Max.