linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* udev rules wont work
@ 2009-07-21 12:58 eial
  2009-07-21 13:13 ` eial
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: eial @ 2009-07-21 12:58 UTC (permalink / raw)
  To: linux-hotplug


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" 

but when I turn on the adapter, the modules won't load, when I plug the mouse, the touchpad is still working and when I unplug it, if it is off, it won't come back on.
I've tried to change the mouse line to these line:
ACTION="add", SUBSYSTEM="usb", ATTRS{product}="USB_PS2 Optical Mouse"  , RUN+="/usr/bin/synclient TouchpadOff=1"
ACTION="remove", SUBSYSTEM="usb", ATTRS{product}="USB_PS2 Optical Mouse"  , RUN+="/usr/bin/synclient TouchpadOff=0"
but no luck, when I check /var/log/messages I see this:
Jul 20 19:05:12 NCC-5001-D udevadm[5426]: bind failed: Operation not permitted     
Jul 20 19:05:18 NCC-5001-D usb 6-1: USB disconnect, address 6                       
Jul 20 19:05:22 NCC-5001-D usb 6-1: new low speed USB device using uhci_hcd and address 7                                                                               
Jul 20 19:05:22 NCC-5001-D usb 6-1: configuration #1 chosen from 1 choice           
Jul 20 19:05:22 NCC-5001-D input: USB_PS2 Optical Mouse as /class/input/input19     
Jul 20 19:05:22 NCC-5001-D generic-usb 0003:15CA:00C3.0008: input: USB HID v1.10 Mouse [USB_PS2 Optical Mouse] on usb-0000:00:1d.1-1/input0                             
Jul 20 19:05:58 NCC-5001-D udevadm[5556]: bind failed: Operation not permitted      .

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-07-23  6:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-21 12:58 udev rules wont work eial
2009-07-21 13:13 ` eial
2009-07-21 13:13 ` eial
2009-07-21 13:16 ` eial
2009-07-21 13:17 ` Matthias Schwarzott
2009-07-21 13:29 ` eial
2009-07-21 13:43 ` Matthias Schwarzott
2009-07-21 13:59 ` eial
2009-07-23  6:14 ` eial

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).