Can I disable glide pad laptop mouse?

Todd And Margo Chester toddandmargo at gmail.com
Sat May 21 05:08:11 CEST 2011


>
> On 05/11/2011 08:14 PM, Todd And Margo Chester wrote:
>> On 05/11/2011 04:46 PM, Marshall Neill wrote:
>>> Try this, it worked for me when I ran XFCE.   If it does the trick 
>>> then just go to Settings and Startup Applications and add it.    
>>> Don't forget to add the &  to the end of the command
>>> HTH
>>>
>>
>> Hi Marshall,
>>
>> Did you forget to attach the fix?
>>
>> -T

On 05/11/2011 07:30 PM, Marshall Neill wrote:
>
> https://help.ubuntu.com/community/SynapticsTouchpad
>

Hi Marshal,

I put the following script into my Xfce startup:

<code>
#!/bin/bash -x
#Disable the [annoying] Slide Pad mouse

DeviceStr="`xinput list | grep -i touchpad | awk '{print $6}'`"
DeviceID="`echo $DeviceStr | sed -e 's/id=//'`"
xinput set-prop $DeviceID "Device Enabled" 0
echo "touchpad mouse disabled"
echo ""
</code>

Works under Fedora Core 14, but not under CentOS 5.6 due
to a qt3 dependency problem.

I do suppose you could get rid of the "sed" [from hell] command
by modifying the "awk" command:

       echo "aaa bbb ccc id=5" |  awk -F "id=" '{print $2}'

Note the $2, not $5 and no "id=" gets printed.  It is all
in the "-F" parameter.

Thank you for the help.  My customer is tickled.

-T



More information about the Xfce mailing list