Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
automatic restart after power failure?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
dannysauer
n00b
n00b


Joined: 23 Sep 2004
Posts: 60
Location: Lincoln, IL

PostPosted: Tue Sep 28, 2004 1:58 pm    Post subject: automatic restart after power failure? Reply with quote

I know this isn't exatly gentoo-specific, but how can I make my uniprocessor, ATAPI G4 automatically start back up after a power failure? Sometimes the power will be knocked out for several hours at this site, and it's annoying to have a couple of servers not come back up... :) This machine only has gentoo installed - no dual boot, BTW.
Back to top
View user's profile Send private message
hecatomb
Guru
Guru


Joined: 02 Sep 2004
Posts: 525

PostPosted: Tue Sep 28, 2004 2:09 pm    Post subject: Reply with quote

IMHO this is a BIOS-specific thing. It must support this feature and you have to enable it to be done.
Back to top
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Tue Sep 28, 2004 2:18 pm    Post subject: Reply with quote

I asked this once here and got no reponse. The only related resource I was able to find is the negative answer from the Network UPS Tools' FAQ. It reads:
Code:
Q: My PowerMac G4 won't power back up by itself after the UPS shuts
    down.  What can I do about this?

 A: This is about the same situation as the ATX question above, only
    worse.  Earlier Macs apparently supported a hack where you could
    cat some magic characters at /dev/adb to enable "server mode".
    This would instruct the system to reboot while unattended.

    From Usenet post <6boftzxz51.fsf@ecc-office.sp.cs.cmu.edu>:

   # Send packet over the ADB bus to the PowerMac CUDA chip
   # telling it to reboot automatically when power is restored
   # after a power failure.

   cat /etc/local/autoboot.adb > /dev/adb

    autoboot.adb contains these three bytes (in hex):  01 13 01

    Unfortunately, the hardware has evolved and there is no good
    equivalent for this hack on today's systems.

    If you find out how to do this, please send me some mail, since
    this affects one of my systems and my stop-gap solution is getting
    cranky.

    Note: this question has been in the FAQ for over a year and
    there's still no answer.  Let me guess: everyone who runs a server
    on Mac hardware has a team of trained monkeys, and feeds them
    by growing bananas in the tropical environment formed by waste heat
    from the equipment.

I wish I had some of those monkeys...
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
dannysauer
n00b
n00b


Joined: 23 Sep 2004
Posts: 60
Location: Lincoln, IL

PostPosted: Tue Sep 28, 2004 3:01 pm    Post subject: Reply with quote

hecatomb wrote:
IMHO this is a BIOS-specific thing. It must support this feature and you have to enable it to be done.


Thanks. I was wondering if the computer had to support a feature in order to use that feature. *Sigh*

I know the thing *supports* it, because I can start up the System Preferences under OS X (or most any variant of Mac OS), go to the "Energy Saver" panel, select "Options", and put a checkmark next to the words "Restart automatically after a power failure". Therefore there is 1) hardware support for this feature and 2) a way to toggle that support. *Surely* someone has figured out how to do that in a way that doesn't require trained monkeys. Surely.

Maybe I'll just write a daemon on one of the PCs that'll momentarily bring a pin on the serial port high, turning on a relay that has replaced the power switch on the mac. If that runs when the PC starts up, maybe it'll start the mac up, too... :) I'd suggest sending it a wake-on-lan packet periodically, but then I'd have to ask how to enable that support, too.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum