Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想制作一个小实用程序,让我的 MacBook 获得翻盖模式。有没有可用的API?
Clamshell 的意思是“仅外接显示器开启模式”。 这就是我想要的行为。
从您的代码中调用pmset 。