After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 755165 - Shutdown when power key is pressed in VM
Shutdown when power key is pressed in VM
Status: RESOLVED FIXED
Product: gnome-settings-daemon
Classification: Core
Component: media-keys
3.17.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2015-09-17 14:36 UTC by Bastien Nocera
Modified: 2015-11-10 13:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
media-keys: Shutdown when power key is pressed in VM (2.24 KB, patch)
2015-11-04 15:02 UTC, Bastien Nocera
none Details | Review

Description Bastien Nocera 2015-09-17 14:36:39 UTC
Bug 753713 hard-coded what power/standby/etc. buttons do, but in virtual machines, you usually want the VM to initiate a clean shutdown when the "power off" menu item is pressed, rather than suspending the machine.

As we can detect whether or not we're in a VM already, do that to initiate a clean shutdown.
Comment 1 Bastien Nocera 2015-11-04 15:02:43 UTC
Created attachment 314830 [details] [review]
media-keys: Shutdown when power key is pressed in VM
Comment 2 Bastien Nocera 2015-11-10 12:59:47 UTC
Attachment 314830 [details] pushed as 3295949 - media-keys: Shutdown when power key is pressed in VM