Port-macppc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Reboot after power failure

i guys
From YDL's maillist I found the following snippet....

Pulled from a discussion about how to do the same on a PowerMac G4. I
don't own an XServe, so your mileage may vary, but it should work.

Got it :-) it can be done by simply by:

# echo 'server_mode=1' > /proc/pmu/options


Posey, Jake E wrote:

so... apparently .. it should be possible... but how to do this in a BSD world.... eh....

Den 02/12/2008 kl. 21.02 skrev Matthieu Lalonde:


I remember something about writing to /dev/adc to turn the bit on/ off. The machine doesn't run anymore so I can't really be anymore specific...


On 2-Dec-08, at 2:18 PM, Michael wrote:


On Dec 2, 2008, at 2:05 PM, Daniel Eggert wrote:

On Dec 2, 2008, at 11:02 AM, Michael wrote:


On Dec 2, 2008, at 1:49 PM, Daniel Eggert wrote:

Is it possible to set a macppc machine to automatically reboot after power failure?

OpenBSD seems to have this working in OpenBSD 4.1:

"The OpenBSD/macppc platform now automatically turns the machine back on following an unexpected loss of power."

Is it some sort of OpenFirmware thing?

There's a bit for it in nvram, Apple likes to call it 'file server mode'. Not sure you can set it from OF.

have fun

How would I go about setting that bit?

A few lines in the pmu or cuda driver ( depending what mac you're talking about ) should do it.. I /think/ we had code for it at some point, probably set it on a few models that were intended to be servers. Anyway, this bit is managed by the onboard microcontroller ( cuda or pmu, depending what model you have ) and thus can be set or reset by sending commands to it. Shouldn't be too difficult to do. Also, I'm not sure all models support it.

have fun

kind regards


"Ach, crivens, what a wee snotter....."

Quote from "The Wee Free Men" by Terry Pratchett

Home | Main Index | Thread Index | Old Index