udev action only for connecting VGA/HDMI cable but not for disconnecting
Dan Nicholson
dbn.lists at gmail.com
Fri Aug 19 06:03:59 PDT 2011
On Fri, Aug 19, 2011 at 5:03 AM, Dirk Montgomery <qjn at gmx.de> wrote:
>
> Hello all,
>
> I have an AMD Radeon HD 6310 with free radeonhd drivers running. Xorg
> version is 7.6, xserver is 1.10.3.
>
> I tried to define a udev rule to change my monitor settings autoamtically
> when I connect a VGA or an HDMI cable. Connecting works fine but
> disconnecting is not recognized.
>
> udevadm monitor shows:
>
> udevadm monitor
>
> monitor will print the received events for:
> UDEV - the event which udev sends out after rule processing
> KERNEL - the kernel uevent
>
> KERNEL[100.176249] change /devices/pci0000:00/0000:00:01.0/drm/card0 (drm)
> UDEV [100.869104] change /devices/pci0000:00/0000:00:01.0/drm/card0 (drm)
>
> for connecting. For disconnecting nothing happens. Of course with this it is
> not possible to define a rule to change resolution etc. when cable is
> disconnected.
Since this source of this is entirely in the drm kernel module, the
xorg list may not be the best place to find out. What kernel are you
running? It might make sense to ask on one of the dri mailing lists if
no one responds here:
http://dri.freedesktop.org/wiki/MailingLists
--
Dan
More information about the xorg
mailing list