Thanks for your reply, Christopher. I have followed your suggestions below, including running the Interactive Help, but am still having the same problem. I also run BetterTouchTool and Karabiner Elements, and have quit both apps without any difference.
I note that when I use the hotkey trigger, when I lift my finger off the key—in this case Z—the laptop stays asleep, but when I lift my fingers off the modifier keys the computer comes back to life.
I use this setting to flip function keys such that the fn key is not needed, unless I'm activating brightness or other hardware controls.
It makes function keys more useful.
When you're having problems with hotkey triggers always try an innocuous single-key trigger like one of the function keys or Home or End to see if the key sequence itself is the problem.
Thanks for mentioning, Chris. Probably ten years ago I bought the preference pane Function Flip so I could decide how I wanted to use each function key. When it went belly up I switched to Karabiner-Elements. Here’s a screenshot:
I am having the exact same problem. On my previous Mac, Put computer to sleep action used to take my Mac to lock screen, and I would need to use touch ID to get back to work. But now it just puts screen to sleep and the moment I move mouse or press a key it comes back on again. So since I am actively working it results in a temporary screen blackout only. Same behavior if I test the trigger using "run"
The above solution wouldn't work for me because I am using a time-based trigger.
My guess is that your new computer has "automatic login" disabled and your old computer did not. Try launching System Settings and change that option. It may fix the issue.