LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-18-2010, 10:52 PM   #1
Synderesis
LQ Newbie
 
Registered: Dec 2010
Posts: 24

Rep: Reputation: 0
Question How to configure touchpad?


Hi! So after several hours I've finally gotten slackware running! But the only thing I don't understand is how to configure the touchpad. In Ubuntu you can do it in the GUI, but I have no idea how to do it via Slackware.

I mostly want it to disable tap to click when I type, and enable horizontal and vertical scrolling. I've tried using synclient but that doesn't seem to work, and in any case I think that is only supposed to be a temporary fix anyway.

Oh, I guess this is not really on topic, but can someone teach me how to update packages I've installed? I installed wicd to use wireless for my laptop, but according to their website, it's best that I update it to the newest version because of some bug.

Thanks!
 
Old 12-18-2010, 11:31 PM   #2
fmiser
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 0
Probably you will need to make changes is xorg.conf. Try first looking in /etc/X11/.

The latest versions of xorg don't really need an xorg.conf, so if it's not there don't panic.

Sorry, I don't remember (and my notes are too sketchy) where I learned the possible parameter.

That said, on my old hardware running old Debian I have the following in my xorg.conf

Code:
Section "InputDevice"
        Identifier      "Synaptics Touchpad"
        Driver          "synaptics"
        Option          "SendCoreEvents"        "true"
        Option          "Device"                "/dev/psaux"
        Option          "Protocol"              "auto-dev"
        Option          "HorizScrollDelta"      "0"

## These are my additions
        Option          "PalmDetect"         "on"
        Option          "PalmMinWidth"       "5"
        Option          "CoastingSpeed"      "10"
        Option          "CircularScrolling"  "on"
        Option          "CircScrollTrigger"  "0"
        Option          "EmulateMidButtonTime" "100"
        Option          "MaxTapTime"           "200" #ms, more is not a tap
        Option          "MaxTapMove"           "0" # no single-click taps
        Option          "LeftEdge"             "1700"
        Option          "RightEdge"            "5300"
        Option          "TopEdge"              "1700"
        Option          "BottomEdge"           "4200"
        Option          "FingerLow"            "20"
        Option          "FingerHigh"           "60"
        Option          "VertScrollDelta"      "100"
        Option          "MinSpeed"             "0.0001"
        Option          "MaxSpeed"             "0.2"
        Option          "AccelFactor"          "0.005"
        Option          "SHMConfig"            "on"
 
Old 12-19-2010, 01:00 AM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,377

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
Configuring the synaptics driver for your touchpad will depend on the version of Slackware that you have installed.
For the stable 13.1 release:
From CHANGES_AND_HINTS.TXT
Quote:
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.
For the development 13.1-current release:
From CHANGES_AND_HINTS.TXT
Quote:
The version of Xorg in Slackware -current will not (in most cases) require
an /etc/X11/xorg.conf file at all. Input hotplugging is no longer done
using hal; instead, it now uses udev for input device detection and for
keyboard mapping.


/usr/share/X11/xorg.conf.d/ is the "packaged" configuration directory; all
files ending with ".conf" in this directory are used by the X server
unless there is an identically-named file in the local sysadmin directory.
The local sysadmin config directory is /etc/X11/xorg.conf.d/ - all files
ending with ".conf" in this directory are parsed.

There are several default config files in /usr/share/X11/xorg.conf.d/:
* 10-evdev.conf
a "catchall" rule for input devices using the evdev driver; this
should work for most hardware in the absence of a better driver
* 50-synaptics.conf
overrides the earlier 10-evdev.conf file and uses the synaptics
driver for all touchpads

* 50-wacom.conf
overrides the earlier 10-evdev.conf file and uses the wacom driver
for Wacom tablets
* 90-keyboard-layout.conf
this sample ("normal" en layout) keeps the "old" default of
allowing Zap'ing the Xserver.
If you need to modify any of these defaults, then copy the relevant file
from /usr/share/X11/xorg.conf.d/ to /etc/X11/xorg.conf.d/ and edit the
copy.
 
Old 12-19-2010, 03:05 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
On Slackware 13.1 the following worked to disable tap-to-click on a touchpad reported in /var/log/messages as
Code:
Synaptics Touchpad, model: 1, fw: 7.2, id: 0x1c0b1, caps: 0xd04771/0xa40000
Create /etc/hal/fdi/policy/11-x11-synaptics.fdi by
Code:
cp /usr/share/hal/fdi/policy/10osvendor/11-x11-synaptics.fdi /etc/hal/fdi/policy/
and edit /etc/hal/fdi/policy/11-x11-synaptics.fdi to (comments stripped for brevity):
Code:
<?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.TapButton1" type="string">0</merge>
    </match>
  </device>
</deviceinfo>
I do not know how to safely re-initialise HAL (it might upset X) so rebooted to effect the above changes.

If that works, here's a more ambitious sample with comments:
Code:
<?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>

        <!-- Disable tap click -->
        <merge key="input.x11_options.TapButton1" type="string">0</merge>

        <!-- Switch on shared memory, enables the driver to be configured at runtime -->
        <merge key="input.x11_options.SHMConfig" type="string">true</merge>

        <!-- Disable vertical scrolling when dragging along the right edge -->
        <merge key="input.x11_options.VertEdgeScroll" type="string">false</merge>

        <!-- Enable vertical scrolling when dragging with two fingers anywhere on the touchpad -->
        <merge key="input.x11_options.VertTwoFingerScroll" type="string">true</merge>

        <!-- Enable horizontal scrolling when dragging with two fingers anywhere on the touchpad -->
        <merge key="input.x11_options.HorizTwoFingerScroll" type="string">true</merge>

    </match>
  </device>
