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.