Is there a way to disable logout upon pressing the power button?
Just in case you will not find the solution, "putting computer to sleep" is nicely done with Settings > Desktop & Screen Saver > Screen Saver > Hot Corners.
To trigger the sleep screen you just do a slide gesture of the cursor into the preferred display corner, left down in my case.