Re: APM power off fails

fritz.crusius (h0444vlt@rz.hu-berlin.de)
Tue, 27 May 1997 23:22:09 +0200 (CEST)


Hello Chris,

> [Linus trimmed from the headers... this isn't really a kernel issue, and
> he probably gets enough crap as is...]
but APM is ...

> Whats the philosophy behind making a difference between
> LINUX_REBOOT_CMD_POWER_OFF and LINUX_REBOOT_CMD_HALT with APM ?
>
> Because, rebooting and powering a machine down are two entirely different.
> things. Even Windblows95 knows the difference.

True. I'm not writing about this. In file kernel/sys.c, the option
LINUX_REBOOT_CMD_RESTART stands for reboot, _both_ LINUX_REBOOT_CMD_POWER_OFF
and LINUX_REBOOT_CMD_HALT for system halt. Kernel 2.0.30 turns power off
after the command 'shutdown -h now', kernel 2.1.40 doesn't. Looks like a
bug to me, hence my question.

Why would one not want to turn off power after system halt automatically ?
The halted system leaves 2 options: reboot and turning off power. The
first you would rather achieve with 'shutdown -r now', the latter
automatically with APM.

:) Fritz