What you're asking hasn't been implemented yet. It involves using KMS (kernel mode setting) and sending events when a cable is plugged in (i.e. interrupt-driven hotplug). Currently these events exist but are sent only when you probe hardware manually (i.e. there's no auto probing). Furthermore, even when all this is implemented there will be a limitation because not all ports (e.g. some vga or tv ports) support hotplug.
Once interrupt-driven hotplug is implemented we'll be able to do what you say when we receive the event.
What you're asking hasn't been implemented yet. It involves using KMS (kernel mode setting) and sending events when a cable is plugged in (i.e. interrupt-driven hotplug). Currently these events exist but are sent only when you probe hardware manually (i.e. there's no auto probing). Furthermore, even when all this is implemented there will be a limitation because not all ports (e.g. some vga or tv ports) support hotplug.
Once interrupt-driven hotplug is implemented we'll be able to do what you say when we receive the event.