[Pkg-gpm-devel] Bug#321845: Alps touchpad tapping remap fails in gpm
David Liontooth
liontooth at cogweb.net
Sun Aug 7 19:40:26 UTC 2005
Package: gpm
Version: 1.19.6-20
Severity: normal
In brief, gpm's "-g 2" switch in for remapping tapping to the middle key
isn't working for my Alps touchpad, which makes it hard to interoperate
with an external three-button mouse.
The Alps Glidepoint (on a vpr matrix 200a5) is correctly detected when
the psmouse module is loaded:
alps.c: Enabling hardware tapping
input: PS/2 Mouse on isa0060/serio1
input: AlpsPS/2 ALPS GlidePoint on isa0060/serio1
In KDE's touchpad control panel, I can map tapping to the middle button
and paste works. (Incidentally, how do I do this in the x-windows
configuration file, so that I can use the touchpad for pasting in other
window managers, such as icewm?) However, the remapping function in gpm,
"-g 2", fails.
gpm's man page says to use "-g 2" to map tapping to the middle button,
but it has no effect on tapping. When I run /etc/init.d/gpm with the -xv
switch, I see
++ start-stop-daemon --start --quiet --nicelevel 0 --exec /usr/sbin/gpm
-- -m /dev/psaux -t autops2 -Rms3 -g 2
Other "append" commands work fine, for instance "-B 321".
Incidentally, gpm-mouse-test refuses to proceed past the "Detecting the
packet size" stage.
The synps2 type does not work (no response). The device
/dev/input/events3, which is used to identify the touchpad in x-windows,
doesn't work (no response).
Configuration file, /etc/gpm.conf:
device=/dev/psaux
type=autops2
repeat_type=ms3
append="-g 2"
On starting gpm, left button selects and right button pastes.
If I plug in a second mouse, an imps2, and press the middle button once,
then the touchpad's right button gets remapped to extend selection,
leaving me with no paste function. Using the "-2" switch works -- it
forces the mouse into two-button mode, so I lose the "extend selection"
function, but retain paste on both. A remap would be a lot better.
mev details below -- everything looks fine, except tapping maps to
button 1 instead of the far more useful button 2.
Dave
-- System Information:
Debian Release: sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages gpm depends on:
ii debconf [debconf-2.0] 1.4.53 Debian configuration management sy
ii debianutils 2.14.1 Miscellaneous utilities specific t
ii libc6 2.3.5-3 GNU C Library: Shared libraries an
ii ucf 1.16 Update Configuration File: preserv
gpm recommends no packages.
-- debconf information: (these values don't work; cf. above)
* gpm/responsiveness:
* gpm/repeat_type:
* gpm/append:
* gpm/restart: false
* gpm/sample_rate:
* gpm/type: synps2
* gpm/device: /dev/input/event3
* gpm/restart_default: false
mev shows the following:
Left click:
mouse: event 0x14, at 40,12 (delta 0, 0), buttons 4, modifiers 0x00
mouse: event 0x18, at 40,12 (delta 0, 0), buttons 4, modifiers 0x00
Double left click:
mouse: event 0x14, at 40,12 (delta 0, 0), buttons 4, modifiers 0x00
mouse: event 0x18, at 40,12 (delta 0, 0), buttons 4, modifiers 0x00
mouse: event 0x24, at 40,12 (delta 0, 0), buttons 4, modifiers 0x00
mouse: event 0x28, at 40,12 (delta 0, 0), buttons 4, modifiers 0x00
Triple left click:
mouse: event 0x14, at 40,12 (delta 0, 0), buttons 4, modifiers 0x00
mouse: event 0x18, at 40,12 (delta 0, 0), buttons 4, modifiers 0x00
mouse: event 0x24, at 40,12 (delta 0, 0), buttons 4, modifiers 0x00
mouse: event 0x28, at 40,12 (delta 0, 0), buttons 4, modifiers 0x00
mouse: event 0x44, at 40,12 (delta 0, 0), buttons 4, modifiers 0x00
mouse: event 0x48, at 40,12 (delta 0, 0), buttons 4, modifiers 0x00
Right click:
mouse: event 0x14, at 54,19 (delta 0, 0), buttons 1, modifiers 0x00
mouse: event 0x18, at 54,19 (delta 0, 0), buttons 1, modifiers 0x00
Single tap (equivalent to single left click):
mouse: event 0x14, at 54,19 (delta 0, 0), buttons 4, modifiers 0x00
mouse: event 0x18, at 54,19 (delta 0, 0), buttons 4, modifiers 0x00
Double tap (equivalent to double left click):
mouse: event 0x14, at 54,19 (delta 0, 0), buttons 4, modifiers 0x00
mouse: event 0x18, at 54,19 (delta 0, 0), buttons 4, modifiers 0x00
mouse: event 0x24, at 54,19 (delta 0, 0), buttons 4, modifiers 0x00
mouse: event 0x28, at 54,19 (delta 0, 0), buttons 4, modifiers 0x00
Triple tap (not equivalent to triple left click)
mouse: event 0x14, at 54,19 (delta 0, 0), buttons 4, modifiers 0x00
mouse: event 0x18, at 54,19 (delta 0, 0), buttons 4, modifiers 0x00
mouse: event 0x24, at 54,19 (delta 0, 0), buttons 4, modifiers 0x00
mouse: event 0x28, at 54,19 (delta 0, 0), buttons 4, modifiers 0x00
mouse: event 0x14, at 54,19 (delta 0, 0), buttons 4, modifiers 0x00
mouse: event 0x18, at 54,19 (delta 0, 0), buttons 4, modifiers 0x00
Movement with no key down:
mouse: event 0x01, at 8,15 (delta -1, 0), buttons 0, modifiers 0x00
mouse: event 0x01, at 7,15 (delta -1, 0), buttons 0, modifiers 0x00
Movement with left key down:
mouse: event 0x14, at 40,12 (delta 0, 0), buttons 4, modifiers 0x00
mouse: event 0x92, at 40,12 (delta 0, 0), buttons 4, modifiers 0x00
mouse: event 0x92, at 41,12 (delta 1, 0), buttons 4, modifiers 0x00
Movement with right key down:
mouse: event 0x14, at 75,22 (delta 0, 0), buttons 1, modifiers 0x00
mouse: event 0x92, at 75,22 (delta 0, 0), buttons 1, modifiers 0x00
mouse: event 0x92, at 76,22 (delta 1, 0), buttons 1, modifiers 0x00
Left key pressed, right key pressed and released, left released:
mouse: event 0x14, at 70,22 (delta 0, 0), buttons 4, modifiers 0x00
mouse: event 0x14, at 70,22 (delta 0, 0), buttons 5, modifiers 0x00
mouse: event 0x18, at 70,22 (delta 0, 0), buttons 1, modifiers 0x00
mouse: event 0x18, at 70,22 (delta 0, 0), buttons 4, modifiers 0x00
Right key pressed, single tap, right key released:
mouse: event 0x14, at 4, 2 (delta 0, 0), buttons 1, modifiers 0x00
mouse: event 0x14, at 4, 2 (delta 0, 0), buttons 5, modifiers 0x00
mouse: event 0x18, at 4, 2 (delta 0, 0), buttons 4, modifiers 0x00
mouse: event 0x18, at 4, 2 (delta 0, 0), buttons 1, modifiers 0x00
Movement with left and right keys pressed:
mouse: event 0x92, at 30,24 (delta 0, 0), buttons 5, modifiers 0x00
mouse: event 0x92, at 31,24 (delta 1, 0), buttons 5, modifiers 0x00
The problem is that tapping is mapped to button 1 (left) instead of
button 2 (middle), so there is no "button 2", as I get with an external
imps2 mouse:
mouse: event 0x14, at 39,12 (delta 0, 0), buttons 2, modifiers 0x00
mouse: event 0x18, at 39,12 (delta 0, 0), buttons 2, modifiers 0x00
More information about the Pkg-gpm-devel
mailing list