Sorry to answer myself, but I've found a solution already, thanks to
the really perfect OpenBSD documentation (and I'm still quite a
beginner). Here's the solution for all who read this list and who want
to switch on what the Apple documentation calls "server mode", which
is getting a Mac Mini (Intel Core Duo) to power on automatically after
a power cut. Can be very useful if the Mac mini is far away in a data
center!

The setpci command from the pciutils package didn't work for me, but
I've found out that the pcitweak command does exactly what I need. You
can switch the "server mode" on with:

# pcitweak -w 00:1f:0 -b 0xa4 0x00

and you can check if it's on with:

# pcitweak -r 0:1f:0 -b 0xa4
0x00 (would be 0x01 if it's still off)

From an info page: "However, note that in either case the setting is
not preserved across boots. Mac OS X handles this by saving the
power-management settings on disk and automatically restoring them at
boot; OpenBSD (or Linux) doesn't do that for you, so you will need to
arrange to run the appropriate command on boot. Obviously it is
important to do this as early in the boot process as possible, so that
if the machine hangs or crashes while booting, you can still reboot
it."

I hope this helps somebody as the Mac mini with its Intel Core Duo
makes an excellent server, faster than you'd expect, especially with
OpenBSD! :-)

Tas.

Reply via email to