Yes, I used it in the past, just wanted to make the process more comfortable to me.Not sure it is possible. But you can enable a "Hot Corner". Move you mouse pointer to the "Hot Corner" to sleep display.
Settings > Desktop & Dock > scroll bottom, press "Hot Corners..." button. Choose your corner and select "Put Display to Sleep".
Did you log off and back on after changing the setting?It does not work for me.
Yes. Does it work for you?Did you log off and back on after changing the setting?
defaults read /Library/Preferences/com.apple.PowerManagement.plist
sudo defaults write /Library/Preferences/com.apple.PowerManagement.plist "Sleep On Power Button" 0
sudo defaults write /Library/Preferences/com.apple.PowerManagement.plist "Sleep On Power Button" 1
sudo defaults delete /Library/Preferences/com.apple.PowerManagement.plist "Sleep On Power Button"
I just tried, and restarted computer. `pmset -g` still shows "Sleep On Power Button 1". Does it show `0` on your system?On MBA M1 I have sleep disabled and the power button locks the screen.
Despite of `pmset -g` output (still 1) your advice works! Thanks a lot!!! Now I can put display to off with Power Button rather sending whole machine to sleep.The settings are now saved in /Library/Preferences/com.apple.PowerManagement.plist