NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/55964: pms(4) middle mouse button (2) not recognized



>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@localhost:/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:
 	
 	


Home | Main Index | Thread Index | Old Index