Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

10
  • 4
    It can be done with udev. What is your kernel version? Are you using KMS (kernel mode setting)? Commented May 25, 2011 at 16:00
  • Thanks for the answer. I am not sure about KMS, but as I said in the question, udev doesn't send any events. (udevadm monitor --property does not react at all) Commented May 25, 2011 at 16:27
  • @Andy: the last time this came up, it seemed that most systems required polling. If you've found a way to trigger a udev event, could you answer that question? Commented May 25, 2011 at 23:03
  • 1
    I finally got it running loading i915 as kernel module. Commented May 29, 2011 at 12:13
  • 3
    You can use xrandr or disper to detect if external monitor has been plugged in. github.com/wertarbyte/autorandr can show you how to use them. But xrandr/disper might not supported your video card. Commented Dec 5, 2011 at 10:33