1。查看触摸板是哪个设备:
$ cat /proc/bus/input/devices
I: Bus=0017 Vendor=0001 Product=0001 Version=0100
N: Name="Macintosh mouse button emulation"
P: Phys=
S: Sysfs=/class/input/input0
U: Uniq=
H: Handlers=mouse0 event0
B: EV=7
B: KEY=70000 0 0 0 0
B: REL=3
I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/class/input/input1
U: Uniq=
H: Handlers=kbd event1
B: EV=120013
B: KEY=402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7
I: Bus=0003 Vendor=04f3 Product=0214 Version=0111
N: Name="PS/2+USB Mouse"
P: Phys=usb-0000:00:1d.1-1/input0
S: Sysfs=/class/input/input2
U: Uniq=
H: Handlers=mouse1 event2
B: EV=17
B: KEY=1f0000 0 0 0 0
B: REL=103
B: MSC=10
I: Bus=0019 Vendor=0000 Product=0002 Version=0000
N: Name="Power Button (FF)"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/class/input/input3
U: Uniq=
H: Handlers=kbd event3
B: EV=3
B: KEY=10000000000000 0
I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button (CM)"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/class/input/input4
U: Uniq=
H: Handlers=kbd event4
B: EV=3
B: KEY=10000000000000 0
I: Bus=0019 Vendor=0000 Product=0003 Version=0000
N: Name="Sleep Button (CM)"
P: Phys=PNP0C0E/button/input0
S: Sysfs=/class/input/input5
U: Uniq=
H: Handlers=kbd event5
B: EV=3
B: KEY=4000 0 0
I: Bus=0019 Vendor=0000 Product=0005 Version=0000
N: Name="Lid Switch"
P: Phys=PNP0C0D/button/input0
S: Sysfs=/class/input/input6
U: Uniq=
H: Handlers=event6
B: EV=21
B: SW=1
I: Bus=0019 Vendor=0000 Product=0006 Version=0000
N: Name="Video Bus"
P: Phys=/video/input0
S: Sysfs=/class/input/input7
U: Uniq=
H: Handlers=kbd event7
B: EV=3
B: KEY=3f000b00000000 0 0 0
I: Bus=0010 Vendor=001f Product=0001 Version=0100
N: Name="PC Speaker"
P: Phys=isa0061/input0
S: Sysfs=/class/input/input8
U: Uniq=
H: Handlers=kbd event8
B: EV=40001
B: SND=6
I: Bus=0003 Vendor=0c45 Product=63eb Version=8923
N: Name="Laptop_Integrated_Webcam_2M"
P: Phys=usb-0000:00:1a.7-6
S: Sysfs=/class/input/input9
U: Uniq=
H: Handlers=event9
B: EV=3
B: KEY=1 0 0 0 0
I: Bus=0011 Vendor=0002 Product=0007 Version=01b1
N: Name="SynPS/2 Synaptics TouchPad"
P: Phys=isa0060/serio1/input0
S: Sysfs=/class/input/input10
U: Uniq=
H: Handlers=mouse2 event10
B: EV=b
B: KEY=6420 70000 0 0 0 0
B: ABS=11000003
这样就可以看到,触摸板的设备是:mouse2(/dev/mouse2)上面红字部分。
2。安装调整触摸板软件(gsynaptics)这是一个图形前端,用的是synclient命令,可以用命令行但是麻烦。
$ sudo apt-get install gsynaptics
3。修改xorg.conf(这是为了启用shm选项)
修改xorg.conf已经不被推荐了,但是我现用了这个方法,懒得去弄,反正已经好用了。另一个方法可以参考:
- gentoo文档(Synaptics Touchpad/Xorg 7.3)
- http://www.linuxquestions.org/questions/slackware-14/cant-access-shared-memory-area.-shmconfig-disabled-692073/
Section "InputDevice"主要的就是红色的那句,就是启用了shm。要注意的还有设备要对,就是第一部找到的设备(绿字)。
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/mouse2"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
# 添加下面一行,可以移动,触击无效
Option "MaxTapTime" "0"
Option "SHMConfig" "on"
EndSection
没有评论:
发表评论