I am running Ubuntu 18.04 on my Asus ROG GL752VW, and I want my sleep button to hibernate my computer. This computer has always been difficult for Ubuntu and Fedora.
First, I enabled hibernate and tested it through
sudo pm-hibernate. It worked.
Then, I attempted to make the sleep button Fn-F1 hibernate the computer. To accomplish this, I went in to dconf-settings and went to
org.gnome.settings-daemon.plugins.power and changed the settings for both the suspend and the sleep button to
hibernate. When I saved the settings then restarted the computer (which I do not think was necessary, but I did just to be safe), I double-checked that the setting was still
gsettings get org.gnome.settings-daemon.plugins.power button-suspend and the equivalent for sleep. After confirming, I pressed the sleep button. The computer suspended instead of hibernating. I then changed the value to
nothing and restarted, and the button still suspended the computer.
This is a fresh install of Ubuntu. I am currently using the following boot options, some of which are required to boot the computer and enable function keys (e.g. airplane mode). I am not sure what they all do, but they seem to help:
nouveau.modeset=0 tpm_tis.interrupts=0 acpi_osi=! acpi_backlight=native i915.preliminary_hw_support=1
Any suggestions? All the discussions I've read involve changing the values in
org.gnome.settings-daemon.plugins.power to change the behavior of the buttons.