Disable touchpad tap to click?
#3
The following script assumes that  "xinput"  is installed;  it is installed on the original image but may not be present in the newer image.  To check try:

sudo  xinput  list

To install try:

sudo  apt-get  install  xinput

The following script has been modified to run on the 14" pinebook.  It may have to be modified again for the 11.6" pinebook;  

touchpad.sh
Code:
#! /bin/sh #  touchpad.sh # #  Mark H. Harris #  2014/08/07 #  2017/06/19  (pinebook port) # #  Enable or Disable the TouchPad  based on xinput #   #  notes:  assumes 'one' touchpad #          assumes xinput    see man xinput # #  usage: #          touchpad on|1        (enables) #          touchpad off|0       (disables) # # # get the touchpad device number TDEVICE for line in $(xinput list |grep -i "hailuck" |grep -i "pointer"); do   for word in $(echo $line |grep -i "id"); do      TDEVICE=$(echo $word |cut -d'=' -f2)   done done # get Device Enabled status for touchpad for line in $(xinput --list-props $TDEVICE |grep "Device Enabled"); do   TPRESTAT=$(echo $line |cut -d':' -f2 |cut -d' ' -f2) done # set prestatus keyword based on numerical data if [ "$TPRESTAT" = "1" ]; then   PSTATUS="enabled" elif [ "$TPRESTAT" = "0" ]; then   PSTATUS="disabled" else   PSTATUS="unknown" fi # get the touchpad name by device number TNAME=$(xinput list --name-only $TDEVICE) # turn enable or disable the device per input parms echo " " if [ "$1" = "on" ] || [ "$1" = "1" ]; then   xinput --enable $TDEVICE   echo "Enabling" $TNAME "ID="$TDEVICE "..."   echo " " elif [ "$1" = "off" ] || [ "$1" = "0" ]; then   xinput --disable $TDEVICE   echo "Disabling" $TNAME "ID="$TDEVICE "..."   echo " " else   echo $TNAME "ID="$TDEVICE "(currently "$PSTATUS")"   echo " "   echo "touchpad on    (enables)"   echo "touchpad off   (disables)"   echo " " fi # get current Device Enabled status for touchpad for line in $(xinput --list-props $TDEVICE |grep "Device Enabled"); do   TCURSTAT=$(echo $line |cut -d':' -f2 |cut -d' ' -f2) done # display status of touchpad if the status has changed if [ "$TCURSTAT" = "1" ]; then   TSTATUS="enabled" elif [ "$TCURSTAT" = "0" ]; then   TSTATUS="disabled" else   TSTATUS="unknown" fi if [ $PSTATUS != $TSTATUS ]; then   echo "Device Status:" $TNAME "ID="$TDEVICE "("$TSTATUS")"   echo " " else   echo "TouchPad Status ("$TSTATUS") Unchanged"   echo " " fi


To disable the touchpad:

./touchpad.sh  off

To enable the touchpad:

./touchpad.sh  on


Notes:  It may be necessary to run the script with sudo.

I just spoke with Pete, looks like the 11.6" hardware also reports as HAILUCK co.ltd  pointer,  also device 8 by default;  so this script should also run on the 11.6" touchpad, although I have not tried it yet   Pete just successfully tested the script on his 11.6" pinebook with good results, unmodified.

The tap-to-click feature is a hardware feature of the touchpad;  essentially, tap-to-click is a "button-1" event !   In order to disable it you would have to change the mouse properties so that button-2 is button-1, and button-1 is not active (ignored).
marcushh777    Cool

please join us for a chat @  irc.pine64.xyz:6667   or ssl  irc.pine64.xyz:6697

( I regret that I am not able to respond to personal messages;  let's meet on irc! )


Messages In This Thread
RE: Disable tap to click? - by MarkHaysHarris777 - 06-19-2017, 07:50 PM
RE: Disable touchpad tap to click? - by MarkHaysHarris777 - 06-19-2017, 09:11 PM
RE: Disable touchpad tap to click? - by pfeerick - 06-21-2017, 03:12 AM
RE: Disable touchpad tap to click? - by pfeerick - 06-21-2017, 06:23 PM
RE: Disable touchpad tap to click? - by combs - 08-04-2017, 08:18 PM
RE: Disable touchpad tap to click? - by NoSalt - 04-08-2019, 02:40 PM
RE: Disable touchpad tap to click? - by ab1jx - 02-09-2020, 02:20 PM
RE: Disable touchpad tap to click? - by jezek - 02-09-2020, 02:35 PM
RE: Disable touchpad tap to click? - by ab1jx - 02-09-2020, 03:39 PM
RE: Disable touchpad tap to click? - by ab1jx - 02-09-2020, 04:42 PM
RE: Disable touchpad tap to click? - by ab1jx - 04-27-2020, 06:25 PM
RE: Disable touchpad tap to click? - by ab1jx - 04-27-2020, 07:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to enable touchpad natural scrolling? plumlis 3 12,901 07-19-2020, 02:46 PM
Last Post: Martin Gruber
  Proof of concept script to disable the touchpad while typing daid 21 48,212 02-25-2018, 06:47 PM
Last Post: pfeerick
Sad touchpad edges scrolling kurai021 11 23,358 07-09-2017, 05:56 PM
Last Post: Luke

Forum Jump:


Users browsing this thread: 1 Guest(s)