Linux 禁用笔记本触摸板
1. 查看有什么设备
xinput list
输出:
⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ PS/2 Logitech Wheel Mouse id=14 [slave pointer (2)] ⎜ ↳ USB OPTICAL MOUSE id=10 [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)]↳ Video Bus id=7 [slave keyboard (3)]↳ Video Bus id=8 [slave keyboard (3)]↳ Sleep Button id=9 [slave keyboard (3)]↳ USB2.0 HD UVC WebCam id=11 [slave keyboard (3)]↳ Asus WMI hotkeys id=12 [slave keyboard (3)]↳ AT Translated Set 2 keyboard id=13 [slave keyboard (3)]
那么PS/2 Logitech Wheel Mouse就是我的触摸板了. 设备id=14.
2. 查看触摸板属性
xinput list-props 14 或者 xinput list-props 'PS/2 Logitech Wheel Mouse'
输出
Device 'PS/2 Logitech Wheel Mouse':Device Enabled (136): 1Coordinate Transformation Matrix (138): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000Device Accel Profile (262): 0Device Accel Constant Deceleration (263): 1.000000Device Accel Adaptive Deceleration (264): 1.000000Device Accel Velocity Scaling (265): 10.000000Device Product ID (254): 2, 1Device Node (255): "/dev/input/event4"Evdev Axis Inversion (266): 0, 0Evdev Axes Swap (268): 0Axis Labels (269): "Rel X" (146), "Rel Y" (147)Button Labels (270): "Button Left" (139), "Button Middle" (140), "Button Right" (141), "Button Wheel Up" (142), "Button Wheel Down" (143)Evdev Middle Button Emulation (271): 0Evdev Middle Button Timeout (272): 50Evdev Third Button Emulation (273): 0Evdev Third Button Emulation Timeout (274): 1000Evdev Third Button Emulation Button (275): 3Evdev Third Button Emulation Threshold (276): 20Evdev Wheel Emulation (277): 0Evdev Wheel Emulation Axes (278): 0, 0, 4, 5Evdev Wheel Emulation Inertia (279): 10Evdev Wheel Emulation Timeout (280): 200Evdev Wheel Emulation Button (281): 4Evdev Drag Lock Buttons (282): 0
看到 Device Enabled (136): 1 为启动.
3. 开关触摸板
#禁用触摸板 xinput set-prop 14 'Device Enabled' 0 #通过设备编号+属性名禁用触摸板 xinput set-prop 'PS/2 Logitech Wheel Mouse' 'Device Enabled' 0 #通过设备名+属性名禁用触摸板 #启用触摸板 xinput set-prop 14 136 1 #通过设备编号+属性编号来设置 xinput set-prop 'PS/2 Logitech Wheel Mouse' 136 1 #通过设备名+属性编号启用
参考文献: http://www.chenyudong.com/archives/lenovo-laptop-disable-or-enable-touchpad-using-xinput-in-ubuntu.html#i
转载于:https://www.cnblogs.com/gssl/p/4970732.html
Linux 禁用笔记本触摸板相关推荐
- 如何禁用笔记本触摸板
很多笔记本的触摸板不好用,想要禁止,然后另外连接键盘鼠标使用,小编自己就是使用的笔记本禁用触摸板驱动,安装完重启电脑后,在电脑右下角任务栏上有个图标,点鼠标右键,选择设置--定点装置属性--禁用,就可 ...
- ubuntu下开启/禁用笔记本触摸板
操作系统环境:ubuntu16.04: 操作方式:命令行: 禁用笔记本触摸板:sudo rmmod psmouse: 开启笔记本触摸板:sudo modprobe psmouse:
- Ubuntu开发环境_TLP电源管理模块、禁用笔记本触摸板
一 TLP电源管理模块 https://tieba.baidu.com/p/5672635186?red_tag=1310970730 Ubuntu内核更新后,nvidia驱动无法运行,TLP无法起作 ...
- Ubuntu下开机禁用笔记本触摸板
Ubuntu下开机禁用笔记本触摸板 https://blog.csdn.net/kellncy/article/details/53573526
- ubuntu下使用脚本自动禁用笔记本触摸板和键盘
我喜欢把外接键盘放在笔记本键盘上,难免会误触到,所以想写个脚本检测到有外接键盘自动禁用掉笔记本键盘.主要使用xinput来实现. 如下是脚本,可以直接执行进行测试(一般来说你要改下脚本里面前面的几个名 ...
- ubuntu禁用笔记本触摸板
临时禁用触摸板: sudo modprobe -r psmouse 开启触摸板: sudo modprobe -a psmouse 永久禁用触摸板: sudo vim /etc/modprobe.d/ ...
- window 10 禁用笔记本触摸板
可能有一些电脑可以通过键盘上,有关闭触摸板的快捷键fn + :如果没有或者说,像我一样使用这种方式无效,你可以通过在我的桌面右击我的电脑,选择管理->设备管理器->鼠标和其他指针设备-&g ...
- ubuntu 禁用笔记本触摸板 hp4321s
2019独角兽企业重金招聘Python工程师标准>>> 禁用触摸板 sudo rmmod psmouse 启用触摸板 sudo modprobe psmouse 触摸板上的关闭快捷键 ...
- 禁用笔记本触摸板功能
为什么80%的码农都做不了架构师?>>> 2009年买的神舟的本本 fn+f9, xp系统; 触摸板, 对笔记本来说真的很鸡肋, 时常因为打字不小心触碰, 跑飞了光标; 转载于 ...
最新文章
- PXE安装CentOS
- python安装步骤3.7.2-python安装步骤_python 3.7.2安装教程
- mysql+monitor+下载_详解MySQL监控工具 mysql-monitor
- linux的各种版本,各种版本Linux系统下载
- C++字符输入getchar()和字符输出putchar()
- 力扣长度最小的子数组
- 文本标点英文对齐_电脑健盘中的所有英文组合意思超值解释建议收藏
- ios捕捉键盘view
- Salesforce删除数据时出现Insufficient privileges的可能原因
- my97Date如何多选日期且无重复日期
- 修改Firebug字体
- linux子目录大小限制,如何解决linux子目录的数量限制?
- woocommerce产品选项描述修改_WooCommerce微信小程序直播功能接入指引
- Java多线程编程核心技术 (pdf完整版)
- 玩转硬件|6种修复U盘损坏的方法教程介绍,快去试试吧
- go语言 调用接口的方法
- python sql语句换行_python一行sql太长折成多行并且有多个参数的方法
- MyEclipse 10.5下载地址及破解方法
- NO.54——基于scrapy的P站爬虫
- 探索式测试之隐喻(种植)
热门文章
- android otg主从切换,一种自动切换OTG设备主从模式下的Vbus电压的方法与电路与流程...
- 【Python】安装PIL (Python Imaging Library )
- uva10635Prince and Princess(LIS)
- arcgis栅格缺值填补
- Linux安装 VMware tools 工具的方法(转,已测试成功)
- numpy之vstack()、hstack()
- windows下的grep
- OpenCV 图像清晰度评价(相机自动对焦)
- 使用AI技术获取图片文字与识别图像内容
- mysql pga_PGA概述