查看已经连接的USB设备:
$ xinput list
通过xinput list-props 15 | grep Device\ Enabled查看触摸板相关属性,结果如下:
我们可以通过以下两条命令进行触摸板开启关闭的操作:
# 关闭触摸板
xinput set-prop ‘SynPS/2 Synaptics TouchPad’ ‘Device Enabled’ 0
# 开启触摸板
xinput set-prop ‘SynPS/2 Synaptics TouchPad’ ‘Device Enabled’ 1