The default action is suspend: <key name="power-button-action" enum="org.gnome.settings-daemon.GsdPowerButtonActionType"> <default>'suspend'</default> <summary>Power button action</summary> <description>The action to take when the system power button is pressed. This action is hard-coded (and the setting ignored) on virtual machines (power off) and tablets (suspend).</description> </key>
but you can change that in: Settings > Power > Suspend & Power Button > When the Power Button is pressed ... Unfortunately no option exists to prompt the user. So that would be an enhancement request... ** Changed in: gnome-settings-daemon (Ubuntu) Status: New => Confirmed ** Changed in: gnome-settings-daemon (Ubuntu) Importance: Undecided => Wishlist ** Summary changed: - Ubuntu 18.04 LTS does not ask for action when I press ACPI Power button/key - immediately shutdowns + Prompt the user when the power button is pressed ** Changed in: gnome-shell (Ubuntu) Importance: Undecided => Wishlist ** Changed in: gnome-shell (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1769372/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs