On Tue, 2 Nov 2010 13:51:25 +0300 Andrey Borzenkov <arvidjaar@xxxxxxxxx> wrote: > On Tue, Nov 2, 2010 at 1:43 PM, J. Bakshi <j.bakshi@xxxxxxxxxxxxxxxxx> wrote: > > On Tue, 2 Nov 2010 12:52:10 +0300 > > Andrey Borzenkov <arvidjaar@xxxxxxxxx> wrote: > > > >> On Tue, Nov 2, 2010 at 9:49 AM, J. Bakshi <j.bakshi@xxxxxxxxxxxxxxxxx> wrote: > >> > Hello list, > >> > > >> > To check the udev rules, say for a pendrive or mouse, we have to manually plug/unplug the devices every time, just after a modification in the rule sets. is there any way to generate the event for a *particular device* from command line ? > >> > > >> > >> See "udevadm trigger". > >> > > > > Thanks , but I have already tried with ( for usb mouse ) > > > > ```````````` > > udevadm trigger --verbose Â--sysname-match=/sys/class/input/input11 Âaction=add > > `````````````` > > > > but no luck :-( > > > > This is event for input subsystem device input11, not for USB mouse. > You probably want to use real device name (under /devices) for it. > -- > To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > Ok, I am trying with a pendrive now. It is detected as below `````````````````````` Nov 2 16:49:32 debian kernel: [69795.593055] sd 48:0:0:0: [sdc] Write Protect is off Nov 2 16:49:32 debian kernel: [69795.596322] sdc: sdc1 sdc2 Nov 2 16:49:32 debian kernel: [69795.606536] sd 48:0:0:0: [sdc] Attached SCSI removable disk ``````````````````````````````````` The udev rules already has a notify-send which has shown on Desktop. Now I am trying to generate an event ````````````````````````` udevadm trigger --verbose /dev/sdc ````````````````````````` But no success... Any clue please ? -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html