GNOME ignores power settings if ran on VirtualBox or QEMU-KVM and use Power Button
Steps to reproduce:
- Install clean Ubuntu 18.04 LTS as VirtualBox guest
- Login to session
gsettings set org.gnome.settings-daemon.plugins.power power-button-action interactiveto make GNOME ask user on Power button press (as we know there is no such option in
- Press ACPI Power button/key
- Ubuntu asks user about action
- Ubuntu immediately shutdowns
Note 1: Problem exists with both VirtualBox 5.1.36 and 5.2.10 (guest additions and extpack are installed and have corresponding versions). Ubuntu 16.04.4 LTS amd64 is a host.
Note 2: Problem exists if use QEMU-KVM (
sudo kvm -m 1536 -drive file=/dev/sdc,format=raw) too. Sending
<Ctrl+Alt+2> shutdowns system without prompt.
Downstream bug report - bug 1769372 at launchpad.net.