From: "J. Bakshi" <j.bakshi@unlimitedmail.org>
To: linux-hotplug@vger.kernel.org
Subject: how to generate udv trigger for a specific device ?
Date: Thu, 28 Oct 2010 04:59:21 +0000 [thread overview]
Message-ID: <201010281528.o9SFS1Tl028484@dcnode-01.unlimitedmail.net> (raw)
In-Reply-To: <201010280447.o9S4lDZG001183@dcnode-01.unlimitedmail.net>
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 the mouse, I have to physically add / remove the mouse. And for each and every 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 event ? I have tried by
````````````
udevadm trigger --verbose --sysname-match=/sys/class/input/input11 actiond
``````````````
But no luck. Could anyone please help me to generate the required event with udevadm please ?
Also interested to know, how to monitor the rules in action when the proper event is generated.
With regards
J. Bakshi
next prev parent reply other threads:[~2010-10-28 4:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-28 4:59 how to generate udv trigger for a specific device ? J. Bakshi
2010-10-28 4:59 ` J. Bakshi
2010-10-28 4:59 ` J. Bakshi [this message]
2010-10-29 11:31 ` J. Bakshi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201010281528.o9SFS1Tl028484@dcnode-01.unlimitedmail.net \
--to=j.bakshi@unlimitedmail.org \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox