Redhat 9 on P4PE-X not powering down

  • Thread starter Thread starter Max Spring
  • Start date Start date
M

Max Spring

With a Redhat 9 Linux (kernel 2.4.20-8smp) on a Asus P4PE-X, the system is not
powering down. I see

...
Unmounting file systems: [ OK ]
Halting system...
flushing ide devices: hda hdc
Power down.

but then the system is still on. Only the harddisk is powering down.

What could it be?
-Max
 
Is the kernel detecting APM support? (I think some motherboards may not even
do APM anymore, only ACPI). If the kernel is not using APM or ACPI power
management, then it can't power off the machine.
 
The APMD seems to work fine, according to "grep apmd" excerpt of
/var/log/messages:

: messages:Oct 12 10:29:34 apollo kernel: apm: BIOS version 1.2 Flags 0x03 \
: (Driver version 1.16)
: messages:Oct 12 10:29:35 apollo apmd[3239]: Version 3.0.2 (APM BIOS 1.2, \
: Linux driver 1.16)
: messages:Oct 12 10:29:35 apollo apmd: apmd startup succeeded
: messages:Oct 12 10:29:37 apollo apmd[3239]: Charge: * * * (-1% unknown)
: messages:Oct 12 10:31:11 apollo apmd[3239]: Exiting
: messages:Oct 12 10:31:11 apollo apmd: apmd shutdown succeeded

But your "apm" key word made me search in the kernel sources for
"Power down". There I found this branch in arch/i386/kernel/apm.c:

: static void apm_power_off(void)
: {
: ...
: /*
: * This may be called on an SMP machine.
: */
: if (apm_info.realmode_power_off)
: {
: (void)apm_save_cpus();
: machine_real_restart(po_bios_call, sizeof(po_bios_call));
: /* Never returns */
: }
: else
: (void) set_system_power_state(APM_STATE_OFF);
: }

That reminded me that I'm booting a 2.4.20-8smp kernel (the first one
Redhat 9 shows me in the Grub menu).

Now, booting the other entry 2.4.20-8, is dowing the power down as it
should :-) And the non-smp should be fine for me, since I have only
one CPU.

Thanks!
-Max
 
Back
Top