On Thu, Mar 22, 2012 at 02:22:59PM -0700, Chase Douglas wrote: > On 03/21/2012 10:25 PM, Peter Hutterer wrote: > > The right-half of the bottom 30% of the touchpad are enabled as right button > > by default. On Apple touchpads (these don't have marking for the right > > button) disable them by default. > > > > Signed-off-by: Peter Hutterer <[email protected]> > > --- > > conf/50-synaptics.conf | 18 ++++++++++++++++++ > > 1 files changed, 18 insertions(+), 0 deletions(-) > > > > diff --git a/conf/50-synaptics.conf b/conf/50-synaptics.conf > > index 5ec7e78..05a9bd7 100644 > > --- a/conf/50-synaptics.conf > > +++ b/conf/50-synaptics.conf > > @@ -24,3 +24,21 @@ Section "InputClass" > > MatchDevicePath "/dev/input/mouse*" > > Option "Ignore" "on" > > EndSection > > + > > +# This option enables the bottom right corner to be a right button on > > +# non-synaptics clickpads. > > +# This option is only interpreted by clickpads. > > +Section "InputClass" > > + Identifier "Default clickpad buttons" > > + MatchDriver "synaptics" > > + Option "SoftButtonAreas" "50% 100% 70% 100% 0 0 0 0" > > +EndSection > > My own testing and anecdata from one other user was that: > > * We don't want to set the boundaries at 100% since the trackpad > sometimes lies about its full range. Leave them at 0 and the boundary > will extend to infinity.
good idea. I was cursing at that yesterday and had forgotten about the 0 option. > * The top edge should be around 82%. 70% is too high. The calculations > on my own laptop shows 82% to be about right. I have a script to enable > the right button area, and the first iteration put it at 80%. However, > one user said it was too high. I asked him to figure out what was best > for his trackpad, and he came up with 82% too. I wonder if Synaptics has > standardized on that height ratio for clickpad buttons. > > The above would result in: > > Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0" amended thanks. > > +# This option disables software buttons on Apple touchpads. > > +# This option is only interpreted by clickpads. > > +Section "InputClass" > > + Identifier "Disable clickpad buttons on Apple touchpads" > > + MatchProduct "Apple" > > + MatchDriver "synaptics" > > + Option "SoftButtonAreas" "0 0 0 0 0 0 0 0" > > +EndSection > > Everything else looks good. I think it's too late to enable in Ubuntu, > so I'll have to patch it out when we get it merged from upstream :(. We > have just hit the beta 2 freeze, and after beta 2 there is nothing until > the release, so adding a behavior change now would be frowned upon. Just > FYI, in case you get bug reports and see it behave differently between > distros. ok, thanks for the heads-up. Cheers, Peter _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
