I'm trying to stop my MacBook Air M1, 2020 with macOS 13.5.1 from sleeping on power adapter.
I've tried "prevent automatic sleeping on power adapter when the display is off" as stated in a tutorial
I already turned display off to never.
I've also tried the command
sudo pmset -a disablesleep 1 as stated in a stackexchange answer
it still goes to sleep each time about two hours after I leave it idle On Hold, lid open, no matter it's day or night, how do I do?
i start a monitor script when i leave it idle recording timestamp.