Thinkpad E430C关闭触摸板(Ubuntu)

  
  
  
  
  1. ctrl + alt + t
  
  
  
  
  1. xinput

output:

  
  
  
  
  1. Virtual core pointer id=2 [master pointer (3)]
  2. Virtual core XTEST pointer id=4 [slave pointer (2)]
  3. ThinkPad USB Travel Mouse id=10 [slave pointer (2)]
  4. //注意下面一行的id在后面的命令中要用
  5. SynPS/2 Synaptics TouchPad id=13 [slave pointer (2)]
  6. TPPS/2 IBM TrackPoint id=15 [slave pointer (2)]
  7. Virtual core keyboard id=3 [master keyboard (2)]
  8. Virtual core XTEST keyboard id=5 [slave keyboard (3)]
  9. Power Button id=6 [slave keyboard (3)]
  10. Video Bus id=7 [slave keyboard (3)]
  11. Video Bus id=8 [slave keyboard (3)]
  12. Power Button id=9 [slave keyboard (3)]
  13. Integrated Camera id=11 [slave keyboard (3)]
  14. AT Translated Set 2 keyboard id=12 [slave keyboard (3)]
  15. ThinkPad Extra Buttons id=14 [slave keyboard (3)]
  
  
  
  
  1. xinput list-props 13 | grep Enabled //注意13和上面的TouchPad项要对应

output:

  
  
  
  
  1. Device Enabled (137): 1 //说明是开启状态
  
  
  
  
  1. xinput set-prop 13 137 0

O了,检查一下:

  
  
  
  
  1. xinput list-props 13 | grep Enabled

output:

#!/bin/sh
id=$(xinput |grep  -i TouchPad|cut -c 55-56)   
#echo "####输入刚才显示的数字####"
#read -r id
number=$(xinput list-props 11 |grep Enabled|cut -c 18-20)
#echo "####输入刚才显示的数字####"
#read -r number
xinput set-prop $id $number 0


你可能感兴趣的:(关闭触摸板)