Bug 4347

Summary: Shutdown icon gives no feedback with systemd
Product: [Runtime] General Runtime Reporter: Paul Eggleton <bluelightning>
Component: General RuntimeAssignee: Chen Qi <Qi.Chen>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: radu.moisan, ross.burton, sstncr, yi.zhao
Version: unspecified   
Target Milestone: 1.6 M2   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on:    
Bug Blocks: 5441    

Description Paul Eggleton 2013-04-18 15:53:08 UTC
If you use the Sato shutdown icon (which calls "halt") when using systemd, the system does shut down but often there is no feedback to the user - the vt does not change and when shutdown occurs the system apparently freezes. You can verify the system is actually shutting down by using the serial console.

This could be related to bug 4339 - previously we may have been relying on psplash showing on shutdown.
Comment 1 Saul Wold 2013-04-22 16:45:04 UTC
Please review this and re-assign to Radu as appropriate
Comment 2 Ross Burton 2013-05-02 13:48:53 UTC
I'm surprised we don't see X shutdown, so a serial console log would be needed to see what's happening.
Comment 3 Chen Qi 2013-12-17 07:51:04 UTC
I just started looking into this. And the shutdown icon works well now.
But I can't find out which commit fixes this problem ...

The following commit is most likely to be the fix.

commit 7bb6021c4c70b6abdb9d9a3e72d9447c872751a2
Author: Jonathan Liu <net147@gmail.com>
Date:   Thu May 23 19:15:11 2013 +1000

    systemd: update to 204
    
    Removed patches integrated upstream.
    Added backport of fix for utmp not running at shutdown.
    Updated serial-getty service.
    Added missing util-linux dependency.
    
    (From OE-Core rev: 9e39d10ec92db23c9765b83559c32c0302bc8c5d)
    
    Signed-off-by: Jonathan Liu <net147@gmail.com>
    Signed-off-by: Saul Wold <sgw@linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>


Mark this bug as resolved/fixed.

//Chen Qi
Comment 4 Yi Zhao 2014-01-14 06:54:19 UTC
Test on qemux86 with master/1b636173ca88e5ccca1992f9a12367a1189fa674

When click shutdown icon, the system goes into shutdown process and no error. But qemu window and qemu process doesn't disappear after that.

########################
Sending SIGTERM to remaining processes...
systemd-journald[55]: Received SIGTERM
Sending SIGKILL to remaining processes...
Unmounting file systems.
Unmounting /tmp.
Unmounting /dev/mqueue.
Unmounting /sys/kernel/debug.
All filesystems unmounted.
Deactivating swaps.
All swaps deactivated.
Detaching loop devices.
All loop devices detached.
Detaching DM devices.
All DM devices detached.
Storage is finalized.
Shutdown: hda
System halted.
#########################

I also tried to run command "halt" in Terminal, the issue still exists. but commands "poweroff" and "shutdown -h now" can work correctly.

Reopen it.
Comment 5 Chen Qi 2014-01-17 01:53:15 UTC
Module: openembedded-core.git
Branch: master
Commit: c87d44a079c13a98734f9f726ec1b55d86793f8c
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=c87d44a079c13a98734f9f726ec1b55d86793f8c

//Chen Qi
Comment 6 Stefan Stanacar 2014-03-10 11:51:46 UTC
Verified in 003d3170edaa9472ee46111caa901ac7ddf9321c