vboxadd-service failed

启用/禁用触摸板

灵枢素问 posted @ 2014年2月07日 10:51 in 硬件 , 821 阅读

查看设备,找到设备ID号:

:/> xinput --list
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=12   [slave  pointer  (2)]
⎜   ↳ USB OPTICAL MOUSE                         id=14   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Power Button                              id=7    [slave  keyboard (3)]
    ↳ Sleep Button                              id=8    [slave  keyboard (3)]
    ↳ Video Bus                                 id=9    [slave  keyboard (3)]
    ↳ Lenovo EasyCamera                         id=10   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=11   [slave  keyboard (3)]
    ↳ Ideapad extra buttons                     id=13   [slave  keyboard (3)]


我的触摸板的ID号是:12

下面这条命令是用来显示这个设备有哪些可以设置的参数,第一个参数就是Device Enabled,如果设置成0就是禁用,设置成1,就是启用。

~> xinput --list-props 12
Device 'SynPS/2 Synaptics TouchPad':
        Device Enabled (141):   1
        Coordinate Transformation Matrix (143): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
        Device Accel Profile (264):     1
        Device Accel Constant Deceleration (265):       2.500000
        Device Accel Adaptive Deceleration (266):       1.000000
        Device Accel Velocity Scaling (267):    12.500000
        Synaptics Edges (268):  1765, 5371, 1637, 4453
        Synaptics Finger (269): 25, 30, 256
        Synaptics Tap Time (270):       180
        Synaptics Tap Move (271):       234
        Synaptics Tap Durations (272):  180, 180, 100
        Synaptics ClickPad (273):       1
        Synaptics Tap FastTap (274):    0
        Synaptics Middle Button Timeout (275):  0
        Synaptics Two-Finger Pressure (276):    282
        Synaptics Two-Finger Width (277):       7
        Synaptics Scrolling Distance (278):     106, 1
        Synaptics Edge Scrolling (279): 0, 0, 0
        Synaptics Two-Finger Scrolling (280):   1, 0
        Synaptics Move Speed (281):     1.000000, 1.750000, 0.037600, 40.000000
        Synaptics Edge Motion Pressure (282):   30, 160
        Synaptics Edge Motion Speed (283):      1, 425
        Synaptics Edge Motion Always (284):     0
        Synaptics Off (285):    0
        Synaptics Locked Drags (286):   0
        Synaptics Locked Drags Timeout (287):   5000
        Synaptics Tap Action (288):     0, 0, 0, 0, 1, 3, 2
        Synaptics Click Action (289):   1, 3, 2
        Synaptics Circular Scrolling (290):     0
        Synaptics Circular Scrolling Distance (291):    0.100007
        Synaptics Circular Scrolling Trigger (292):     0
        Synaptics Circular Pad (293):   0
        Synaptics Palm Detection (294): 0
        Synaptics Palm Dimensions (295):        10, 200
        Synaptics Coasting Speed (296): 20.000000, 50.000000
        Synaptics Pressure Motion (297):        30, 160
        Synaptics Pressure Motion Factor (298): 1.000000, 1.000000
        Synaptics Grab Event Device (299):      1
        Synaptics Gestures (300):       1
        Synaptics Capabilities (301):   1, 0, 0, 1, 1, 1, 1
        Synaptics Pad Resolution (302): 52, 42
        Synaptics Area (303):   0, 0, 0, 0
        Synaptics Soft Button Areas (304):      3568, 0, 4092, 0, 0, 0, 0, 0
        Synaptics Noise Cancellation (305):     8, 8
        Device Product ID (258):        2, 7
        Device Node (259):      "/dev/input/event1"

设置命令用下面这条:

~> xinput set-prop 12 "Device Enabled" 0

0代表禁用,1代表启用。还可以用如下两条:

~> xinput set-prop 12 141 0

或者用

~> xinput enable 12

enable 表示启用,disable是禁用


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter