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:
-
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'
-
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
-
Run the following command:
sudo dconf update
-
Log out of the desktop environment and then log back in for the new settings to take effect.
(Bug ID 25597898)