How to inhibit HDMI output to allow auto-switch?

This sounds like something someone else was trying to do recently. It looks like they stopped posting before finding a working resolution though…