Bug 706765

Summary: sometimes fedora doesn't shutdown correctly
Product: [Fedora] Fedora Reporter: Rolle <rolle.hoffmann>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: cesarb, gansalmon, itamar, jonathan, kernel-maint, k.vantournhout, madhu.chinakonda
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-18 09:54:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
messages.bz2
none
dmesg
none
"messages" of another Computer
none
dmesg of another Computer none

Description Rolle 2011-05-22 20:35:39 UTC
Description of problem:
I will shutdown the computer (not suspend or so). But sometimes it failed.

Version-Release number of selected component (if applicable):
Fedora 15 Beta, Kernel 2.6.38

How reproducible:
Sometimes on various computers (installed with fedora 15)

Steps to Reproduce:
1. Boot Fedora
2a. open a terminal and execute "halt" or "shutdown"
2b. logout and with menu "shutdown" shutdown the computer
3. the computer begins to shutdown (light blue screen appears with the fedora-logo in the middle)
4. wait, if the computer doesn't shutdown (I'm waiting 5 min.)
  
Actual results:
computer doesn't shutdown (light blue screen stays with the fedora-logo in the middle)

Expected results:
computer shutdown and all components turn off

Additional info:

Comment 1 Rolle 2011-05-22 20:37:21 UTC
Created attachment 500303 [details]
messages.bz2

Comment 2 Rolle 2011-05-22 20:38:09 UTC
Created attachment 500304 [details]
dmesg

Comment 3 Rolle 2011-05-23 06:28:59 UTC
Created attachment 500337 [details]
"messages" of another Computer

This is another computer that didn't shutdown always.

Comment 4 Rolle 2011-05-23 06:29:37 UTC
Created attachment 500338 [details]
dmesg of another Computer

This is another computer that didn't shutdown always.

Comment 5 Klaas Vantournhout 2011-05-23 14:40:51 UTC
I noticed a similar thing.

Typing 'halt' in an xterm does not halt the system, but hangs it.

Shutting down using the shutdown menu in KDE halts the system properly.

I find this a bit disturbing as halt is the way i mostly shut down my system. It is much quicker then taking the mouse and moving it to some place to click and click again.

Comment 6 Cesar Eduardo Barros 2011-07-11 00:07:17 UTC
(In reply to comment #5)
> I noticed a similar thing.
> 
> Typing 'halt' in an xterm does not halt the system, but hangs it.
> 
> Shutting down using the shutdown menu in KDE halts the system properly.
> 
> I find this a bit disturbing as halt is the way i mostly shut down my system.
> It is much quicker then taking the mouse and moving it to some place to click
> and click again.

Try "poweroff" instead of "halt" and see if it works.

Your problem is not the one reported in this bug report, because for you the shutdown menu item (which should do a "poweroff") works.

Comment 7 Rolle 2011-07-11 07:41:36 UTC
This bug report is for me resolved and can now be closed, because:

On 2011-05-22 when I reported this bug I didn't know that the behaviour of "halt" is changed to "halt" the system but leave the "power on". Until that time I used "halt" or "shutdown" randomly, cause for me there these commands the same. I didn't recognized that every time when I used "halt" the system doesn't power off, but when I used "shutdown" or I used the shutdown-command from the GUI-menu it powered off the system properly.

But now I know that systemd changed the behaviour:

halt              ->  halts the system but not power off the system

poweroff          ->  shutdown the system and power off
halt -p           ->  shutdown the system and power off
init 0            ->  shutdown the system and power off
shutdown -P now   ->  shutdown the system and power off

see the release notes of Fedora 15 section 3.2.1.:
http://docs.fedoraproject.org/en-US/Fedora/15/html/Release_Notes/sect-Release_Notes-Changes_for_SysAdmin.html

Sorry for the noise.
Thanks.