a note

put the display to sleep

pmset displaysleepnow

put the system to sleep

pmset sleepnow

detect whether display is asleep

# parse the output to extract the Display Asleep state. If nothing is found, the system is awake.
system_profiler SPDisplaysDataType

Available network connection services

scutil --nc list

scutil --nc start "xxx"
scutil --nc stop "xxx"

posted on 2025-09-07 15:56  明天有风吹  阅读(15)  评论(0)    收藏  举报

导航

+V atob('d2h5X251bGw=')

请备注:from博客园