Dear Daniel!

Thank you for replying and for analysis.

1. On clean installation on physical hardware the behavior of Power Button is 
as follows:
* on console ttys system shutdowns
* on the GDM system goes to sleep (suspends)
* in GNOME session it asks what to do if run `gsettings set 
org.gnome.settings-daemon.plugins.power power-button-action interactive` 
manually (no GUI option - it is a bug 1769614 )

So seems to be expected behavior.

2. But if I run Ubuntu as VirtualBox 5.1 guest (this bug report):
* all settings are ignored (both `logind.conf` and `gsettings`).
* I do not have "When the Power Button is pressed" in `gnome-control-center 
power`

How to debug this? Should I report special bug to upstream?

---

You can see images on my AskUbuntu question (
https://askubuntu.com/q/1032461/66509 ).

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/1769372

Title:
  Prompt the user when the power button is pressed on VirtualBox guest

Status in gnome-control-center package in Ubuntu:
  In Progress
Status in gnome-settings-daemon package in Ubuntu:
  Triaged

Bug description:
  Steps to reproduce:
  1. Install Ubuntu 18.04 LTS as VirtualBox guest
  2. Login to session
  3. Press ACPI Power button/key

  Expected behavior:
  * Ubuntu asks user about action

  Actual behavior:
  * Ubuntu immediately shutdowns

  Workaround/fix (1)

  gsettings set org.gnome.settings-daemon.plugins.power power-button-
  action interactive

  Workaround/fix (2)

  Settings >
  Power >
  Suspend & Power Button >
  When the Power Button is pressed = Power Off (actually does prompt the user)

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: ubuntu-desktop 1.417
  ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17
  Uname: Linux 4.15.0-20-generic x86_64
  ApportVersion: 2.20.9-0ubuntu7
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Sat May  5 18:32:06 2018
  InstallationDate: Installed on 2018-04-28 (7 days ago)
  InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
  SourcePackage: ubuntu-meta
  UpgradeStatus: No upgrade log present (probably fresh install)
  ---
  ApportVersion: 2.20.9-0ubuntu7
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  DistroRelease: Ubuntu 18.04
  InstallationDate: Installed on 2018-04-28 (8 days ago)
  InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
  Package: gnome-settings-daemon
  PackageArchitecture: amd64
  ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17
  Tags:  bionic
  Uname: Linux 4.15.0-20-generic x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
  _MarkForUpload: True

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1769372/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to