* [PATCH] tools: add logitech diNovo rules for hid2hci
@ 2017-05-08 11:00 Konrad Zapalowicz
2017-05-08 11:19 ` Von Dentz, Luiz
0 siblings, 1 reply; 3+ messages in thread
From: Konrad Zapalowicz @ 2017-05-08 11:00 UTC (permalink / raw)
To: marcel; +Cc: luiz.von.dentz, linux-bluetooth, Konrad Zapałowicz
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1242 bytes --]
From: Konrad Zapałowicz <konrad.zapalowicz@canonical.com>
It has been reported that th Lenovo diNovo set of BT wireless devices
works only when is managed by hidraw instead of hiddev. This patch adds
vendor and product ids for these devices so that it is possible to use.
This patch is based on work provided by:
* Tommy <mesilliac@gmail.com>
* Martin G Miller <mgmiller@optonline.net>
---
tools/hid2hci.rules | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tools/hid2hci.rules b/tools/hid2hci.rules
index db6bb03..7273167 100644
--- a/tools/hid2hci.rules
+++ b/tools/hid2hci.rules
@@ -13,6 +13,12 @@ ATTR{bInterfaceClass}=="03", ATTR{bInterfaceSubClass}=="01", ATTR{bInterfaceProt
# Logitech devices
KERNEL=="hiddev*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c70[345abce]|c71[34bc]", \
RUN+="hid2hci --method=logitech-hid --devpath=%p"
+# Logitech, Inc. diNovo Edge Keyboard
+KERNEL=="hidraw*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c714", \
+ RUN+="hid2hci --method=logitech-hid --devpath=%p"
+# Logitech, Inc. diNovo 2
+KERNEL=="hidraw*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c704", \
+ RUN+="hid2hci --method=logitech-hid --devpath=%p"
ENV{DEVTYPE}!="usb_device", GOTO="hid2hci_end"
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] tools: add logitech diNovo rules for hid2hci
2017-05-08 11:00 [PATCH] tools: add logitech diNovo rules for hid2hci Konrad Zapalowicz
@ 2017-05-08 11:19 ` Von Dentz, Luiz
2017-05-08 11:45 ` Konrad Zapalowicz
0 siblings, 1 reply; 3+ messages in thread
From: Von Dentz, Luiz @ 2017-05-08 11:19 UTC (permalink / raw)
To: Konrad Zapalowicz; +Cc: Marcel Holtmann, linux-bluetooth@vger.kernel.org
Hi Konrad,
On Mon, May 8, 2017 at 2:00 PM, Konrad Zapalowicz
<konrad.zapalowicz@canonical.com> wrote:
> From: Konrad Zapa=C5=82owicz <konrad.zapalowicz@canonical.com>
>
> It has been reported that th Lenovo diNovo set of BT wireless devices
> works only when is managed by hidraw instead of hiddev. This patch adds
> vendor and product ids for these devices so that it is possible to use.
>
> This patch is based on work provided by:
> * Tommy <mesilliac@gmail.com>
> * Martin G Miller <mgmiller@optonline.net>
> ---
> tools/hid2hci.rules | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/tools/hid2hci.rules b/tools/hid2hci.rules
> index db6bb03..7273167 100644
> --- a/tools/hid2hci.rules
> +++ b/tools/hid2hci.rules
> @@ -13,6 +13,12 @@ ATTR{bInterfaceClass}=3D=3D"03", ATTR{bInterfaceSubCla=
ss}=3D=3D"01", ATTR{bInterfaceProt
> # Logitech devices
> KERNEL=3D=3D"hiddev*", ATTRS{idVendor}=3D=3D"046d", ATTRS{idProduct}=3D=
=3D"c70[345abce]|c71[34bc]", \
> RUN+=3D"hid2hci --method=3Dlogitech-hid --devpath=3D%p"
> +# Logitech, Inc. diNovo Edge Keyboard
> +KERNEL=3D=3D"hidraw*", ATTRS{idVendor}=3D=3D"046d", ATTRS{idProduct}=3D=
=3D"c714", \
> + RUN+=3D"hid2hci --method=3Dlogitech-hid --devpath=3D%p"
> +# Logitech, Inc. diNovo 2
> +KERNEL=3D=3D"hidraw*", ATTRS{idVendor}=3D=3D"046d", ATTRS{idProduct}=3D=
=3D"c704", \
> + RUN+=3D"hid2hci --method=3Dlogitech-hid --devpath=3D%p"
>
> ENV{DEVTYPE}!=3D"usb_device", GOTO=3D"hid2hci_end"
>
> --
> 2.7.4
Interesting, is this preferable than creating a kernel driver that
does the same thing? hid2hci was initially intended to switch the
controller from hid mode to hci mode, but in this case there is
nothing related to hci, or bluetooth, if it is just doing hiddev to
hidraw.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] tools: add logitech diNovo rules for hid2hci
2017-05-08 11:19 ` Von Dentz, Luiz
@ 2017-05-08 11:45 ` Konrad Zapalowicz
0 siblings, 0 replies; 3+ messages in thread
From: Konrad Zapalowicz @ 2017-05-08 11:45 UTC (permalink / raw)
To: Von Dentz, Luiz; +Cc: Marcel Holtmann, linux-bluetooth@vger.kernel.org
On 05/08, Von Dentz, Luiz wrote:
> Hi Konrad,
>
> On Mon, May 8, 2017 at 2:00 PM, Konrad Zapalowicz
> <konrad.zapalowicz@canonical.com> wrote:
> > From: Konrad Zapałowicz <konrad.zapalowicz@canonical.com>
> >
> > It has been reported that th Lenovo diNovo set of BT wireless devices
> > works only when is managed by hidraw instead of hiddev. This patch adds
> > vendor and product ids for these devices so that it is possible to use.
> >
> > This patch is based on work provided by:
> > * Tommy <mesilliac@gmail.com>
> > * Martin G Miller <mgmiller@optonline.net>
> > ---
> > tools/hid2hci.rules | 6 ++++++
> > 1 file changed, 6 insertions(+)
> >
> > diff --git a/tools/hid2hci.rules b/tools/hid2hci.rules
> > index db6bb03..7273167 100644
> > --- a/tools/hid2hci.rules
> > +++ b/tools/hid2hci.rules
> > @@ -13,6 +13,12 @@ ATTR{bInterfaceClass}=="03", ATTR{bInterfaceSubClass}=="01", ATTR{bInterfaceProt
> > # Logitech devices
> > KERNEL=="hiddev*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c70[345abce]|c71[34bc]", \
> > RUN+="hid2hci --method=logitech-hid --devpath=%p"
> > +# Logitech, Inc. diNovo Edge Keyboard
> > +KERNEL=="hidraw*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c714", \
> > + RUN+="hid2hci --method=logitech-hid --devpath=%p"
> > +# Logitech, Inc. diNovo 2
> > +KERNEL=="hidraw*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c704", \
> > + RUN+="hid2hci --method=logitech-hid --devpath=%p"
> >
> > ENV{DEVTYPE}!="usb_device", GOTO="hid2hci_end"
> >
> > --
> > 2.7.4
>
> Interesting, is this preferable than creating a kernel driver that
> does the same thing? hid2hci was initially intended to switch the
> controller from hid mode to hci mode, but in this case there is
> nothing related to hci, or bluetooth, if it is just doing hiddev to
> hidraw.
Hey,
Interesting suggestion. The reason I have proposed it this way is that
we have already a patch that we ship for a while now and know that it
works. Also this way is a bit easier for spreading the fix around as
updating bluez is simpler than the kernel. Last but not least I do not
have the diNovo set to work on the module. Having said that I understand
your point and I agree.
Thanks,
Konrad
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-05-08 11:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-08 11:00 [PATCH] tools: add logitech diNovo rules for hid2hci Konrad Zapalowicz
2017-05-08 11:19 ` Von Dentz, Luiz
2017-05-08 11:45 ` Konrad Zapalowicz
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).