---
title: "完美解决ubuntu的触摸板问题"
author: "cjmiou"
date: "2011-03-24T07:26:50Z"
tags: []
categories: ["操作系统"]
slug: "ubuntu"
draft: true
lastmod: "2011-04-05T22:13:54Z"
id: 973349
url: "https://cjmiou.iteye.com/blog/973349"
---

一直被Ubuntu下没有办法完美禁用触摸板而郁闷，后来在网上找到一个命令可以禁用它

sudo modprobe -r psmouse

但每一次开机后都要打上一次这个命令实在让人郁闷，后来查了一下发现可以让ubuntu在启动完毕后执行一些自定义的脚本，所以搞定了这个问题。

 

 

1、sudo vim /etc/rc.local

在文件内添加多一行代码 sudo modprobe -r psmouse修改后的文件如下：

 

\# By default this script does nothing.

sudo modprobe -r psmouse

exit 0

保存退出即可