From owner-freebsd-bugs@freebsd.org Fri Aug 31 14:07:51 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B587CFCC8FA for ; Fri, 31 Aug 2018 14:07:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 4FDB173DB5 for ; Fri, 31 Aug 2018 14:07:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 0B556FCC8F9; Fri, 31 Aug 2018 14:07:51 +0000 (UTC) Delivered-To: bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DB4B0FCC8F7 for ; Fri, 31 Aug 2018 14:07:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7582973DB4 for ; Fri, 31 Aug 2018 14:07:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 9D2A6222DC for ; Fri, 31 Aug 2018 14:07:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w7VE7n77040859 for ; Fri, 31 Aug 2018 14:07:49 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w7VE7nj3040858 for bugs@FreeBSD.org; Fri, 31 Aug 2018 14:07:49 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 231058] no support for active PS/2 multiplexing results in erratic behaviour of Synaptics touchpad on HP 8560w Date: Fri, 31 Aug 2018 14:07:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: mifigiel@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Aug 2018 14:07:51 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231058 Bug ID: 231058 Summary: no support for active PS/2 multiplexing results in erratic behaviour of Synaptics touchpad on HP 8560w Product: Base System Version: 11.2-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: mifigiel@gmail.com Created attachment 196747 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D196747&action= =3Dedit relevant syslog entries I've got a HP EliteBook 8560w which is equipped with a Synaptics touchpad a= nd a trackpoint. The trackpoint doesn't work at all (movements are repoted as bu= tton events or not at all), neither is the touchpad's middle button reported. This is one of the devices which respond to the special query, which is use= d to identify it, with a middle byte of 0x46 instead of 0x47. The same hardware = is properly recognized and works on Linux (Ubuntu 18.04). Linux accepts only 0= x47 (I checked the source). I've seen in psm.c that FreeBSD accepts the 0x46 id= but uses conservative defaults for settings, because the devices report garbage. I think the root cause of the 0x46 id is that FreeBSD doesn't support active PS/2 multiplexing. As a PoC I added functions to enable/disable the active multiplexing mode of the i8042 and in multiplexing mode I queried all four aux ports. I got two devices, and one of them sends 0x46 but the other sends a 0x47 in the middle byte. I attach the relevant portion of syslog messages (line 19: the first device, line 34 the second device, from 36 on the normal initialization). I found a document titled "Active PS/2 Multiplexing", version 1.1, from 1999 which describes this mode of operation. It hints on the fact, that a multiplexing controller operated in legacy (non-multiplexing) mode with more than one aux device might garble some of the data passed to the host. I thi= nk, that's what happens on my machine.=20 I'm not sure if it is really worth the effort to implement the multiplexing= , as I suspect that the few machines which use it will die of old age pretty soo= n, but over the weekend I'll try to modify the psm.c to operate in multiplexing mode with only one enabled device. --=20 You are receiving this mail because: You are the assignee for the bug.=