</deviceinfo>
With SHMConfig set to true you can use shmclient's -m option to experiment more directly. For example, shmclient -m showed that the above model did not detect two-finger scrolling.

EDIT: using the above methods, no X configuration changes were necessary.

Last edited by catkin; 12-19-2010 at 03:10 AM. Reason: clarity
 
Old 12-19-2010, 03:23 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by Synderesis View Post
Oh, I guess this is not really on topic, but can someone teach me how to update packages I've installed? I installed wicd to use wireless for my laptop, but according to their website, it's best that I update it to the newest version because of some bug.
Having multiple questions per thread can be confusing so is better avoided.

If you have just started with Slackware you may like to browse a collection of Slackware links for information on upgrading and many other questions that will come. A good starting place is LQ's collection of Slackware links.

Further helpful links (maybe all listed in LQ's collection of links):
 
Old 12-19-2010, 07:09 AM   #6
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,377

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
Quote:
With SHMConfig set to true you can use shmclient's -m option to experiment more directly. For example, shmclient -m showed that the above model did not detect two-finger scrolling.
I think that should be synclient rather than shmclient.

For package updates look at:
upgradepkg - The official Slackware script by Patrick Volkerding for upgrading a package.
pkgtool - The official Slackware script by Patrick Volkerding for configuring Slackware, that incorporates upgradepkg.
slackpkg - The official Slackware application by PiterPunk for syncing your Slackware installation with an official tree.

There are also third party tools (e.g. slaptget, swaret) for doing this that I personally do not use or recommend.
 
Old 12-19-2010, 07:29 AM   #7
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Rep: Reputation: 142Reputation: 142
You can also use this synclient GUI to configure your touchpad:
http://slackbuilds.org/repository/13...m/flSynclient/

EDIT:

Even better if you're a KDE user:
http://slackbuilds.org/repository/13.../kcm_touchpad/

Last edited by piratesmack; 12-19-2010 at 07:40 AM.
 
Old 12-19-2010, 07:44 AM   #8
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by allend View Post
I think that should be synclient rather than shmclient.
Oops! Thanks for the correction
 
Old 12-19-2010, 07:59 AM   #9
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,377

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
Quote:
Oops! Thanks for the correction
LOL! You are welcome. Did the same thing myself very recently! :-) http://www.linuxquestions.org/questi...8/#post4196319
 
Old 12-19-2010, 03:19 PM   #10
Synderesis
LQ Newbie
 
Registered: Dec 2010
Posts: 24

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by allend View Post
Configuring the synaptics driver for your touchpad will depend on the version of Slackware that you have installed.
For the stable 13.1 release:
From CHANGES_AND_HINTS.TXT

For the development 13.1-current release:
From CHANGES_AND_HINTS.TXT
Umm.. the strange thing is, I don't even have that directory for /usr/share/X11. I also don't have a folder for xorg.conf.d/ but I do have a file for xorg.conf

I'm going to try the other method with HAL though and see how that goes
 
Old 12-19-2010, 04:13 PM   #11
Synderesis
LQ Newbie
 
Registered: Dec 2010
Posts: 24

Original Poster
Rep: Reputation: 0
The HAL stuff worked! But unfortunately for some reason my touchpad doesn't support multitouch even though it was advertised as such =[

Going to change to solved
 
Old 12-20-2010, 01:36 AM   #12
veeall
Member
 
Registered: May 2007
Location: Estonia
Distribution: Slackware64-current
Posts: 298

Rep: Reputation: 56
You can try if you can emulate two-finger scroll with:

Code:
synclient EmulateTwoFingerMinZ=35
synclient EmulateTwoFingerMinW=8
synclient VertTwoFingerScroll=1
Works here.
 
1 members found this post helpful.
Old 12-20-2010, 04:05 AM   #13
Synderesis
LQ Newbie
 
Registered: Dec 2010
Posts: 24

Original Poster
Rep: Reputation: 0
Wow that completely worked! How do you make it so that I don't have to enter the commands everytime I turn on the computer though? Should I have X11 make an xorg.conf file or am I supposed to do it from HAL?

I'm pretty new so all this stuff is confusing me =[
 
Old 12-20-2010, 08:22 AM   #14
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,377

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
Quote:
How do you make it so that I don't have to enter the commands everytime I turn on the computer though?
Do as catkin suggested in post#4, adding the parameters that you tested with synclient. i.e. Add these lines to /etc/hal/fdi/policy/11-x11-synaptics.fdi

Code:
<merge key="input.x11_options.EmulateTwoFingerMinZ" type="string">35</merge>
<merge key="input.x11_options.EmulateTwoFingerMinW" type="string">8</merge>
<merge key="input.x11_options.VertTwoFingerScroll" type="string">1</merge>
Make sure you add these lines to the active part of the file and not the comments section. In the XML format comments are delimited by <!-- -->
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I configure the 2.6.21.5 kernel for a synaptics touchpad? glass931 Linux - Kernel 4 09-19-2007 03:17 PM
Help - How can I configure my touchpad properly ? Christof999 Linux - Laptop and Netbook 4 05-12-2007 04:02 PM
how to configure touchpad mouse Ay-Karamba! Linux - Laptop and Netbook 17 12-13-2005 06:20 AM
no mouse - need to configure touchpad manually breenbaron Linux - Laptop and Netbook 2 03-28-2004 11:16 AM
laptop configure mouse and touchpad neilcpp Linux - Laptop and Netbook 4 11-16-2003 07:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration