How to detect external monitor connection?

Hello,

Can the hald or dbus-daemon detect a monitor connecting or disconnecting? When I'm connecting the monitor, I need to turn off an LVDS, and set normal resolution to VGA, and vice versa for disconnecting.

Is it possible to automate this process?
 
Back
Top