SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If you are using input hotplugging via HAL and a synaptics touchpad, then you
might need to copy /usr/share/hal/fdi/policy/10osvendor/11-x11-synaptics.fdi
to /etc/hal/fdi/policy/ and edit it to suit your needs. You can also use
synclient(1) to make changes "on the fly."
Also note that any touchpads that include actual buttons as part of the
touchpad hardware will not have tap-to-click enabled by default.
..then edit so "shared memory"..
Quote:
Switch on shared memory, enables the driver to be configured at runtime
<merge key="input.x11_options.SHMConfig" type="string">true</merge>
..is enabled, this is my file..
Quote:
<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
<device>
<match key="info.capabilities" contains="input.touchpad">
<merge key="input.x11_driver" type="string">synaptics</merge> <merge key="input.x11_options.SHMConfig" type="string">true</merge> <!-- Enable tap click by default: -->
<merge key="input.x11_options.TapButton1" type="string">1</merge>
<!-- Arbitrary options can be passed to the driver using
the input.x11_options property since xorg-server-1.5. -->
<!-- EXAMPLES:
Switch on shared memory, enables the driver to be configured at runtime
<merge key="input.x11_options.SHMConfig" type="string">true</merge>
Then you can control it with the command "synclient", I put.. synclient TouchpadOff=1
in my ~/.profile to turn it off.
After fighting this issue on a variety of laptops I currently just remove the psmouse module (as root) with
Code:
modprobe -r psmouse
and that stops the touchpad working.
On my previous laptop I tried a suggestion made to me in this forum of creating udev rules to react to the usb mouse being plugged or unplugged, disabling/enabling the touchpad accordingly using synclient. That was probably the best method except it didn't work if the USB mouse was plugged in before booting.
Last edited by mcnalu; 05-29-2010 at 01:48 AM.
Reason: extra info
Actually, I was disabling tapping by using "synclient MaxTapTime=0" in terminal console. But I had to do it after every reboot. The following was edited:
Quote:
<!-- Enable tap click by default: -->
<merge key="input.x11_options.TapButton1" type="string">1</merge>
to:
Quote:
<!-- Enable tap click by default: -->
<merge key="input.x11_options.TapButton1" type="string">0</merge>
Now the tapping function of the touchpad is disabled by default. My problem solved.
Stumbling upon this thread while trying to figure out how to disable my synaptics touch pad, since it picks up my typing vibrations and selects things randomly, etc., and is an overall pain in the you know what, I used mcnalu's solution of removing the psmouse module from the kernel, and it worked great, so I went ahead and made a script and called it tptoggle.
Then, since I am an xfce user, I selected "settings" from the xfce menu and then "keyboard" and then "application shortcuts" and I created a shortcut to the tptoggle script (had to put sudo in the command, to make it work) and bound it to the F9 key.
Now I can toggle it on and off with the F9 key and I'm happy.
Here is the tptoggle script, to copy and paste, save, and make executable with "chmod +x" if you so desire:
Code:
#!/bin/sh
if ! grep -wq psmouse /proc/modules ; then
/sbin/modprobe -q psmouse; else
/sbin/modprobe -r psmouse;
fi
Last edited by slac-in-the-box; 08-06-2010 at 01:06 PM.
Reason: corrected type-o
Alas, returning to my laptop after a momentary reprise, I discovered that the F9 toggle had stopped working; the reason was because when I made it, I had recently used the "sudo" command and still had root privileges, so the toggle worked until those privileges expired.
Therefore I made an amendment, and wrapped the command with "xterm -e" so that it can ask you for your password if it needs to. The line that got bound with the F9 key now reads as:
Code:
xterm -e sudo /usr/local/scripts/tptoggle
(naturally, that depends on my having saved the tptoggle script in /usr/local/scripts)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.