[ltp] SOLVED: Synaptics touchpad: disable hardware buttons

Dmitry E. Mikhailov linux-thinkpad@linux-thinkpad.org
Mon, 05 Nov 2012 21:42:18 +0600


On Mon, 2012-11-05 at 16:43 +0200, Marius Gedminas wrote:
> On Thu, Nov 01, 2012 at 09:01:25AM +0600, Dmitry E. Mikhailov wrote:
> > I've recently 'upgraded' myself from an X60 to the mighty T61p with
> > WUXGA screen (too pity it's not FlexView, but good enough).
> > 
> > As I'm a heavy trackpoint user, I found it useful to configure  the
> > whole touchpad area for vertical scrolling. Good. But I keep
> > accidentally pressing touchpad's hardware left or right buttons  -
> > they're too close to the laptop's edge.
> > 
> > Is there any way to disable the hardware buttons on a Synaptics
> > touchpad?
> 
>     $ cat ~/bin/disable-touchpad-buttons
>     #!/bin/sh
>     # disables touchpad buttons on my thinkpad, leaving trackpoint buttons functional
>     # sadly(?) it also disables tap-to-click
>     xinput set-button-map "SynPS/2 Synaptics TouchPad" 0 0 0
> 
> Adding this to your session (or converting it to an xorg.conf.d file) so
> it runs automatically is left as an exercise for the reader
> 
> HTH,
> Marius Gedminas
How I'm happy!
Thank you!

$ cat /etc/hal/fdi/policy/tp-scroll.fdi 
<match key="info.product" string="SynPS/2 Synaptics TouchPad">
	<merge key="input.x11_options.SHMConfig" type="string">on</merge>
	<merge key="input.x11_options.ButtonMapping" type="string">0 0
0</merge>
      <!-- Edge Limits -->
      <merge key="input.x11_options.LeftEdge" type="string">0</merge>
      <merge key="input.x11_options.RightEdge" type="string">0</merge>
      <merge key="input.x11_options.TopEdge" type="string">1620</merge>
      <merge key="input.x11_options.ButtonEdge"
type="string">4236</merge> 
      <!-- Scrolling -->
      <!-- Vertical (Right Edge)-->
      <merge key="input.x11_options.VertEdgeScroll"
type="string">true</merge>
      <merge key="input.x11_options.VerteScrollDelta"
type="string">250</merge>
      <!-- Horizontal (Bottom Edge)-->
      <merge key="input.x11_options.HorizEdgeScroll"
type="string">true</merge>
      <merge key="input.x11_options.HorizScrollDelta"
type="string">250</merge>
      <!-- Circular Scrolling -->
      <merge key="input.x11_options.CircularScrolling"
type="string">false</merge>
      <merge key="input.x11_options.CircScrollDelta"
type="string">0.1</merge>
      <merge key="input.x11_options.CircScrollTrigger"
type="string">0</merge>
      <!-- Two Finger -->
      <merge key="input.x11_options.VertTwoFingerScroll"
type="string">false</merge>
      <merge key="input.x11_options.HorizTwoFingerScroll"
type="string">false</merge>
      <!-- Corner Coasting -->
      <merge key="input.x11_options.CornerCoasting"
type="string">false</merge>
      <merge key="input.x11_options.CoastingSpeed"
type="string">0</merge>
</match>