From mboxrd@z Thu Jan 1 00:00:00 1970 From: "J. Bakshi" Date: Thu, 28 Oct 2010 04:59:21 +0000 Subject: how to generate udv trigger for a specific device ? Message-Id: <201010281528.o9SFS1Tl028484@dcnode-01.unlimitedmail.net> List-Id: References: <201010280447.o9S4lDZG001183@dcnode-01.unlimitedmail.net> In-Reply-To: <201010280447.o9S4lDZG001183@dcnode-01.unlimitedmail.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org Hello list, I'm a newbie in udev rules and writing some very specific udev rules for my= usb mouse. As per sysfs the mouse is detected as /sys/class/input/input11 = and [ udevadm monitor /sys/class/input/input11 ] proves the detection. Now= to test my udev rules which execute some action based on add / remove of t= he mouse, I have to physically add / remove the mouse. And for each and eve= ry change in my ruleset I have to do the same. Is there any way to generate= the event by udevadm, so that my rules are fired based on the generated ev= ent ? I have tried by ```````````` udevadm trigger --verbose --sysname-match=3D/sys/class/input/input11 acti= on=ADd `````````````` But no luck. Could anyone please help me to generate the required event wit= h udevadm please ? Also interested to know, how to monitor the rules in action when the proper= event is generated. With regards J. Bakshi