On 07/29/2016 11:11 AM, Doug wrote:
On 07/29/2016 10:34 AM, thomas cameron wrote:
> On 07/28/2016 06:52 PM, Ed Greshko wrote:
>> FWIW, my Acer Laptop reports "Couldn't find synaptics properties. No
>> synaptics driver
>> loaded?" when using "synclient -l". Yet my touchpad works just
>> fine. KDE has a setting
>> for disabling the touchpad, but it doesn't work. Lucky for me my
>> laptop has a "Fn+F7" key
>> combination which turns off the touchpad hardware wise.
> Thanks, Ed!
>
> Mine is a Synaptics, and it works great with "synclient TouchpadOff=1"
> so I think I'm good!
>
> TC
> -
There used to be a program called synaptik--notice the spelling--that
would turn the scratchpad off.
See if you can find it anywhere.
Here's a script I "appropriated" that works on my Dell laptop:
------------------------ CUT HERE ------------------------------------
#!/bin/bash
# toggleTouchpad by Brendon Dugan
# Toggles a touchpad on or off depending on it's current state or CLI
# argument
#
# To configure, run the command 'xinput list' in terminal and identify
# your touch pad.
#
# Using the output of the above command, change the touchpadString
# variable to a substring of your touchpad's description that is unique
# to that device.
#
# To run, simply type 'toggleTouchpad' to toggle your touchpad on or
# off, or 'toggleTouchpad on' to explicitly turn your touchpad on, or
# 'toggleTouchpad off' to explicitly turn it off.
#
# Enjoy!
#
# Note from Rick Stevens: "My laptop uses an AlpsPS/2 touchpad, not a
# Synaptics one, so that's why the string below is what it is."
touchpadString="AlpsPS/2 ALPS GlidePoint"
touchpadID=$(xinput list | grep "$touchpadString" | awk -F " "
'{print
$7}' | awk -F "=" '{print $2}')
touchpadEnabled=$(xinput list-props $touchpadID | grep "Device Enabled"
| awk -F ":" '{print $2}')
# Check for arguments on the command line
if [ $# -eq 1 ]; then # Any arguments?
arg1=$(echo $1 | tr [:upper:] [:lower:]) # Yes, convert to lower case
cliArg=1 # Set flag that we have one
else # There is no argument.
cliArg=0 # Clear flag
fi
if [ $cliArg -eq 1 ]; then # Did we get an argument?
if [ $arg1 = 'on' ]; then # Yes, was it "on"?
xinput --set-prop $touchpadID "Device Enabled" 1
# Yes, enable the touchpad
elif [ $arg1 = 'off' ]; then # No, was it "off"?
xinput --set-prop $touchpadID "Device Enabled" 0
# Yes, disable the touchpad
else # None of the above, so...
sleep 1 # ...sleep one second, exit
fi
else # No argument, toggle state
if [ $touchpadEnabled -eq 1 ]; then # Enabled now?
xinput --set-prop $touchpadID "Device Enabled" 0
# Yes, so disable it
else # Must be disabled, so...
xinput --set-prop $touchpadID "Device Enabled" 1
# ...enable it
fi
fi
------------------------ CUT HERE ------------------------------------
This is saved as "/usr/local/bin/toggleTouchpad", mode 755 and owned by
root:root (/usr/local/bin is part of all of my users' PATHs).
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital ricks(a)alldigital.com -
- AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 -
- -
- Vegetarian: Old Indian word for "lousy hunter" -
----------------------------------------------------------------------