lkml.org 
[lkml]   [1998]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Power Off on Halt (fwd)
> On Tue, 17 Mar 1998, Andrea Arcangeli wrote:
> > On Tue, 17 Mar 1998, Ricardo Manuel Pacheco Salgado wrote:
>
> > > I've just upgraded to 2.1.89 from 2.0.34, and I'm pretty amazed with the
> > > new features of this kernel... But, there is a but.
> > > With the previous kernel version my system would POWER OFF on HALT, but it
> > > no longer does that. I compiled the support for it, but it doesn't seem to
> > > work... Any Ideas???
>
> > Are you sure that you are running poweroff and not halt?
>
> I have the same problem. The machine (an ATX PPro, VS440FX)
> does not power off, although it did it before. It just prints
> "System halted." I have tried /sbin/halt -p and
> /sbin/poweroff.

Read what Andrea wrote. Quote from kernel:

case LINUX_REBOOT_CMD_HALT:
notifier_call_chain(&reboot_notifier_list, SYS_HALT,
NULL);
printk(KERN_EMERG "System halted.\n");
machine_halt();
do_exit(0);
break;

case LINUX_REBOOT_CMD_POWER_OFF:
notifier_call_chain(&reboot_notifier_list,
SYS_POWER_OFF, NULL);
printk(KERN_EMERG "Power down.\n");
machine_power_off();
do_exit(0);
break;


So if you see 'system halted' message, you did not ask system to
powerdown. Fix your userland.

(Or, replace machine_halt() with machine_power_off() :-)

Pavel


--
I'm really pavel@atrey.karlin.mff.cuni.cz. Pavel
Look at http://atrey.karlin.mff.cuni.cz/~pavel/ ;-).

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.123 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site