Disable Suspend and Suppress System Broadcast Message

First, create the file /etc/systemd/sleep.conf.d/nosuspend.conf with the following contents:

[Sleep]
AllowSuspend=no
AllowHibernation=no
AllowSuspendThenHibernate=no
AllowHybridSleep=no

Then issue the following command: systemctl daemon-reload