Bug 843834

Summary: VirtualBox send shutdown signal ignored by F17 guest VM
Product: [Fedora] Fedora Reporter: A. Bleasby <rbugz>
Component: gnome-settings-daemonAssignee: Bastien Nocera <bnocera>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: bnocera, johannbg, jskarvad, kem, lnykryn, metherid, mkasik, mschmidt, msekleta, notting, plautrba, rstrode, systemd-maint, ted, tiagomatos, vpavlin
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-01 16:54:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description A. Bleasby 2012-07-27 13:55:56 UTC
Description of problem:
acpid-2.0.16-4.fc17.x86_64.rpm installation causes the "Send shutdown signal" from VirtualBox (Host Windows7 64bit, Guest Fedora17 x86_64) to be ignored.

Version-Release number of selected component (if applicable):
2.0.16-4.fc17.x86_64

How reproducible:
Always 

Steps to Reproduce:
1. Update acpid to 2.0.16-4.fc17.x86_64 within Fedora 17 VM (VirtualBox host
   Windows 7 64bit)
2. Click on window close 'x' at top right.
3. Select 'Send shutdown signal" from resulting menu
  
Actual results:
Nothing happens

Expected results:
Fedora 17 should power down

Additional info:
Replacing /etc/acpi/actions/power.sh with the one from 2.0.16-2.fc17.x86_64
resolves the problem.

Comment 1 Jaroslav Škarvada 2012-08-08 13:43:31 UTC
Gnome shell?

Previous behavior of acpid was wrong - it shouldn't respond to ACPI power button event if there is desktop power manager running. In Gnome shell the event should be catched and responded by (AFAIK) gnome-settings-daemon. This works OK on real HW. I have no idea why this doesn't work in VirtualBox, maybe gnome-setting-daemon bug? You can easily check by removing acpid:

# yum remove acpid

For example in KDE this worked OK (also in VirtualBox). Thus I think this bug should be reassigned to gnome-settings-daemon.

Comment 2 A. Bleasby 2012-08-10 12:35:03 UTC
The same signal-ignoring behaviour happens at the login screen. Presumably the gnome shell isn't running at that point.

Results with various combinations are:

1. With no acpid (yum remove acpid): shutdown signal ignored from both a logged-in session and from the login screen.

2. With the latest acpid (yum install acpid and making sure the daemon is started): shutdown signal ignored from both a logged-in session and from the login screen.

3. With an older acpid (yum downgrade acpid): shutdown signal honoured from both a logged-in session and from the login screen.

where 'shutdown signal' means clicking the close box on the host window and
selecting the "Send shutdown signal..." option.

Comment 3 Jaroslav Škarvada 2012-08-10 13:06:05 UTC
(In reply to comment #2)
> The same signal-ignoring behaviour happens at the login screen. Presumably
> the gnome shell isn't running at that point.
> 
Probably the same problem, SSHed into the box with gdm login scren active:
# pgrep -u gdm -fl gnome-settings-daemon
947 /usr/libexec/gnome-settings-daemon

I am not sure why it needs it, but the gnome-settings-daemon should handle the ACPI event. This also doesn't seem to work on real HW. Reassigning to gnome-settings-deamon.

Comment 4 Bastien Nocera 2013-02-19 13:54:12 UTC
gnome-settings-daemon doesn't handle ACPI events. logind does on modern Fedora distros.

Comment 5 Michal Schmidt 2013-02-19 15:07:52 UTC
This bug was reported against Fedora 17. logind was not involved in handling power button events in F17. It does that since F18.

Comment 6 Fedora End Of Life 2013-07-04 05:41:55 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 7 Fedora End Of Life 2013-08-01 16:54:34 UTC
Fedora 17 changed to end-of-life (EOL) status on 2013-07-30. Fedora 17 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.