修正的鼠标/触摸板udev互斥规则

CPU/显卡/打印机/USB设备等硬件问题
回复
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

修正的鼠标/触摸板udev互斥规则

#1

帖子 eexpress » 2008-07-08 21:30

21:25:39 exp /etc/udev/rules.d ☎ cat 66-touchpad.rules
# disable the touchpad when inserted a usb mouse
# should be linked to /etc/udev/rules.d/01-touchpad.rules
ACTION=="add", SUBSYSTEM=="input", ID_CLASS=="mouse", RUN+="/usr/bin/synclient TouchpadOff=1"
ACTION=="remove", SUBSYSTEM=="input", ID_CLASS=="mouse", RUN+="/usr/bin/synclient TouchpadOff=0"

上次写错了一个地方。ID_CLASS 或许可以写成 DRIVERS 的。看了下60的规则就知道了。ID_CLASS是后来才设置的。所以,规则改成了66。
● 鸣学
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#2

帖子 skyx » 2008-07-08 21:40

用fn键关touchpad的漂过。 :shock:
no security measure is worth anything if an attacker has physical access to the machine
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#3

帖子 eexpress » 2008-07-08 21:48

妹托居然躲在irc当马甲。。。。居然不喜欢自动的。
● 鸣学
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#4

帖子 skyx » 2008-07-08 22:01

白天用古董thinkpad x32,没这个问题,在家用fn关。 :lol:
no security measure is worth anything if an attacker has physical access to the machine
头像
sinyadvan
帖子: 724
注册时间: 2008-04-02 15:36
来自: O_O

#5

帖子 sinyadvan » 2008-09-02 9:48

:em87 好啊好啊,为什么不早点看到呢
^o^ && O_O && ^_^
One World|One Dream|One Piece
愛 ^_^ 這個 美麗的世界O_O

本公司专治各种不服、不爽、谩骂、挑衅。
头像
qiang_liu8183
论坛版主
帖子: 10699
注册时间: 2006-09-10 22:36
系统: Arch Debian
来自: 北京

#6

帖子 qiang_liu8183 » 2008-09-02 15:29

加上devel自动检测不就完了
看破、放下、自在、随缘、念佛
真诚、清净、平等、正觉、慈悲
头像
fortruth
帖子: 1795
注册时间: 2005-11-06 1:51
来自: 七彩云世界
联系:

#7

帖子 fortruth » 2008-09-03 1:31

我喜欢.
佛出寺,求索真世界 For_Truth:Free_Open_Share
OPEN GPG KEY:03D18D95
gtx
帖子: 172
注册时间: 2005-10-28 17:40

#8

帖子 gtx » 2008-09-04 0:59

qiang_liu8183 写了:加上devel自动检测不就完了
不明白,什么意思?
rocbaby
帖子: 33
注册时间: 2007-12-10 1:28

Re: 修正的鼠标/触摸板udev互斥规则

#9

帖子 rocbaby » 2009-07-16 14:16

飘过
firefoxmmx
帖子: 407
注册时间: 2006-07-28 8:51

Re: 修正的鼠标/触摸板udev互斥规则

#10

帖子 firefoxmmx » 2010-10-07 23:12

ee 為什麼我這樣不行呢??
ACTION=="add", SUBSYSTEM=="input", ENV{ID_CLASS}="mouse", RUN+="/sbin/modprobe -ra psmouse"
ACTION=="remove", SUBSYSTEM=="input", ENV{ID_CLASS}="mouse", RUN+="/sbin/modprobe -a psmouse"
回复