From nobody Tue Aug 09 16:44:00 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M2Jmw3TQsz4YSC2 for ; Tue, 9 Aug 2022 16:44:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M2Jmw18t9z3BwK for ; Tue, 9 Aug 2022 16:44:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4M2Jmw0Clnzf8m for ; Tue, 9 Aug 2022 16:44:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 279GhxBQ053375 for ; Tue, 9 Aug 2022 16:43:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 279GhxMP053374 for bugs@FreeBSD.org; Tue, 9 Aug 2022 16:43:59 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 265742] [PATCH] Sayobot keypad fails to attach: error reading report description Date: Tue, 09 Aug 2022 16:44:00 +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: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: crahman@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 List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660063440; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=B5nLeau5JhWfgXlZZKOjN4yq0fFmO5Y65uKwsEVf4jU=; b=Mv5L/kbACrhXN0ZSnIDrs81xHrwVV2b/+N1iHAjxyaYLOQapLDShIjSGADZGkxeeLP+K8/ Y/87m2MQfOlRjswZCEYPWc7VYzsMNXNfak+W8Sx5GUsTEkC+t0rIcTatpmWanyJI6xxlZ4 lNx7V2ZwS2QGJK9p9z60iNFmSBtpy1QmvOhJD1bAy9QZvQ9ku5xCBGFS65gPLP3LgUuNMH rXAACx2As4Xplm+wqg/EfYlustctYnQnopkbsX8VMPplheptT19WSLxBoPBoE5D2Ul6JOx ewYlxfm/2OPhgEkGlsvHiNjGi+af1NVox9VBzJDYfaW3qOlZYvTcBlDw03fRGQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660063440; a=rsa-sha256; cv=none; b=jFNC6TdmUJ1U3lZQFQD3/nuYdeXngfhlh36HJzLT50YVuBmYB3RFPJUf68+IEYpiVGcGzd A9R4LCvcXnI6d77pRm+oCX3WoCFHqw6GBDfv0r23OumAkFRTnTq5uMSfhTR/Zs/e5f8cHZ DrR9XofR8iWamrJ8c3Pcxc+b5EuaOb7JGcRSpBJaACQOf6XhCR5pS5v+GZ7S6afVDjzrIz LuEHb0T8U14G0dlIA9HIwMGE6FRv5YL5+njk/3t677UlmU1Ji08O4etRRoNlJQ/uKhP2Gs /B1t+WKIoYx/6qafMFZTrTiOlCTuSeZWGnKO0/gCE5dKGYV7H1VfDR+jJFN23w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265742 Bug ID: 265742 Summary: [PATCH] Sayobot keypad fails to attach: error reading report description Product: Base System Version: 13.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: crahman@gmail.com Created attachment 235807 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D235807&action= =3Dedit Add UQ_MS_NO_SETPROTO USB quirk The Sayobot keypads are popular and well made sets of one or more cherry red keys used for playing the osu! rhythm game, but very useful for other applications because the keys can be programmed to perform arbitrary mouse = or key actions. On FreeBSD 13.1, the keypads fail to attach with the error: ums1: error reading report description device_attach: ums1 attach returned 12 This is caused when the ums mouse driver attempts to use SetProtocol to set= the report (non-boot) protocol. The keypad does not handle this correctly. The attached patch adds a UQ_MS_NO_SETPROTO quirk to avoid using SetProtoco= l. The patch also includes the patch from Bug 234469, which allows a USB endpo= int which provides both mouse and keyboard services (the combination of which is not supported by FreeBSD) to act as a keyboard when UQ_UMS_IGNORE is set. To use the keypad to generate mouse events, add hw.usb.quirk.0=3D"0x8089 0x0003 0x0000 0xffff UQ_MS_NO_SETPROTO" to /boot/loader.conf. To use the keyboard to generate keyboard events, add hw.usb.quirk.0=3D"0x8089 0x0003 0x0000 0xffff UQ_UMS_IGNORE" to /boot/loader.conf. --=20 You are receiving this mail because: You are the assignee for the bug.=