On Wed, 23 Nov 2011 16:29:58 +0800, Wu Fengguang fengguang.wu@intel.com wrote:
What I need is a hot plug hook that knows whether the monitor is plugged or removed, which is only possible if the hook is called after ->detect().
That would be mode_set to tell you that the monitor is in use, and the disable function to tell you when the monitor is no longer in use.
You do not want to do anything to the hardware in the hot_plug paths; those are strictly informative; telling user space which connectors are present.