From mboxrd@z Thu Jan 1 00:00:00 1970 From: "J. Bakshi" Date: Fri, 29 Oct 2010 11:31:16 +0000 Subject: Re: how to generate udv trigger for a specific device ? Message-Id: <201010291118.o9TBIvf1025030@dcnode-02.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 Any clue please ? On Thu, 28 Oct 2010 10:17:21 +0530 "J. Bakshi" wrote: > Hello list, >=20 > 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/input1= 1 and [ udevadm monitor /sys/class/input/input11 ] proves the detection. N= ow to test my udev rules which execute some action based on add / remove of= the mouse, I have to physically add / remove the mouse. And for each and e= very change in my ruleset I have to do the same. Is there any way to genera= te the event by udevadm, so that my rules are fired based on the generated = event ? I have tried by >=20 > ```````````` > udevadm trigger --verbose --sysname-match=3D/sys/class/input/input11 ac= tion=ADd > `````````````` >=20 > But no luck. Could anyone please help me to generate the required event w= ith udevadm please ? > Also interested to know, how to monitor the rules in action when the prop= er event is generated. >=20 > With regards > J. Bakshi --=20 ___________________________________________________________________________= __ "Programming today is a race between software engineers striving to build=20 bigger and better idiot-proof programs and the universe trying to produce=20 bigger and\better idiots. So far, the universe is winning." ::::::Richard Cook ___________________________________________________________________________= __ ***************************************************************************= ************ Disclaimer : The information contained in this Message is confidential and = intended only for the use of the individual or entity identified. If the=20 reader of this message is not the intended recipient, any dissemination,=20 distribution or copying of the information contained in this message is=20 strictly prohibited. If you received this message in error, please notify t= he=20 sender immediately ***************************************************************************= ************