NetBSD Problem Report #55964

From hauke@causeuse.org  Fri Jan 29 17:30:28 2021
Return-Path: <hauke@causeuse.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id E76BA1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 29 Jan 2021 17:30:27 +0000 (UTC)
Message-Id: <202101291614.10TGE8eu023109@slategrey.causeuse.org>
Date: Fri, 29 Jan 2021 17:14:08 +0100 (CET)
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
Reply-To: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
To: gnats-bugs@NetBSD.org
Cc: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
Subject: pms(4) middle mouse button (2) not recognized
X-Send-Pr-Version: 3.95

>Number:         55964
>Category:       kern
>Synopsis:       pms(4) middle mouse button (2) not recognized
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 29 17:35:00 +0000 2021
>Originator:     Hauke Fath
>Release:        NetBSD 9.1_STABLE
>Organization:
Mahlzeit!
>Environment:


System: NetBSD slategrey.causeuse.org 9.1_STABLE NetBSD 9.1_STABLE (HP2170P) #0: Tue Jan 19 20:31:50 CET 2021 hauke@slategrey.causeuse.org:/var/obj/netbsd-builds/9/amd64/sys/arch/amd64/compile/HP2170P amd64
Architecture: x86_64
Machine: amd64
>Description:

	On a docked HP Elitebook 2170p with a PS/2 interface, middle
	button presses fail to be registered on both a
	traditional (non-scroll-wheel) three-button Logitech ball
	mouse ("M-S35")	and a trackball ("TrackMan Marble").

	These mice work fine on an old thinkpad under netbsd-5, and on
	a PS/2-USB bridge on the 2170p.

	The 2170p runs pkgsrc X11 because of problems with the intel
	video adapter. The relevant bits of the installation are

% dmesg | grep pms
[     1.004071] pms0 at pckbc1 (aux slot)
[     1.004071] wsmouse0 at pms0 mux 0
% pkg_info | grep xf86
libXxf86vm-1.1.4nb1 Library for the XFree86-VidMode X extension
libXxf86dga-1.1.5   Library for the XFree86-DGA X extension
xf86-input-mouse-1.9.3 Modular Xorg mouse driver
xf86-video-intel-0nb20201027 Modular Xorg Intel video driver
xf86dga-1.0.3       Simple test client for the XFree86-DGA extension
xf86-input-ws-1.3.0.20151010nb2 OpenBSD's wscons input driver for modular X.org
xf86-input-keyboard-1.9.0nb3 Modular Xorg keyboard driver
%

	I tried both 'mouse' and 'ws' drivers with the same negative
	result. xev(1) doesn't show anything for the middle button,
	nor does debug output for ws(4).

	With PMSDEBUG I get

[     1.003827] pms0 at pckbc1 (aux slot)
[     1.003827] wsmouse0 at pms0 mux 0
[    22.566798] pms_protocol: found mouse protocol 2
[    22.566798] pms_enable: using scroll wheel (3 buttons) protocol
[    22.586809] pms_enable: using scroll wheel (3 buttons) protocol

	-- the trackball doesn't have a scroll wheel, though.

	Left button (1) click:

[   543.788437] pms: packet: 0x09000000
[   543.788437] pms: x +00 y +00 z +00 buttons 0x01
[   543.918510] pms: packet: 0x08000000
[   543.918510] pms: x +00 y +00 z +00 buttons 0x00

	Right button (3) click:

[   580.709160] pms: packet: 0x0a000000
[   580.709160] pms: x +00 y +00 z +00 buttons 0x04
[   580.849239] pms: packet: 0x08000000
[   580.849239] pms: x +00 y +00 z +00 buttons 0x00

	Middle button (2) click:

[   607.063951] pms: packet: 0x08000000
[   607.224041] pms: packet: 0x08000000

	Given the kernel debug output, I am inclined to suspect pms(4)
	rather than the X11 driver.


>How-To-Repeat:


	Plug a traditional, PS/2 wheel-less three-button mouse in to a
	netbsd-9 machine's PS/2 port. Find you cannot paste in X11.

>Fix:


	Wish I knew.

	I went with a usb-ps/2 dongle in the end, on which the
	trackman works just fine. But I shouldn't have to dongle up.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.