Comment 11 for bug 1040649

Revision history for this message
Georg Peters (georgpeters) wrote :

Alex, I guee you can just run the "xrandr" command, use grep to filter if there is "hdmi connected" and there you are..

My python skills are too low to implant this in the structure of cuttlefish..but I think you only have to check "xrandr | grep "HDMI1 connected"" continuously..if it changed to connected/disconnected --> run script.

Isn't it that simple? :(