Jump to content
Sign in to follow this  

Не выполняется правило udev

Recommended Posts

Пытаюсь отключать touchpad при подключении usb-мышки

Дистрибути Fedora 13

[root@sasha[/email] rules.d]# uname -a

Linux sasha.inki.com.ua #1 SMP Sun Sep 5 17:16:27 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux

Создал правило

[root@sasha[/email] rules.d]# cat /etc/udev/rules.d/98-mouse-touchpad-on-off.rules

ACTION=="add", KERNEL=="mouse*", SUBSYSTEM=="input", RUN+="/usr/bin/synclient TouchpadOff=1"

ACTION=="remove", KERNEL=="mouse*", SUBSYSTEM=="input", RUN+="/usr/bin/synclient TouchpadOff=0"

Команда /usr/bin/synclient TouchpadOff=1 упорно не исполняется

может кто сталкивался

Share this post

Link to post
Share on other sites

Судя по тесту должно все выполнятся

[root@sasha[/email] ~]# udevadm test --action=add /sys/class/input/mouse1

run_command: calling: test

udevadm_test: version 153


udevadm_test: ID_USB_DRIVER=usbhid

udevadm_test: .INPUT_CLASS=mouse

udevadm_test: ID_PATH=pci-0000:00:1d.0-usb-0:1.2:1.0

udevadm_test: run: 'socket:@/org/freedesktop/hal/udev_event'

udevadm_test: run: '/usr/bin/synclient TouchpadOff=1'

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...