Disabling the Laptop TouchPad in Ubuntu Linux
来源:互联网 发布:斗鱼安卓手机直播软件 编辑:程序博客网 时间:2024/05/17 01:18
March 27th, 2008 by rvdavid
http://www.rvdavid.net/disabling-the-laptop-touchpad-in-ubuntu-linux/
Here’s a quick tip on disabling the touchpad on the Ubuntu Linux distro. It’s been bugging me for a while now that I have to use a non-gnome native solution to disabling my touchpad qsynaptics written in QT.
For those who are impatient and just want the quick instructions, I recommend that you install synclient, and issue asynclient TouchPadOff=1usually SHMConfig is already on and this would be enough – in addition, synclient is usually installed by default (it is in Ubuntu Gutsy Gibbon).
Also, syndaemon can be activated pretty much by issuing a syndaemon -d. This disables the touchpad automatically for you when you start using the keyboard.
If you’ve tried to do this and it does not work, I guess you’ll just have to read below.
Method 1: Using qsynaptics. (What I used to do)
qsynaptics as I mentioned above, is a QT application. It was written to configure the synaptic touch pad. If you are comfortable with this, then you can follow the steps below.
Step 1: install it through the repository:
$ sudo aptitude install qsynaptics
Step 2: Once you’ve installed it, you need to run the qsynaptics program through the terminal:
$ qsynaptics
This should load up the GUI for qsynaptics. There’s a fieldset that says “switch synaptics touch pad” with two radio buttons below it on | off.
Step 3: Select “off”
Loading the qsynaptics settings on startup
This config option gets saved, but you’ll have to add it as a startup program in Sessions settings.
So what you need to do is the following:
Step 4: Go to System >> Preferences >> Sessions. This should bring up the Session configuration screen.
Step 5: Click the “Add” button. This should bring up the “New Startup Program” form. Fill the fields in accordingly:
Name: Restore qsynaptics settings
Command: qsynaptics -r
Comment: Restore last qsynaptics settings
Method 2: Using synclient
synclient is a program that allows you to set the toucpad parameters on the fly.
For this to happen however, you will first need to edit your xorg.conf file. It won’t be major, but you should back up anyway (ALWAYS do a back up)
Enabling the SHMConfig setting
Step 1: Back up your xorg.conf file
$ sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf-backup
Step 2: Open up your systen’s xorg.conf file.
$ sudo vim /etc/X11/xorg.conf
Step 3: Find the input device section which has “Synaptics Touchpad” as the identifier.
Step 4: In this part of the confguraiton file, there should be an “Option” called “SHMConfig” followed by either “on” or “off” ->This setting needs to be set to “on”.
Step 5: Edit the file if necessary, save and exit from the editor. If you had to turn the setting on, you will need to restart your computer. If it was already on, then skip restarting.
And that’s it. You should be able to use synclient!
Review your options with synclient -l
Doing a synclient -l will display your current user settings.
rvdavid@notebook:~$ synclient -lParameter settings:LeftEdge = 1872RightEdge = 5072TopEdge = 1712BottomEdge = 4144FingerLow = 25FingerHigh = 30MaxTapTime = 180MaxTapMove = 220MaxDoubleTapTime = 180SingleTapTimeout = 180ClickTime = 100FastTaps = 0EmulateMidButtonTime = 75VertScrollDelta = 60HorizScrollDelta = 80VertEdgeScroll = 1HorizEdgeScroll = 0VertTwoFingerScroll = 0HorizTwoFingerScroll = 0MinSpeed = 0.0822368MaxSpeed = 0.197368AccelFactor = 0.00164474EdgeMotionMinZ = 30EdgeMotionMaxZ = 160EdgeMotionMinSpeed = 1EdgeMotionMaxSpeed = 304EdgeMotionUseAlways = 0UpDownScrolling = 1LeftRightScrolling = 1UpDownRepeat = 1LeftRightRepeat = 1ScrollButtonRepeat = 100TouchpadOff = 1GuestMouseOff = 0LockedDrags = 0RTCornerButton = 2RBCornerButton = 3LTCornerButton = 0LBCornerButton = 0TapButton1 = 1TapButton2 = 2TapButton3 = 3CircularScrolling = 0CircScrollDelta = 0.1CircScrollTrigger = 0CircularPad = 0PalmDetect = 1PalmMinWidth = 10PalmMinZ = 200CoastingSpeed = 0PressureMotionMinZ = 30PressureMotionMaxZ = 160PressureMotionMinFactor = 1PressureMotionMaxFactor = 1
To turn off the touchpad, you will need to modify the “TouchPadOff” setting and change it to zero “0″ instead of one “1″.
synclient lets you do this on the fly! Simply issue a synclient TouchPadOff=1 command and presto! Your touchpad is off.
As with method 1, you can add this to
Go to System >> Preferences >> Sessions. This should bring up the Session configuration screen.
Click the “Add” button. This should bring up the “New Startup Program” form. Fill the fields in accordingly:
Name: Disable touchpad
Command: synclient TouchPadOff=1
Comment: Disable TouchPad
You could also assign the command “synclient TouchPadOff=1″ to a shortcut key to turn the touch pad off and “synclient TouchPadOff=0″ to another shortcut key to turn the touch pad on.
Method 3: Using syndaemon
This method is probably the most elegant. When running in daemon mode, it disables the touchpad when you are using the keyboard and enables the touchpad when you stop typing.
Before doing this however you will need to verify that your the SHMConfigsetting is “on”and make sure that the toucpad is on. So if you have previously issued asynclient TouchPadOff=1command, you will need to enable your touchpad again by issuing asynclient TouchPadOff=0.The following steps will enable syndaemon.
Step 1: If not already, Install syndaemon
$ sudo aptitude install syndaemon
Step 2: Run syndaemon in daemon mode
$ syndaemon -d
Step 3: As with the previous two methods, you can enable this at startup by adding the command that starts syndaemon as a new startup program.
Go to System >> Preferences >> Sessions. This should bring up the Session configuration screen.
Click the “Add” button. This should bring up the “New Startup Program” form. Fill the fields in accordingly:
Name: run syndaemon daemon
Command: syndaemon -d
Comment: syndaemon daemon
- Disabling the Laptop TouchPad in Ubuntu Linux
- Middle Button Scroll and Disabling Touchpad on IBM Ultranav USB Keyboard SK-8845 – Ubuntu Linux 10.04 Lucid Lynx
- Disable touchpad in Linux
- Disabling disk caching in Ubuntu
- Hadoop Installation on a slow ubuntu laptop - Problem of the in-accessible "http://localhost:50030/jobtracker.jsp"
- Disabling the flood of kernel messages in Debian console
- Disabling the default routes
- laptop linux重装 指南
- touchpad dont work in kali
- Ubuntu关闭T440P的touchpad
- Turn your laptop screen off with a keyboard shortcut in Ubuntu Karmic
- Installed Ubuntu on my laptop~~~
- HowTo use linux laptop in presentations 【如何在Linux系统上使用投影仪】
- How To Improve Laptop Battery Life And Usage In Linux Using TLP
- Build the Android work environment in Ubuntu Linux
- Build the Android work environment in Ubuntu Linux
- Add a system call to the linux kernel in Ubuntu
- find the install path of some software in linux (ubuntu)
- 从员工离职后有想来的感想
- phpcms sphnix中文搜索的安装、配置、启动
- ABAP SELECT SUM函数用法
- Ubuntu 11.04 安装配置过程
- poj1573(简单的dfs)
- Disabling the Laptop TouchPad in Ubuntu Linux
- 某年某月多少天函数
- 电影剪辑的属性列表
- IT项目管理的六种错误思维
- Flex中a标签效果
- [苹果解密]创新是伟大公司诞生的源泉--Apple再度成为美国最大上市公司
- 创建我的第一个Android Hello Word程序与项目结构解说
- oracle笔记
- C#结构体和字节数组的转换