[PATCH synaptics] conf: enable right-button click by default on non-Apple clickpads
Chase Douglas
chase.douglas at canonical.com
Thu Mar 22 14:22:59 PDT 2012
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 <peter.hutterer at who-t.net>
> ---
> 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.
* 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"
> +# 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.
-- Chase
More information about the xorg-devel
mailing list