Re: udev rules wont work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue 21 Jul 16:17 2009 Matthias Schwarzott wrote:
> On Dienstag, 21. Juli 2009, eial@xxxxxxxxxxxx wrote:
> > hello.
> > I'm running gentoo with kernel tuxonice 2.6.29, hal 0.5.12_rc1, dbus
> > 1.2.12, xorg-server 1.6.2 and udev 140. I have these following three rules:
> > ACTION=="add", SUBSYSTEM=="input", ENV{ID_CLASS}=="mouse",
> > RUN+="/usr/bin/synclient TouchpadOff=1"
> > ACTION=="remove",  
> > SUBSYSTEM=="input", ENV{ID_CLASS}=="mouse", RUN+="/usr/bin/synclient
> > TouchpadOff=0" SUBSYSTEM=="bluetooth", KERNEL=="hci[0-9]*",
> > RUN+="bluetooth.sh" 
> >
> 
> What is the name of the file these rules are in?
> It must be lexically after the file setting ID_CLASS.
> For remove event it is possible not all properties can be checked, but you may 
> use REMOVE_CMD for it.
> REMOVE_CMD is set in ACTION=="add" to the value you want to pass to RUN in 
> remove case.
> 
> If that does not help, please run "udevadmin monitor --udev --env" while 
> plugging the mouse in and post the results.
> 
> Regards
> Matthias
> --
> 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
> 

for some reason I can't seem to find the bluetooth file, I'll focus on the mouse, the file is /etc/udev/rules.d/01-touchpad.rules
lexically? 
not sure I've understood the REMOVE_CMD

here is the output:
ul 21 16:27:36 NCC-5001-D usb 6-2: new low speed USB device using uhci_hcd and address 7
Jul 21 16:27:36 NCC-5001-D usb 6-2: configuration #1 chosen from 1 choice
Jul 21 16:27:36 NCC-5001-D input: USB_PS2 Optical Mouse as /class/input/input17
Jul 21 16:27:36 NCC-5001-D generic-usb 0003:15CA:00C3.0006: input: USB HID v1.10 Mouse [USB_PS2 Optical Mouse] on usb-0000:00:1d.1-2/input0


--
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

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux