Re: Rebooting and APM halt

Derrik Pates (dpates@wind.mes.umn.edu)
Tue, 8 Apr 1997 08:52:04 -0500 (CDT)


On Mon, 7 Apr 1997, Tsurng-Chen Chern wrote:

>
> Oh, Well,
>
> Before a real fix is available, here is a quick fix -
>
> ...../linux/arch/i386/kernel/process.c
>
> line 377 of 627
>
> void machine_halt(void)
> {
> +#if defined(CONFIG_APM) && defined(CONFIG_APM_POWER_OFF)
> + apm_set_power_state(APM_STATE_OFF);
> +#endif
> }
>
> void machine_power_off(void)
> {
> #if defined(CONFIG_APM) && defined(CONFIG_APM_POWER_OFF)
> apm_set_power_state(APM_STATE_OFF);
> #endif
> }
>
> Sorry about not providing a real patch, I haven't figure out
> how to do that yet.
>

Use the 'diff -u' command. It'll create a unified diff that you can use
with the 'patch' command.

Derrik Pates
dpates@wind.mes.umn.edu (temporary address)