A560在ubuntu下禁用触摸板

 

      由于A560用的是Sentelic的触摸板,不是一般的Synaptic,其linux下驱动不是很完善,被系统识别为一般ps/2鼠标,不能在系统-首选项-鼠标中出现触摸板标签,不能禁用,所以打字的时候经常误触,导致跳来跳去。在网上找到了几个解决办法,罗列如下:

方法一:
The awesome part is: The Ubuntu team has included the drivers for the Sentelic Touchpad in the current kernel for 10.04 version! So all you have to do is install the configuration utility.

下载FSPC:
Download FSPC through this link:
http://sourceforge.net/projects/fsp-lnxdrv/
Install the software and run with the following command:

安装完调用,可以设置了
sudo fspc
(if you don't do the sudo it won't save your preferences in the utility).
但是设置不能保存,系统重启之后,又还原了,下面解决。
EDIT: If you did those steps, you can realize that after you reboot, it won't save your preferences, so here's a tutorial to fix this issue. After you install FSPC as above do the following steps:
#1- Open Gedit Text Editor and copy-paste the following (in red):

打开Gedit新建,键入下列内容
EnableOnPadClick=0
EnableVScr=1
EnableHScr=1
Acceleration=2


Note that you can change this settings, as "0" means "off" and "1" means "on", except for "acceleration", because the number means how much sensible it is. This are my settings (no click on touchpad, vertical scroll, horizontal scroll, and sensibility 2).

#2 - Save your preference file as "fspc.ini", in the following directory:
[username]/fspc/ - Just create a fspc folder in you personal folder.
存为fspc.ini 放在你的home目录下一个叫fspc的文件夹里面。
#3 - Rename you "fspc" folder to ".fspc" - It should make the folder dissapear after you press F5 key, but that's the way, ".something" makes the folder invisible.
你可以在这个文件夹前面加一点“.”,将其隐藏。
不过现在第1、2、3步都不用做了,因为发现驱动自己建立了这么一个文件在这个地方。你最多修改下就行了。

#4 - Open Gedit again and now you paste the following:
#! /bin/bash
sudo fspc -t -l ~/.fspc/fspc.ini

再建立一个文件,文件内容为上面红字。
#5 - Save this new file as "start-touchpad" in your personal folder (the one that has your user name).
名为 "start-touchpad",放在你的home目录(下面的命令以文件在home目录为基础)
#6 - Right-button click your new created file -> properties -> permissions; and check the "execute as a program" 'or something like that' box (sorry, my ubuntu is in portuguese), now you close the properties.
将文件的属性改为“允许以程序执行文件”
#7 - Open up a new terminal and do the following commands:

打开终端,键入下面命令
sudo cp start-touchpad /usr/bin/
sudo visudo

第一行是复制到那个目录下,第二行是编辑sudo的配置文件。
#8 - After the "sudo visudo" command, it should open an "in terminal" text editor, and you should paste the following line at the END of the file (it should be the last line):
[username] ALL=(ALL) NOPASSWD: /usr/bin/fspc
Change the "[username]" thing to your actually username. As in my example:
trueelement ALL=(ALL) NOPASSWD: /usr/bin/fspc
添加上面红色一行在文件末尾,把"[username]" 替换为你的登录名,例如上一行的。
#9 - Now you press Ctrl+S to save your file and don't save the file as sudoers.tmp! Remove the TMP extension, so the file will be "/etc/sudoers", and confirm as it asks you to do.
保存,你直接选择退出,它会问你是否保存的,选择是,然后把那个名字末尾的“.tmp”去掉,保存即可。
Now for the grand finale:
#10 - In the top of your screen go to System->Preferences->Startup Applications (or Sessions, depending on your ubuntu version). Add a new program: as the following:

然后选择 系统--首选项--启动应用程序,添加,按下面,主要是第二行对就行。
NAME: Anything...
COMMAND: start-touchpad
COMMENTARY: it doesn't matter

Now, when you reboot your pc, the touchpad will be exactly as you configured!
If you want to see the future results without rebooting do the following command in the terminal:
start-touchpad
重启,可看到效果,如果你不想重启,直接start-touchpad即可。
Good look to you guys! And cheers to linux!

 

方法二:

    A:

        I have this in ~.profile
        sudo rmmod psmouse

        and then in sudoers - accessed by sudo visudo %admin ALL = NOPASSWD:
        /sbin/rmmod

        This kills the touchpad at my login.



    Thanks very much Simon, that works perfectly!


   B:后面有人提出异议,说他的方法更好,还骂了上面人一句,很尖锐啊!呵呵
It may work but that is an extremely apallingly bad way of dealing with
the problem and indicates an ignorance of how to configure the system to
solve the issue.

I previously thought Simon Jones had some basic knowledge of the correct
way to approach system problems.

Just create a file

/etc/modprobe.d/blacklist-touchpad.conf

with the single line

blacklist psmouse


This will prevent the kernel module psmouse from being loaded in the first
place, so that the user will not need to unload or try to unload it
every time the user starts a login shell, and no need to grant ALL users
special powers for rmmod which leads to a gaping security hole.

方法三:

The sentelic driver is already in 10.04 lucid.
The problem, is that for whatever reason the "touchpad" tab does not appear on the mouse configuration menu.

The easiest way to disable tap to click using lucid, is to do the following:

sudo su
echo -n c > /sys/devices/platform/i8042/serio1/flags
(sudo su 进入root命令行)

tap to click will now be disabled. For some reason, this did not work for me when I tried sudo, hence the sudo su before executing the echo command.

Also, before running this command, it may be a good idea to run:

cat /sys/devices/platform/i8042/serio1/flags

and double check that all that's in there is a single "C". The capital C means tap to click is enabled, and a small "c" indicates that the tap to click feature is disabled.
(用于检测是否启用点击功能,大写c的表示启用,小写的表示关闭)
The same principle can be applied to disable vertical scroll:(同理,卷动功能的开关)

sudo su
echo -n 0 > /sys/devices/platform/i8042/serio1/vscroll

In this case, "1" means that vertical scroll is enabled, and "0" means disabled. 

Toss the commands in /etc/rc.local and they'll be executed on startup.
最后把这命令扔进 /etc/rc.local 即可,系统启动执行。

 

前面几个方法都试了,确实可行,现在用的是第一个方法。只禁用了触摸板的点击功能,触摸板还能移动鼠标,但不能点击了!

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值