Re: APM power off fails (fwd)

Jan Kasprzak (kas@informatics.muni.cz)
Thu, 29 May 1997 01:46:59 +0200


:
: In 2.1.40, the APM power down on system halt does not work as one would
: expect, it has to be done manually. With both CONFIG_APM and
: CONFIG_APM_POWER_OFF enabled, 2.0.30 switches power off on system halt
: automatically.
: Whats the philosophy behind making a difference between
: LINUX_REBOOT_CMD_POWER_OFF and LINUX_REBOOT_CMD_HALT with APM ?
:
: The following patch works fine:
[working patch deleted]

I have the same problem. But I think it is an user-space problem.
Probably there should be no CONFIG_APM_POWER_OFF and we should have
a power-off option to /sbin/halt. I have solved this problem by
binary-editing /sbin/halt (i have replaced a LINUX_REBOOT_CMD_HALT value
by LINUX_REBOOT_CMD_POWER_OFF).

Maybe the power-off should be the default on i386 architecture,
because on i386 there is no PROM monitor, which the LIUNX_REBOOT_CMD_HALT
could switch system to.

-Yenya

PS.: Does anyone know a good vi-style hexadecimal editor?

--
\ Jan "Yenya" Kasprzak <kas at fi.muni.cz>       http://www.fi.muni.cz/~kas/
\\ PGP: finger kas at aisa.fi.muni.cz   0D99A7FB206605D7 8B35FCDE05B18A5E //
\\\      Czech Linux Homepage:  http://www.fi.muni.cz/~kas/linux/        ///
///  die_if_kernel("Penguin instruction from Penguin mode??!?!", regs);  \\\
//                            -- from linux/arch/sparc64/kernel/traps.c   \\