WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Synaptics Touch Pad - Configure Tapping  (Read 4495 times)

Offline RYTCL

  • Jr. Member
  • **
  • Posts: 55
Synaptics Touch Pad - Configure Tapping
« on: November 28, 2020, 05:35:49 PM »
DESIRE :Configure TouchPad to support TAPPING at boot-up without manual intervention. 

Setup:

Laptop : HP Pavilion X360
Touchpad : Synaptics


~> xinput
â¡ Virtual core pointer                       id=2   [master pointer  (3)]
â   â³ Virtual core XTEST pointer                 id=4   [slave  pointer  (2)]
â   â³ SynPS/2 Synaptics TouchPad                 id=10   [slave  pointer  (2)]


squiggly characters does show up on the terminal window.


Extensions :   tce/onboot.lst 

Xorg-7.7.tcz
libinput.tcz
xf86-input-libinput.tcz
xf86-input-synaptics.tcz


I can enable TAPPING by manually running my own "tp.sh" script after bootup

Script : tp.sh


#!/bin/sh -x

synclient  TapButton1=1  #-- One   Finger Tap - Left   Mouse Button
synclient  TapButton2=3  #-- Two   Finger Tap - Right  Mouse Button
synclient  TapButton3=2  #-- Three Finger Tap - Middle Mouse Button



You can  test if TAPPING works at the following URL:

https://gutool.com/test-mouse/



Mouse tester

How to detect the failure of the mouse?

This is a mouse button click test tool. How to test my mouse? Click the mouse in the following panel, and remember to click on the number of clicks, the number of clicks and the number of tools statistics are consistent. If you do not agree that your mouse may be is broken.

Click the Left mouse button for 2 times.

Click the Middle mouse button for 4 times.

Click the Right mouse button for 6 times.


Corresponding Mouse button counter goes up every time you TAP  with 1,2 or 3 fingers.

 I have tried to configure
FILE :  /usr/local/share/X11/xorg.conf.d/70-synaptics.conf

Code: [Select]
Section "InputClass"
        Identifier "touchpad catchall"
        Driver "synaptics"
        MatchIsTouchpad "on"
        Option "TapButton1" "1"
        Option "TapButton2" "3"
        Option "TapButton3" "2"
EndSection

XORG config file modification does not seem to be working or I am not sure, how to test it .

Questions:

1.  With LIBINPUT and XORG, am I loading all the required extensios to get TouchPad tapping working properly ?
2.  I have read that Synaptics is already supported with Xorg,  do I still need xf86-input-synaptics.tcz ?
3.  I tried to backup  the above 70...conf file by specifying it in  /opt/.filetool.lst - After bootup, I still had to go with the manual option.
4.  I tried adding "tp.sh" to /opt/bootlocal.sh"  script.   SYNCLIENT failed with some error.

Any suggestions...
“Success is not the key to happiness, happiness is the key to success.  If you love what you are doing, you will be successful.”

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11213
Re: Synaptics Touch Pad - Configure Tapping
« Reply #1 on: November 28, 2020, 05:49:49 PM »
Hi RYTCL
... 4.  I tried adding "tp.sh" to /opt/bootlocal.sh"  script.   SYNCLIENT failed with some error. ...
1.Things that need to run before a GUI are started (like kmaps) should go into  /opt/bootsync.sh.
2.Things that need to run after a GUI are started (like starting a GUI app) should go into  ~/.X.d.
3. Things that are not sensitive to when they are started can go into  /opt/bootlocal.sh  which runs in the background.

Your script should probably be run after Xorg is up. That means choice number 2.
Copy your  tp.sh  script to  ~/.X.d  and remove the  #!/bin/sh -x  line. Once Xorg is up, the  ~/.xsession  script will
execute the commands in that file line by line.

Offline RYTCL

  • Jr. Member
  • **
  • Posts: 55
Re: Synaptics Touch Pad - Configure Tapping
« Reply #2 on: November 28, 2020, 07:44:39 PM »
...
Your script should probably be run after Xorg is up. That means choice number 2.
Copy your  tp.sh  script to  ~/.X.d  and remove the  #!/bin/sh -x  line. Once Xorg is up, the  ~/.xsession  script will
execute the commands in that file line by line.

Rich, Thank You.  Your suggestion worked. 


Here is the output from /var/log/Xorg.0.log.  It looks like it is executing the 'InputClass' section from xorg-synaptics.conf file.   Wondering, why my changes were not accepted here.  There must be a different CONF file that we may need to modify.


