Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 66619

Summary: Powerup after powerfailure status
Product: Gentoo Linux Reporter: Philippe Trottier (RETIRED) <tchiwam>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Severity: enhancement CC: ppc64, ppc
Priority: High    
Version: 2004.2   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: init.d script

Description Philippe Trottier (RETIRED) gentoo-dev 2004-10-07 02:31:33 UTC
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:

Don't bootup after power return:

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
Comment 1 Philippe Trottier (RETIRED) gentoo-dev 2004-10-07 02:32:38 UTC
Created attachment 41269 [details]
init.d script
Comment 2 Philippe Trottier (RETIRED) gentoo-dev 2004-10-07 02:33:37 UTC
just add this to rc.conf

# Say what to do in the event of a power failure when the power resumes
Comment 3 SpanKY gentoo-dev 2004-10-07 06:12:23 UTC
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
Comment 4 Tom Gall (RETIRED) gentoo-dev 2004-11-10 19:47:12 UTC
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.
Comment 5 SpanKY gentoo-dev 2004-11-10 19:59:59 UTC
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
Comment 6 Joe Jezak (RETIRED) gentoo-dev 2006-01-04 14:52:55 UTC
Added a power up on power failure question to the FAQ.