2007年6月11日星期一

How to disable tap-clicking with your touchpad in Linux in a easy way

Lots of people have a love/hate relationship with their touch pad on their laptops. It’s great for speeding around your screen and doing lots of cool things with nary a mouse in site. It’s horrible when you accidentaly double-click that Quake 3 icon while your boss is strolling into the room.

Here’s a quick and easy guide to disabling tap-clicking and scrolling on your touchpad. With this little hack you’ll still have a mouse replacement, but will avoid Quake 3 inspired embarrassment.

First, you’ll need to edit your xorg.conf file. This is the file that controls your display, and oddly all of your input devices as well like your keyboard, mouse and…. touchpad. Open up a CLI (Applications-> Accessories-> Terminal) and let’s get down to business.

gksu gedit /etc/X11/xorg.conf

Now you’ve got your xorg.conf file open in an editor, let’s add one line too it. Look for this section in your xorg.conf file:

Section “InputDevice”
Identifier “Synaptics Touchpad”
Driver “synaptics”
Option “SendCoreEvents” “true”
Option “Device” “/dev/psaux”
Option “Protocol” “auto-dev”
Option “HorizScrollDelta” “0″
EndSection

Yours may have all of this stuff or it may have very little of it. The key points you want to look for are the Section and EndSection bits. Everything has to go between these two, and what we’re going to add is not exception.

See the Options above? We’re going to add an option. So cut and paste the following in there just above the EndSection portion:

Option “TouchpadOff” 2

Now save your file and exit Gedit. The next time you restart your laptop (or restart your X session) you’re touchpad will be click-less.

But perhaps this way is so complicated and sometimes it doesn't work! Then you should try this way:

For KDE:
1. Open KDE Control Center
2. Select Peripherals > Touch Pad
3. Select “Tapping” tab and uncheck “Enable Tapping”
4. Click “Apply”
Done

For Gnome:

sudo apt-get install gsynaptics

And go to System > Preferences > Touchpad

Done

0 评论: