[分享创造] 写了个小工具:手机一键关掉 Mac 的显示器, Mac 不睡、远程和后台任务照跑
我的 Mac mini M4 是 24 小时开着的,上面跑远程桌面和各种 AI agent ,接了三块屏(贫穷人士,基本都垃圾显示器):飞利浦 Evnia 27M2N3800F ( 27 英寸 4K )当主屏,技嘉 G24F 竖着放,另外还有一个 JetKVM 。有两个场景很烦: - 人已经出门了,才想起桌上的显示器还亮着; - 远程连回家时没人看屏幕,显示器却一直开着。 macOS 自带的办法,要么整台机器睡眠,要么等屏幕自己超时息屏,都不太合适。所以我写了个小工具: - **away**:通过 DDC 让实体显示器进入待机。Mac 不睡眠,系统也不认为屏幕被拔掉了,所以窗口位置不会乱,远程桌面和后台任务照常跑。 - **home**:唤醒显示器,并恢复分辨率、刷新率、竖屏旋转和镜像布局。 - 配合 Tailscale 和 iPhone 快捷指令,在外面也能一键开关。 整个工具是 Python 写的,只用标准库,大约 400 行。底层用的是 m1ddc 和 displayplacer ,配置写在一个 JSON 文件里。MIT 开源: https://github.com/Steven
Read original sourceSource record
Research analysis
What changed
Source account: 我的 Mac mini M4 是 24 小时开着的,上面跑远程桌面和各种 AI agent ,接了三块屏(贫穷人士,基本都垃圾显示器):飞利浦 Evnia 27M2N3800F ( 27 英寸 4K )当主屏,技嘉 G24F 竖着放,另外还有一个 JetKVM 。有两个场景很烦: - 人已经出门了,才想起桌上的显示器还亮着; - 远程连回家时没人看屏幕,显示器却一直开着。 macOS 自带的办法,要么整台机器睡眠,要么等屏幕自己超时息屏,都不太合适。所以我写了个小工具: - **away**:通过 DDC 让实体显示器进入待机。Mac 不睡眠,系统也不认为屏幕被拔掉了,所以窗口位置不会乱,远程桌面和后台任务照常跑。 - **home**:唤醒显示器,并恢复分辨率、刷新率、竖屏旋转和镜像布局。 - 配合 Tailscale 和 iPhone 快捷指令,在外面也能一键开关。 整个工具是 Python 写的,只用标准库,大约 400 行。底层用的是 m1ddc 和 displayplacer ,配置写在一个 JSON 文件里。MIT 开源: https://github.com/Steven
Version & cost evidence
Recent records to compare: “Show HN: Mindfries- AI Interviewer based on real eng skill not on L**tC*de” (Show HN, Nov 9, 2026); “[分享创造] 做了个 QMuse CLI:本地 React 项目托管部署, QMuse 项目也能交给本地 Agent 继续开发” (V2EX, Nov 9, 2026). Shared themes are navigation hints; they have not been verified as the same need or independent corroboration.
Who is affected
Identify the existing workflow this change affects before recommending an upgrade. Launch attention does not establish improvement; an API, pricing or availability change may instead create migration work.
Missing comparison points
Missing checks: old versus new behavior, affected plans and regions, availability date, compatibility, rollback path and cost under the same workload.
Migration check
Save the release or policy notice, run the same task on the old and new option, and compare outputs and the full bill. For retirement notices, verify the deadline before scheduling migration.