Methods to detect the connection and disconnection of DisplayPort

Please refer to below topic for DP HPD. You can also search more related topics as reference.