[    46.258] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/event8)
[    46.258] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "libinput touchpad catchall"
[    46.258] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "touchpad catchall"
[    46.258] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "Default clickpad buttons"
[    46.258] (II) Using input driver 'synaptics' for 'SynPS/2 Synaptics TouchPad'

“Success is not the key to happiness, happiness is the key to success.  If you love what you are doing, you will be successful.”

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11213
Re: Synaptics Touch Pad - Configure Tapping
« Reply #3 on: November 28, 2020, 09:01:03 PM »
Hi RYTCL
Maybe this thread is of some help:
http://forum.tinycorelinux.net/index.php/topic,23845.0.html

Offline RYTCL

  • Jr. Member
  • **
  • Posts: 55
Re: Synaptics Touch Pad - Configure Tapping
« Reply #4 on: November 29, 2020, 08:56:13 AM »
Rich -  "Xorg Configure Touchpad" thread helped and thanks again...

Here is a summary of my setup to get TAPPING working.


File : tce/onboot.lst


Xorg-7.7.tcz       
libinput.tcz
xf86-input-libinput.tcz
xf86-input-synaptics.tcz



File : /usr/local/share/X11/xorg.conf.d/70-synaptics.conf


Section "InputClass"
        Identifier "70-Synaptics - RY touchpad catchall RY"
        Driver "synaptics"
        MatchIsTouchpad "on"
        Option "TapButton1" "1"
        Option "TapButton2" "3"
        Option "TapButton3" "2"
EndSection


Add CONF directory to BACKUP file list
File : /opt/.filetool.lst


usr/local/share/X11/xorg.conf.d/


Testing
o Click EXIT ICON --> Exit to Prompt
o At the command prompt, type "startx"  to relaunch Windows
o Check if TAPPING works as per your configuration
o Check /var/log/Xorg.0.log

/var/log> grep -i -e synaptic -e tap Xorg.0.log

...
[ 32662.832] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/event8)
[ 32662.832] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "40 - libinput touchpad catchall"
[ 32662.832] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "70-Synaptics - RY touchpad catchall RY"
[ 32662.832] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "70-Synaptics - Default clickpad buttons"
[ 32662.832] (II) LoadModule: "synaptics"
[ 32662.832] (II) Loading /usr/local/lib/xorg/modules/input/synaptics_drv.so
[ 32662.833] (II) Module synaptics: vendor="X.Org Foundation"
[ 32662.833] (II) Using input driver 'synaptics' for 'SynPS/2 Synaptics TouchPad'
[ 32662.833] (**) SynPS/2 Synaptics TouchPad: always reports core events
[ 32662.870] (II) synaptics: SynPS/2 Synaptics TouchPad: found clickpad property
[ 32662.870] (--) synaptics: SynPS/2 Synaptics TouchPad: x-axis range 1380 - 5672 (res 44)
[ 32662.870] (--) synaptics: SynPS/2 Synaptics TouchPad: y-axis range 1192 - 4722 (res 61)
[ 32662.870] (--) synaptics: SynPS/2 Synaptics TouchPad: pressure range 0 - 255
[ 32662.870] (--) synaptics: SynPS/2 Synaptics TouchPad: finger width range 0 - 15
[ 32662.870] (--) synaptics: SynPS/2 Synaptics TouchPad: buttons: left double triple
[ 32662.871] (--) synaptics: SynPS/2 Synaptics TouchPad: Vendor 0x2 Product 0x7
[ 32662.871] (**) Option "TapButton1" "1"
[ 32662.871] (**) Option "TapButton2" "3"
[ 32662.871] (**) Option "TapButton3" "2"
...


o Repeat the process, till issues are addressed and TouchPad works to your heart's content
o Reboot and check Backup / Restore of CONF files,  check TouchPad works also...

o Last but not the least - Thank TinyCore team...
“Success is not the key to happiness, happiness is the key to success.  If you love what you are doing, you will be successful.”

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14535
Re: Synaptics Touch Pad - Configure Tapping
« Reply #5 on: November 30, 2020, 03:08:57 AM »
File : tce/onboot.lst


Xorg-7.7.tcz       
libinput.tcz
xf86-input-libinput.tcz
xf86-input-synaptics.tcz


Tinycore extensions use recursive dependencies, so you only need to list Xorg-7.7 and xf86-input-synaptics

Note also that I'm pretty sure you can configure the touchpad with libinput/xf86-input-libinput without needing xf86-input-synaptics