Bug 139284
| Summary: | shutdown -h doesn't power off the computer | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Patrick Pichon <patrick.pichon> |
| Component: | kernel | Assignee: | Dave Jones <davej> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3 | CC: | pfrields |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i686 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2004-11-19 18:53:31 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
it might be because acpi is turned off. Try turning it on and also make sure you have the latest flash of your bios. Hello, I have used the following grub.conf today and such without any positive results: kernel /boot/vmlinuz-2.6.9-1.667smp ro root=LABEL=/ quiet acpi=on kernel /boot/vmlinuz-2.6.9-1.667smp ro root=LABEL=/ quiet acpi=force kernel /boot/vmlinuz-2.6.9-1.667smp ro root=LABEL=/ quiet acpi=power-off Also I would like to confirm that when using Fedora Core1 with SMP kernel, the powering off was correctly functioning. Here are some additional information I found from dmesg (/var/log/messages) : Kernel command line: ro root=LABEL=/ quiet acpi=on ACPI: Subsystem revision 20040816 ACPI: Interpreter disabled. ... Nov 15 21:36:21 obelix kernel: apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac) Nov 15 21:36:21 obelix kernel: apm: disabled - APM is not SMP safe. Sorry for comming back with an other comments, but I did further
investigation and :
1) whatever I configure the boot in mono processor with acpi=on or
with apm=on, shutdown works perfectly.
title Fedora Core (2.6.9-1.667)
root (hd0,0)
kernel /boot/vmlinuz-2.6.9-1.667 ro root=LABEL=/ quiet
apm=force apm=on
initrd /boot/initrd-2.6.9-1.667.img
2) When looking to the message in dmesg, I don't understand if my
system is APM or ACPI based. However when shuting down from Single
Processor Kernel it works fine.
3) I have seen some patches flying around where they mentioned that
APM is not SMP safe, however if you pass explicitly the parameter
power-off or smp-power-off the kernel will try. I did the test to pass
apm=power-off and in such I got a panic at boot time. I did the test
with apm=smp-power-off no Panic but no power off.
*** This bug has been marked as a duplicate of 132761 *** Are you sure that is a dupliacte of 132761, since the machine poweroff correctly when not using the SMP kernel, but if using SMP kernel doesn't poweroff. Are you sure that is a dupliacte of 132761, since the machine poweroff correctly when not using the SMP kernel, but if using SMP kernel doesn't poweroff. I felt it was more an APM problem than an ACPI's one Here after are some comments extracted from the dmesg after booting: Nov 19 19:32:46 obelix kernel: apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac) Nov 19 19:32:46 obelix kernel: apm: entry f000:60f2 cseg16 f000 dseg 40 cseg len ffff, dseg len ffff cseg16 len ffff Nov 19 19:32:46 obelix kernel: apm: disabled - APM is not SMP safe. I have tried to put apm=realmode_power_off but doesn't work. When looking into the sourcecode " ./arch/i386/kernel/apm.c" release 1.12 mentioned that apm=power-off should be mentioned to power off a SMP box. However when doing that I'm getting a Panic a starting phase: mkrootdev: label / not found mount: error 2 mounting ext3 mount: error 2 mounting now switchroot: mount failed 22 umount /etc/initrd/dev failed 2 Kernel panic When reading the source code, I have got the solution. Here is the
source code :
if ((num_online_cpus() > 1) && !power_off && !smp) {
printk(KERN_NOTICE "apm: disabled - APM is not SMP
safe.\n");
apm_info.disabled = 1;
return -ENODEV;
}
So we need to position smp AND power_off
So correct configuration is apm=smp,power_off
|
From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.6) Gecko/20040113 Description of problem: I have a look to the existing bug and found several request around the power off, but none of them where matching mine. I have just move from Fedora Core 1 to Fedora Core 3, and since that when I'm doing a shutdown -h now, the system stop at the Power Down message without powering off the computer. I'm running a HP Kayac XU ( which is a quiet old machine with 2 PII CPU). Searching on the web I have also found several issues around the pwoeroff and tried the following : - add in grub.conf apm=on acpi=off --> No improvement - add in grub.conf apm=power-off --> Panic - add in grub.conf apm=power_off --> Panic I have indeed an SMP Kernel. Version-Release number of selected component (if applicable): kernel-2.6.9-1.667smp How reproducible: Always Steps to Reproduce: 1. /sbin/shutdown -h now 2. 3. Actual Results: The system stop and display Power Down, but doesn't power off the computer. Expected Results: The computer/machine must be power off Additional info: /etc/grub.conf default=0 timeout=5 splashimage=(hd0,0)/boot/grub/splash.xpm.gz hiddenmenu title Fedora Core (2.6.9-1.667smp) root (hd0,0) kernel /boot/vmlinuz-2.6.9-1.667smp ro root=LABEL=/ quiet apm=force acpi=off initrd /boot/initrd-2.6.9-1.667smp.img