Bug 794889

Summary: Shutdown does not power off machine
Product: [openSUSE] openSUSE 12.2 Reporter: Forgotten User Ld-QSk4UDc <forgotten_Ld-QSk4UDc>
Component: BootloaderAssignee: Steffen Winterfeldt <snwint>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P2 - High CC: forgotten_5jFyFBvk-I, rodney.baker
Version: Final   
Target Milestone: ---   
Hardware: All   
OS: openSUSE 12.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User Ld-QSk4UDc 2012-12-17 20:49:21 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.34 (KHTML, like Gecko) konqueror/4.9.4 Safari/534.34

Not matter how i select to shutdown my machine, it will never power down as well like it did in 11.4 (and all other previous versions of opensuse).
If i press ESC to the shutddown splash screen it show the machine shutting down all the services with success and posts a final message "[nnn.nnn]System Halted" (nnn.nnn varies in values)
I've tried shutdown from KDE menu, KDM login menu, Alt+Ctrl+F4 console ("halt -p", "init 0"), they all end up with [...]System Halted 

Reproducible: Always

Steps to Reproduce:
1. See details section where i have already listed steps taken
2.
3.
Actual Results:  
System Halted and machine still running

Expected Results:  
System Halted and machine automatically powered off
Comment 1 Forgotten User 5jFyFBvk-I 2012-12-18 20:18:54 UTC
I get allmost the same, except it normally stops with the text "Power Down", and then nothing happens.
It does not happen each time but very often, so in fact I cannot trust it at all.
Also closing the lidt which should make it hibernate just makes the screen flicker and the machine inaccessible. Reboot needed. Happens each time.

I'm using a HP Envy 2029eo 17 3D
Comment 2 Forgotten User Ld-QSk4UDc 2012-12-29 16:22:36 UTC
I'm using a tower with a Gigbyte board

I've tried combinations of "halt" and "shutdown" to force a power off but it never powers off.
If i do "man halt" or "man shutdown", "man" says that both comands are "These are legacy commands available for compatibility only."

What is the new way of shutting a machine down under 12.2 and powering it off as part of the shut down?
Comment 3 Forgotten User Ld-QSk4UDc 2013-01-20 16:28:04 UTC
I installed Fedora on an old laptop to check another issue and noticed it used "poweroff".  So i tried it as well but it did the same thing, shut everything down okay but did not power off my computer.
Comment 4 Rodney Baker 2013-02-26 09:31:12 UTC
I also had the same issue with a clean intall of oS 12.2 running systemd and kernel 3.4.11. An upgrade to kernel 3.4.28 had no effect. 

Checking /etc/default/grub revealed that GRUB_CMDLINE_LINUX_DEFAULT had "acpi=off apm=off" included in the list of kernel parameters. 

Removing both of these parameters from that line and running grub2-mkconfig -o /boot/grub2/grub.cfg, followed by a reboot, solved the issue and restored normal shutdown behaviour.

Why are acpi=off and apm=off included as default boot parameters on a clean install?
Comment 5 Rodney Baker 2013-02-26 09:32:17 UTC
Further info, my system is 32 bit so this is not limited to x86_64 builds.
Comment 6 Jiri Srain 2013-02-28 12:19:45 UTC
Can you attach installation logs? Are you sure that you did not use the Safe Installation option in the bootloader menu when you booted the installation media?

The Safe Settings add the options, which you mentioned above, and the installer copies the kernel parameters used during installation (which is desired behavior)
Comment 7 Steffen Winterfeldt 2014-11-11 13:11:03 UTC
Not sure why this ended up as bootloader bug. 'halt -p' should shut down the machine; if not, that's likely some ACPI issue. So, if this still happens with openSUSE 13.2, feel free to reopen and we'll assign this to the kernel people.