From: Arek Burdach <arek.burdach@gmail.com>
To: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Cc: "Stéphane Chatty" <chatty@enac.fr>,
"Andrew Duggan" <aduggan@synaptics.com>,
linux-input <linux-input@vger.kernel.org>
Subject: Re: Missing release event for Synaptics touchscreen
Date: Wed, 10 May 2017 01:17:20 +0200 [thread overview]
Message-ID: <1f16ba27-99cd-d16d-f09f-97dcda1bd358@gmail.com> (raw)
In-Reply-To: <CAN+gG=GY_0OKXNhmbDWmfEg0o4=Vf81r4rH3BGVmyd0suJdAtA@mail.gmail.com>
Hi,
I've tried described by you solution:
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index 37084b645785..81f271554b6c 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -2510,6 +2510,7 @@ static const struct hid_device_id
hid_ignore_list[] = {
{ HID_USB_DEVICE(USB_VENDOR_ID_SYNAPTICS,
USB_DEVICE_ID_SYNAPTICS_WTP) },
{ HID_USB_DEVICE(USB_VENDOR_ID_SYNAPTICS,
USB_DEVICE_ID_SYNAPTICS_DPAD) },
#endif
+ { HID_I2C_DEVICE(USB_VENDOR_ID_SYNAPTICS, 0x1786) },
{ HID_USB_DEVICE(USB_VENDOR_ID_YEALINK,
USB_DEVICE_ID_YEALINK_P1K_P4K_B2K) },
{ }
};
diff --git a/drivers/hid/hid-rmi.c b/drivers/hid/hid-rmi.c
index 5b40c2614599..ac2ea6ad2e53 100644
--- a/drivers/hid/hid-rmi.c
+++ b/drivers/hid/hid-rmi.c
@@ -714,6 +714,7 @@ static void rmi_remove(struct hid_device *hdev)
}
static const struct hid_device_id rmi_id[] = {
+ { HID_I2C_DEVICE(USB_VENDOR_ID_SYNAPTICS, 0x1786) },
{ HID_USB_DEVICE(USB_VENDOR_ID_RAZER,
USB_DEVICE_ID_RAZER_BLADE_14),
.driver_data = RMI_DEVICE_HAS_PHYS_BUTTONS },
{ HID_USB_DEVICE(USB_VENDOR_ID_LENOVO,
USB_DEVICE_ID_LENOVO_X1_COVER) },
and now neither hid-touchscreen nor hid-rmi peaking up my touchscreen
(also missing hidraw device)
Any other idea how to force hid-rmi to peak the device?
Cheers,
Arek
On 09.05.2017 16:02, Benjamin Tissoires wrote:
> On Tue, May 9, 2017 at 2:51 PM, Arek Burdach <arek.burdach@gmail.com> wrote:
>> On 09.05.2017 14:20, Benjamin Tissoires wrote:
>>> On Tue, May 9, 2017 at 11:20 AM, Arek Burdach <arek.burdach@gmail.com>
>>> wrote:
>>>> Hi,
>>>>
>>>> Thank you for response.
>>>>
>>>> On 09.05.2017 10:35, Benjamin Tissoires wrote:
>>>>> On Sat, May 6, 2017 at 9:28 PM, Arek Burdach <arek.burdach@gmail.com>
>>>>> wrote:
>>>>>> Hi,
>>>>>>
>>>>>> A week ago I've reported a bug:
>>>>>> https://bugzilla.kernel.org/show_bug.cgi?id=195625 Is there anybody
>>>>>> that
>>>>>> can
>>>>>> help me with it?
>>>>> I can have a look at it.
>>>>> Please attach the full outputs of hid-recorder and evemu-record in the
>>>>> bugs, or it'll be difficult for us to debug it.
>>>> I've attached full logs for two situations. More details in the issue.
>>> Thanks, looks like a firmware issue (I'll comment in the bug).
>> Sorry for my noob questions, but do you suggest that it can't be fixed by
>> changes in kernel modules and I need to report it to the manufacturer?
> Yes. Though Andrew, in CC, works for Synaptics and might give us some pointers.
>
>> If it so, do you have an idea why it works well on Windows? Do they have
>> some strange hacks in their drivers?
> I have no ideas how well it works under Windows, and I have no ideas
> if there are some strange hacks in the Windows nor in the Syanptics
> driver (I would assume so).
>
>>
>>
>>>>>> I found out that some touchpads (and possible touchscreens?) are
>>>>>> handled
>>>>>> by
>>>>>> both hid-multitouch and hid-rmi drivers. Is there a way to verify how
>>>>>> the
>>>>>> touchscreen would work on hid-rmi drivers? I've tested it with kernel
>>>>>> 4.11.0-rc1 version where was this change:
>>>>>> 279967a65b320d174a507498aea7d44db3fee7f4 HID: rmi: Handle all Synaptics
>>>>>> touchpads using hid-rmi
>>>>>> which was reverted in later kernel's version. On this version, only my
>>>>>> touchpad was handled by hid-rmi, touchscreen was still handled by
>>>>>> hid-multitouch. Maybe I should change something in code or in
>>>>>> compilation
>>>>>> configuration to force hid-rmi?
>>>>> Well, with 279967a65 applied, the system would know if the device can
>>>>> be handled through hid-rmi or not. If hid-multitouch was still used,
>>>>> that means that the device was not designed to be used as a rmi device
>>>>> at all (i.e. hid-rmi will not be able to talk to it).
>>>> In this patch, there is verified if hid group is
>>>> HID_GROUP_MULTITOUCH_WIN_8.
>>>> Maybe this touchscreen is in group with greater priority during
>>>> recognition.
>>>> Can I verify it somehow?
>>> With the logs you gave, the touchscreen is indeed Win 8 certified.
>>>
>>>> Also HID_GROUP_MULTITOUCH_WIN_8 recognition is done by this:
>>>>> usage == 0xff0000c5 && parser->global.report_count == 256 &&
>>>>> parser->global.report_size == 8
>>>> I assume that it is correct way to verify that. I wonder if it is
>>>> possible
>>>> that something changed for a new devices.
>>> Nope, looks good for your device. The reason why hid-rmi is not
>>> picking up your device is because of the check "parser->scan_flags &
>>> HID_SCAN_FLAG_GD_POINTER": this matches only to indirect devices
>>> (touchpads).
>>>
>>> If you can recompile your hid and hid-rmi modules, you can try giving a
>>> shot at:
>>> - adding HID_I2C_DEVICE(USB_VENDOR_ID_SYNAPTICS, 0x1786) }, in
>>> hid_have_special_driver[] in hid-core.c
>>> - adding a corresponding line in rmi_id[] in file hid-rmi.c.
>>>
>>> This should force the device to bind to hid-rmi and you'll be able to
>>> see if the device works better in this situation or not.
>> Sorry for another noob question, but if I switch to hid-rmi, it should
>> potentially produce other output in both /dev/hidraw output and
>> /dev/input/event output or only in the second one?
> The more, the better. Please provide all logs, hidraw and evemu.
>
>> I'm just wonder what is the pipeline.
>>
>> I'll give a try to it and revert back to you with results. Thank you for
>> tip!
> No worries.
>
> Cheers,
> Benjamin
>
>>
>>> Cheers,
>>> Benjamin
>>>
>>>> Cheers,
>>>> Arek
>>>>
>>>>
>>>>> Cheers,
>>>>> Benjamin
>>>>>
>>>>>> Or it is a wrong way to go? I would be grateful for your help.
>>>>>>
>>>>>> Regards,
>>>>>> Arek
>>>>
next prev parent reply other threads:[~2017-05-09 23:17 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-06 19:28 Missing release event for Synaptics touchscreen Arek Burdach
2017-05-09 8:35 ` Benjamin Tissoires
2017-05-09 9:20 ` Arek Burdach
2017-05-09 12:20 ` Benjamin Tissoires
2017-05-09 12:51 ` Arek Burdach
2017-05-09 14:02 ` Benjamin Tissoires
2017-05-09 23:17 ` Arek Burdach [this message]
2017-05-09 23:47 ` Andrew Duggan
2017-05-10 9:36 ` Arek Burdach
2017-05-11 9:48 ` Martin Kepplinger
2017-05-11 10:12 ` Arek Burdach
2017-05-11 11:22 ` Martin Kepplinger
2017-05-11 11:28 ` Benjamin Tissoires
2017-05-11 11:44 ` Arek Burdach
2017-05-11 11:47 ` Martin Kepplinger
2017-05-11 12:28 ` Benjamin Tissoires
2017-05-11 12:50 ` Martin Kepplinger
2017-05-11 14:30 ` Arek Burdach
2017-05-11 14:45 ` Benjamin Tissoires
2017-05-11 15:38 ` Arek Burdach
2017-05-12 6:56 ` Martin Kepplinger
2017-05-12 7:25 ` Arek Burdach
2017-05-12 7:34 ` Martin Kepplinger
2017-05-12 7:39 ` Benjamin Tissoires
2017-05-12 7:57 ` Arek Burdach
2017-05-12 14:23 ` Benjamin Tissoires
2017-05-12 14:28 ` Benjamin Tissoires
2017-05-12 17:50 ` Arek Burdach
2017-05-15 18:49 ` Arek Burdach
[not found] ` <c0ba39eb-c8d5-2473-36d9-ce7c605ef845@gmail.com>
2017-05-16 8:18 ` Benjamin Tissoires
2017-05-16 9:34 ` Benjamin Tissoires
2017-05-16 9:46 ` Arek Burdach
2017-06-07 7:27 ` Arek Burdach
2017-06-07 13:12 ` Benjamin Tissoires
2017-06-07 17:58 ` Arek Burdach
2017-05-11 11:36 ` Arek Burdach
2017-05-11 11:36 ` Martin Kepplinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1f16ba27-99cd-d16d-f09f-97dcda1bd358@gmail.com \
--to=arek.burdach@gmail.com \
--cc=aduggan@synaptics.com \
--cc=benjamin.tissoires@gmail.com \
--cc=chatty@enac.fr \
--cc=linux-input@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).