Do you have a touchpad? I have one and all sorts of weird things would happen even if I was not touching it, due to extreme sensitivity. Since I normally use a mouse anyway I put up a little icon to disable the touchpad. Here is what I put in my Desktop directory:
Code:
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Toggle the touchpad
Name[en_US]=Toggle the touchpad
Exec=/home/paul/touch_toggle.sh
Comment[en_US]=
Terminal=false
Here is the script:
Code:
#
# tp_toggle
#
# Toggle the touchpad on/off.
# Get the id number of the touchpad.
tp_id=`xinput list | grep -i touchpad | awk '{ print $6 }' | sed 's/id=//'`
# Find out whether the touchpad is enabled or not.
tp_enabled=`xinput list-props $tp_id | grep Device\ Enabled | awk '{ print $4 }'`
if [ $tp_enabled = 0 ]
then
# The touchpad is currently disabled, so turn it on.
xinput set-prop $tp_id "Device Enabled" 1
echo "Touchpad now on."
elif [ $tp_enabled = 1 ]
then
# The touchpad is currently enabled, so turn it off.
xinput set-prop $tp_id "Device Enabled" 0
echo "Touchpad now off."
else
echo "tp_toggle: Could not get touchpad status from xinput."
exit 1
fi
I didn't code it myself, just found it somewhere and it worked for me.
Bookmarks