Comment 3 for bug 1769372

Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: Ubuntu 18.04 LTS does not ask for action when I press ACPI Power button/key - immediately shutdowns

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...