On remote servers it is nice to get then power up by themselfs if there is a power outage and the UPS can't hold it anymore. I don't know how many arch can set it but for PPC here is how to... Boot up when power is returned echo server_mode=1 /proc/pmu/options Don't power up when power is returned echo server_mode=0 /proc/pmu/options On older Power mac with a CUDA you can send this binary paket to /dev/adb Bootup after power return: 0x011301 Don't bootup after power return: 0x011300 Now I know how to do it, I guess we should find a nice way to integrate this so that we need to add this only once for everyone... I tought of adding it to rc.conf in the init.d script could be added in a start and stop
Created attachment 41269 [details] init.d script
just add this to rc.conf # Say what to do in the event of a power failure when the power resumes POWERUP="yes"
you're going to have to do some research to see what other archs can handle this ... if it's just PPC, then i wouldnt be inclined to add it to baselayout ... i'd say integrate it with the pmud or pbbutons ebuilds
SpanKY, this is a fairly standard feature on "enterprise" class hardware. I've seen it across the board on all hardware architectures. Obviously on low end {intel, amd64, ppc, <others>} boxes not always there. Seems like a nice feature least for those that can take advantage of it.
the init.d script you posted is completely ppc-specific ... no reason you couldnt make a small package and have it in the default ppc system profile as for 'low end', *many* modern x86 motherboards have the ability to control behavior when power is lost ... the question is whether utils exist to manipulate those settings outside of the bios setup
Added a power up on power failure question to the FAQ.