欢迎访问 生活随笔!

生活随笔

当前位置: 首页 >

笔记本开机进入ubuntu16.04自动关闭触摸板

发布时间:2023/12/20 38 豆豆
生活随笔 收集整理的这篇文章主要介绍了 笔记本开机进入ubuntu16.04自动关闭触摸板 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

环境:

ubuntu16.04(64位)

xfce4桌面

在/home/appleyuchi下新建一个文件turnoffmousepad.sh

写入以下代码:

#!/bin/sh modprobe -r psmouse

保存后关闭

chmod u+x  turnoffmousepad.sh


cd /etc

root权限下,编辑后的rc.local文件如下;

#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. /bin/su -l root -c "/home/appleyuchi/turnoffmousepad.sh"exit 0

关闭后保存。

重启电脑前可以先在终端中root权限下测试一遍:

/bin/su -l root -c "/home/appleyuchi/turnoffmousepad.sh"

如果生效了再重启看看生效没即可。

如此即可实现笔记本开机到ubuntu时自动关闭触摸板。


总结

以上是生活随笔为你收集整理的笔记本开机进入ubuntu16.04自动关闭触摸板的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。