You are not logged in.
Is it possible to create a udev rule to automatically change the audio and video outputs to HDMI when it registers that the cable has been plugged in and switch back to internal audio/video when the cable is removed?
Offline
If you're using nvidia drivers, you can use the nvidia-xconfig tool to add/remove displays without having to restart X11... Not automatic though. No idea if other drivers have some thing similar.
I don't think udev can make changes to the X server config, but something might be possible using evdev...
Offline