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
- Run
gsettings set org.gnome.settings-daemon.plugins.power power-button-action interactive
to make GNOME ask user on Power button press (as we know there is no such option ingnome-control-center power
) - Press ACPI Power button/key
Expected behavior:
- Ubuntu asks user about action
Actual behavior:
- 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 system_powerdown
from <Ctrl+Alt+2>
shutdowns system without prompt.
Downstream bug report - bug 1769372 at launchpad.net.
Edited by Norbert X