Power Button Defaults to ACPI Suspend Mode

By default, the Oracle Linux 8 graphical user interface (GUI) console mode treats the hardware power button as the equivalent of the ACPI "Sleep" button, which puts the system into low-power sleep mode. This behavior is specific to the GNOME desktop environment.

In previous Oracle Linux releases, the hardware power button initiated a system shutdown. To ensure that Oracle Linux 8 behaves the same way, do the following:

  1. Create a file named /etc/dconf/db/local.d/01-shutdown-button-action with following content:

    [org/gnome/settings-daemon/plugins/power]
    power-button-action='interactive'
  2. Create a file named /etc/dconf/db/local.d/locks/01-power with the following content:

    /org/gnome/settings-daemon/plugins/power/power-button-action
  3. Run the following command:

    sudo dconf update
  4. Log out of the desktop environment and then log back in for the new settings to take effect.

(Bug ID 25597898)