Is it possible to configure Ubuntu so that the power button causes suspend regardless of whether the session is locked or not?
See here, for example. That configuration does not work, however, if the session is locked.
Note that my question is essentially the same as this one, but the given answer doesn't fully answer the question.
gsettings set org.gnome.settings-daemon.plugins.power button-power 'suspend'
. – Eliran Malka Oct 21 '12 at 23:46/etc/acpi/powerbtn.sh
? it seems like it all comes down to the logic in that file. good luck anyhow. – Eliran Malka Oct 22 '12 at 20:07