This stupid goddamn button completely locks my pc until I hard-reset it by holding down the power button. Here is how to disable it so I don’t accidentally press it again:
This assumes Fedora w/ KDE.
- Edit
/etc/systemd/sleep.confand setAllowHibernation=noandAllowSuspendThenHibernate=no. - Run
sudo systemctl mask hibernate.target hybrid-sleep.target sleep.target suspend-then-hibernate.target - Reboot.
This will remove the hibernate button from the UI and disable hibernation.
Good riddance.