You are not logged in.

#1 2013-08-10 20:27:54

manuelschneid3r
Member
From: Baden-Württemberg, Germany
Registered: 2013-04-14
Posts: 128

udev rules for plugging and unplugging VGA

Hi,
I want to get run a comand if I am plugging or unplugging VGA cable.

SUBSYSTEM=="drm",ACTION=="add",RUN+="/usr/bin/touch /home/manuel/UDEV______A"
SUBSYSTEM=="drm",ACTION=="remove",RUN+="/usr/bin/touch /home/manuel/UDEV______R"
SUBSYSTEM=="drm",ACTION=="change",RUN+="/usr/bin/touch /home/manuel/UDEV______C"

UDEV______C is created, but why not UDEV______A, UDEV______R?

Regards


It's _not_ impolite, please feel free to correct my english.

Offline

#2 2013-08-15 21:28:11

Ovion
Member
Registered: 2013-02-24
Posts: 78

Re: udev rules for plugging and unplugging VGA

There is no add and remove concerning external screens/concerning the drm-subsystem. At least udev doesn't throw them, which is the same in this case. There's just change.

Offline

#3 2013-08-16 11:48:38

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 3,714

Re: udev rules for plugging and unplugging VGA

Also detecting monitors over vga is _really_ unreliable anyway, so even if there was it might not work to your satisfaction.


Evil #archlinux@freenode channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#4 2013-08-16 20:02:10

Ovion
Member
Registered: 2013-02-24
Posts: 78

Re: udev rules for plugging and unplugging VGA

Mr.Elendig wrote:

Also detecting monitors over vga is _really_ unreliable anyway, so even if there was it might not work to your satisfaction.

This seems to be very true, unfortunately. I have a screenupdater relying on that and it could definitely do better.

Offline

Board footer

Powered by FluxBB