All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: auto poweroff - keyboard dependency?
@ 2004-03-08  0:58 Eric Brower
  2004-03-08  1:44 ` C.Newport
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Brower @ 2004-03-08  0:58 UTC (permalink / raw)
  To: sparclinux

Janos Sziliczi wrote:

> Hi All,
> 
> I've compiled a 2.4.25 kernel.
> When I'd typed the 'halt' command as root, the Linux shutdowned and the
> machine turned off automatically (no 'power-off' needed on PROM prompt).

This tends to hit the list once every few weeks.

In both sparc and sparc64 the kernel will not power-off systems that are 
running with a serial console-- instead they are dropped to OBP (2.2.x 
did not act this way).  I believe Pete was going to remove this "safety 
measure" in sparc a while back but I don't believe it has been done.

If you are running a sparc kernel, remove the check for !serial_console

   if (auxio_power_register && !serial_console)

in arch/sparc/kernel/process.c.  In sparc64, remove the check

   if (!serial_console)

in arch/sparc64/kernel/power.c.

I have a sysctl patch for sparc that allows selection of power-off at 
halt for serial console systems.  Pete did not like this too much, but I 
believe it is a fair trade-off IFF anyone believes the safety measure 
should be preserved.  The sparc64 arch could benefit from the same.

If you aren't up to recompiling a kernel, depending upon version you 
might be able to type 'power-off' at OBP.  Some versions allow this, 
some require a keyboard with power button to be present.  Of coure, you 
could always reach over and flip the switch, too, if it is not miles away.

E



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: auto poweroff - keyboard dependency?
  2004-03-08  0:58 auto poweroff - keyboard dependency? Eric Brower
@ 2004-03-08  1:44 ` C.Newport
  0 siblings, 0 replies; 2+ messages in thread
From: C.Newport @ 2004-03-08  1:44 UTC (permalink / raw)
  To: sparclinux

On Monday 08 March 2004 12:58 am, Eric Brower wrote:
> Janos Sziliczi wrote:
> > Hi All,
> >
> > I've compiled a 2.4.25 kernel.
> > When I'd typed the 'halt' command as root, the Linux shutdowned and the
> > machine turned off automatically (no 'power-off' needed on PROM prompt).
>
> This tends to hit the list once every few weeks.
>
> In both sparc and sparc64 the kernel will not power-off systems that are
> running with a serial console-- instead they are dropped to OBP (2.2.x
> did not act this way).  I believe Pete was going to remove this "safety
> measure" in sparc a while back but I don't believe it has been done.
>
> If you are running a sparc kernel, remove the check for !serial_console

But be warned that if you tell an E150 to power-off you will have great
weeping and wailing and gnashing of teeth getting it to restart.
Rather drop to OBP and pull the power.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-03-08  1:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-08  0:58 auto poweroff - keyboard dependency? Eric Brower
2004-03-08  1:44 ` C.Newport

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.