凤希AI - 自动关机(GameOver)
Queue a long batch before bed, and let the PC switch itself off after
- 触发输入
- 触发输出
Overnight rendering is a two-part problem. Part one is making the workflow run unattended - the pack's segment-and-loop nodes handle that. Part two is what happens after: your machine sits there at 3 a.m., fans spinning, burning power for six hours of finished work. FxAiAutoShutdown (凤希AI - 自动关机(GameOver)) is the part-two answer. Drop it at the end of the chain, and once everything downstream has finished it waits a configurable grace period and powers the machine off. The "(GameOver)" in its name is the author having a little fun - this node ends the run, literally.
How it works
It's dead simple, and that's the point. It has a wildcard 触发输入 (trigger input) that accepts any type, so you can hang it off the last node in your batch - a save node, a merge node, whatever fires last. Because it's an output node sitting at the end of the graph, it only runs once everything feeding it has completed. If 启用关机 (enable shutdown) is off - the default - it just passes the trigger through and logs "auto shutdown disabled"; that means you can leave the node in your workflow permanently and flip a boolean when you actually want the machine to die. When enabled, it schedules:
- Windows:
shutdown -s -t <seconds>- a countdown shutdown. - Linux/macOS:
sudo shutdown -h +<minutes>- and note the sudo. This is the trap: on a headless Linux render box this will prompt for a password unless you've set up passwordless sudo, in which case the command fails silently-ish (it logs the error) and your machine stays on.
The wait is 等待秒数 (wait seconds), default 60, min 5, max 86400 (a full day). The output 触发输出 just passes your trigger through, so you can keep chaining nodes after it without breaking the graph.
When you'd use it
The obvious case is an overnight batch on a machine you don't otherwise need - render all night, wake to a powered-down box. It also earns its keep in the pack's "通宵批量渲染" (all-night batch rendering) framing: multi-hour MiniMax or Wan jobs where you'd otherwise leave the machine idling. Honestly, on a desktop you'll probably use it once, decide "actually I want to keep the box on to check logs," and leave it disabled - which is why the off-by-default boolean is the right design.
Install
Part of fxai-toolkit (凤希全能节点包), MIT-licensed, by 凤希AI. ComfyUI Manager (search "fxai") or:
cd ComfyUI/custom_nodes
git clone https://github.com/fxai666/fxai-toolkit
# restart ComfyUI
Pack auto-installs soundfile and psutil. No models, no ffmpeg needed.
Gotchas
- It's a real shutdown, not a sleep or a screen-off. Close your work first - anything unsaved is gone, including (ironically) the ComfyUI session.
sudoon Linux/macOS is the failure point. If you're running ComfyUI as a normal user without passwordless sudo, test with a 5-second countdown before trusting it overnight.- The trigger socket is wildcard (
*), which means it won't enforce anything upstream - if you wire it to a node that runs early, it fires early. Put it strictly after the last thing you need done. - On Windows the countdown shows a system notification;
shutdown -ain a terminal cancels it if you change your mind mid-countdown.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| 触发输入 | * | — | |
| 等待秒数 | INT | 605–86400 | — |
| 启用关机 | BOOLEAN | false | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| 触发输出 | * | — |