Tuesday, August 01, 2017

Re: touchpad input driver: testing needed

The event codes look wrong, they are for right-clicks and left-clicks,
if I'm not mistaken. Is there a "ButtonMapping" defined for X
somewhere (in your xorg.conf, or by a script), or a "ZAxisMapping"?

Could you have a look at the output of
$ xmodmap -pp
?

On 08/02/2017 12:22 AM, Olivier Antoine wrote:
> Two-fingers scrolling doesn't work at all. Under a firefox window, it open
> context menu, or act like pressing button.
>
> $ xinput --test /dev/wsmouse0
> button press 3
> button release 3
> button press 3
> button release 3
> button press 3
> button release 3
> motion a[0]=876 a[1]=497
> button press 3
> button release 3
> button press 3
> button release 3
> button press 3
> button release 3
> button press 1
> button release 1
> button press 1
> button release 1
> button press 1
> button release 1
> button press 1
> button release 1
> button press 3
> button release 3
> button press 1
> button release 1
> button press 1
> button release 1
> button press 3
> button release 3
> button press 3
> button release 3
>
>
>
> On Tue, Aug 1, 2017 at 9:53 PM, Ulf Brosziewski <ulf.brosziewski@t-online.de
>> wrote:
>
>> Hi,
>>
>> thanks for testing! Does "NOT OK" mean that two-finger
>> scrolling works badly, or that it doesn't work at all?
>> If possible, could you record the output of
>> $ xinput --test /dev/wsmouse0
>> for a short period of time and perform the scroll gesture?
>>
>> Ulf
>>
>> On 08/01/2017 11:09 AM, Olivier Antoine wrote:
>>> Mouse move: OK
>>> Mouse tapping: OK
>>> Two-fingers scrolling: NOT OK
>>>
>>> Machine Lenovo Thinkpad E130
>>>
>>> # wsconsctl | grep 'mouse'
>>> mouse.type=synaptics
>>> mouse.rawmode=0
>>> mouse.scale=1472,5768,1408,5236,0,66,175
>>> mouse.tp.tapping=1
>>> mouse.tp.scaling=0.160
>>> mouse.tp.swapsides=0
>>> mouse.tp.disable=0
>>> mouse1.type=ps2
>>>
>>>
>>>
>>> On Mon, Jul 31, 2017 at 11:02 PM, Ulf Brosziewski <
>>> ulf.brosziewski@t-online.de> wrote:
>>>
>>>> In the long run the synaptics driver, which handles touchpad inputs in
>>>> X, may be a dead end of the input framework, and it's time to prepare
>>>> an alternative. The kernel contains an internal touchpad input driver
>>>> now, it's a part of wsmouse(4). It provides standard features -
>>>> two-finger/edge scrolling, software buttons for clickpads, tapping -
>>>> and various kinds of plankton required for usability.
>>>>
>>>> If you have a new snapshot (from July 27 or later) on a laptop with a
>>>> Synaptics, Apple, Alps, or Elantech-4 touchpad, you could help with
>>>> tests, more tests, and tests. In order to activate the driver, add the
>>>> following entry to /etc/xorg.conf and restart X (if the file isn't
>>>> present, simply create it with this content):
>>>>
>>>> Section "InputClass"
>>>> Identifier "wsmouse touchpad"
>>>> Driver "ws"
>>>> MatchIsTouchpad "on"
>>>> EndSection
>>>>
>>>> While I dont't expect bugs in the input processing part of the
>>>> driver ;-), it is difficult to assess how well the automatic
>>>> configuration covers the zoo of models out there, presumably it will
>>>> need some more fine-grained distinctions of hardware properties. I
>>>> would like to know where it works, works only halfway, or doesn't work
>>>> for you. As always, a dmesg would be appreciated. The output of
>>>> # wsconsctl | grep 'mouse'
>>>> could also be of interest here (you must run it as root).
>>>>
>>>> For now, X will treat the device like a mouse, please don't look for
>>>> touchpad-specific configuration options there. Tapping can be enabled
>>>> by the command
>>>> # wsconsctl mouse.tp.tapping=1
>>>> If there is more than one wsmouse device, you should look up which one
>>>> has the "tp" fields and if it's not the first one (wsmouse0), add the
>>>> index to the prefix, e.g.
>>>> # wsconsctl mouse2.tp.tapping=1
>>>>
>>>> The base speed of the pointer can be adjusted by increasing or
>>>> decreasing the value of
>>>> # wsconsctl mouse.tp.scaling
>>>> Please don't confuse it with the 'mouse.scale' field.
>>>>
>>>> # wsconsctl mouse.tp.swapsides=1
>>>> will invert the order of software buttons areas (swapping external
>>>> buttons must still be configured in X). If edge scrolling is
>>>> enabled, the scroll area will be at the left edge of the touchpad.
>>>>
>>>> If you are using an external mouse device or a trackpoint, the command
>>>> # wsconsctl mouse.tp.disable=1
>>>> may be helpful. It will disable pointer movement, scrolling, and
>>>> tapping. External buttons and software buttons remain enabled.
>>>>
>>>>
>>>
>>
>>
>

No comments:

Post a Comment