From owner-freebsd-x11@freebsd.org Tue Dec 22 22:42:02 2015 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 80A2DA50B45 for ; Tue, 22 Dec 2015 22:42:02 +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 6C34B1B3E for ; Tue, 22 Dec 2015 22:42:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 69074A50B44; Tue, 22 Dec 2015 22:42:02 +0000 (UTC) Delivered-To: x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 689F0A50B43 for ; Tue, 22 Dec 2015 22:42:02 +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 mx1.freebsd.org (Postfix) with ESMTPS id 3FFB01B3B for ; Tue, 22 Dec 2015 22:42:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id tBMMg2s8065433 for ; Tue, 22 Dec 2015 22:42:02 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 205501] x11/xorg fails to handle Logitech Illuminated Keyboard multimedia uhid. Date: Tue, 22 Dec 2015 22:42:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: mason@blisses.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: x11@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Dec 2015 22:42:02 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205501 --- Comment #2 from Mason Loring Bliss --- usbhidaction is problematic in this case. The issue I had with using usbhidaction is that I needed to patch it, as it was getting "range" values back from my multimedia keys by default. I'd want to test this, but my ugly hack to get readable values from the multimedia keys was: $ diff -u usbhidaction.c* --- usbhidaction.c 2015-12-22 16:05:40.508177432 -0500 +++ usbhidaction.c.patched 2015-12-22 16:06:45.804170602 -0500 @@ -447,7 +447,7 @@ cmd->item = h; cmd->name = strdup(name); cmd->action = strdup(action); - if (range) { + if (range & 0) { if (cmd->value == 1) cmd->value = u - lo; else At least, that's my recollection. I went from there to thinking that we were misclassifying the device in the kernel, but after that I noted Xorg.0.log on Linux where evdev is evidently also seeing a device that can present a range of values, but was doing the right thing with it. Is moving to evdev a possibility, or is it hopelessly tied to Linux? Do we instead want to make this work with FreeBSD's usbhidaction without modification? I remember starting to look for a quirk table or similar I could update to prevent this device from being detected as presenting ranged values, but I hadn't found the right thing by the time I gave up. -- You are receiving this mail because: You are the assignee for the bug.