Hi,<br><br>I am writing a script to output to external monitor automatically when it is connected.<br>But now I have no idea about what name will be used for internal monitor in xrandr.<br>some are "LVDS" and some are "DP1"<br>
<br>I want to parsing the xrandr output and remove the internal one. (xrandr | grep -v " connected" | grep -v $INTERNAL_NAME)<br>then others will be external monitor.<br><br>So, does any methods to does which name will be used for internal monitor.<br>
in many kinds of notebooks?<br><br>One more question,<br>I've tried meego live USB, it can auto output when I plug a external monitor,<br>How does it achieve this function?<br>Does any event will be issued when I plug a external monitor?<br>
<br>Thanks<br>