From patchwork Tue Jul 29 09:50:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jiri Kosina X-Patchwork-Id: 4639471 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6B6909F32F for ; Tue, 29 Jul 2014 09:50:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A227920173 for ; Tue, 29 Jul 2014 09:50:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A717D2012D for ; Tue, 29 Jul 2014 09:50:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753032AbaG2Ju4 (ORCPT ); Tue, 29 Jul 2014 05:50:56 -0400 Received: from cantor2.suse.de ([195.135.220.15]:41024 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751587AbaG2Ju4 (ORCPT ); Tue, 29 Jul 2014 05:50:56 -0400 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 40860AAF3; Tue, 29 Jul 2014 09:50:55 +0000 (UTC) Date: Tue, 29 Jul 2014 11:50:54 +0200 (CEST) From: Jiri Kosina To: =?ISO-8859-15?Q?=C9ric_Brunet?= cc: linux-input@vger.kernel.org Subject: Re: Trouble with an HP stylus In-Reply-To: <2325454.r4RE9vHMoF@romarin> Message-ID: References: <2325454.r4RE9vHMoF@romarin> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Thu, 24 Jul 2014, Éric Brunet wrote: > I have a HP EliteBook Revolve 810 (which is a hybrid laptop/tablet) with > the HP active pen that goes with it. I have installed fedora 20 (kernel > 3.15.6-200.fc20.x86_64) on this, and the pen does not work out of the box. > Playing with evtest, it appears that the kernel reports the X coordinate in > ABS_X and in ABS_Y, while the Y coordinate goes into ABS_Z and ABS_RX; here > are a few lines of output: > > Event: time 1406153996.865044, -------------- SYN_REPORT ------------ > Event: time 1406153996.873047, type 3 (EV_ABS), code 0 (ABS_X), value 1087 > Event: time 1406153996.873047, type 3 (EV_ABS), code 1 (ABS_Y), value 1087 > Event: time 1406153996.873047, type 3 (EV_ABS), code 2 (ABS_Z), value 1599 > Event: time 1406153996.873047, type 3 (EV_ABS), code 3 (ABS_RX), value 1599 > > Of course, XOrg's evdev driver is confused and the pointer is stuck on the > diagonal X=Y. > > I guess this hardware needs a new quirk to usbhid, unless there is already > a way to correct it ? > > Here is the content of /sys/class/input/event8/device/uevent: > > PRODUCT=3/3eb/840b/111 > NAME="Atmel Atmel maXTouch Digitizer Pen" > PHYS="usb-0000:00:1a.0-1.1/input0" > UNIQ="" > PROP=0 > EV=1b > KEY=c01 1 0 0 0 0 > ABS=100000f > MSC=10 > MODALIAS=input:b0003v03EBp840Be0111- > e0,1,3,4,k100,140,14A,14B,ra0,1,2,3,18,m4,lsfw > > I hope I gave enough information on this. I don't read the mailing list, > please CC any answer. Does the patch below fix the problem for you please? diff --git a/drivers/hid/usbhid/hid-quirks.c b/drivers/hid/usbhid/hid-quirks.c index 31e6727..d48574d 100644 --- a/drivers/hid/usbhid/hid-quirks.c +++ b/drivers/hid/usbhid/hid-quirks.c @@ -97,6 +97,7 @@ static const struct hid_blacklist { { USB_VENDOR_ID_SYMBOL, USB_DEVICE_ID_SYMBOL_SCANNER_2, HID_QUIRK_NOGET }, { USB_VENDOR_ID_TPV, USB_DEVICE_ID_TPV_OPTICAL_TOUCHSCREEN, HID_QUIRK_NOGET }, { USB_VENDOR_ID_TURBOX, USB_DEVICE_ID_TURBOX_KEYBOARD, HID_QUIRK_NOGET }, + { 0x03EB, 0x840B, HID_QUIRK_MULTI_INPUT }, { USB_VENDOR_ID_UCLOGIC, USB_DEVICE_ID_UCLOGIC_TABLET_PF1209, HID_QUIRK_MULTI_INPUT }, { USB_VENDOR_ID_UCLOGIC, USB_DEVICE_ID_UCLOGIC_TABLET_WP4030U, HID_QUIRK_MULTI_INPUT }, { USB_VENDOR_ID_UCLOGIC, USB_DEVICE_ID_UCLOGIC_TABLET_KNA5, HID_QUIRK_MULTI_INPUT },