* [PATCH BlueZ v1 0/1] HID device connection issue fixed.
@ 2024-12-24 14:24 Mahesh Talewad
2024-12-24 14:24 ` [PATCH BlueZ v1 1/1] HID device not connecting " Mahesh Talewad
0 siblings, 1 reply; 8+ messages in thread
From: Mahesh Talewad @ 2024-12-24 14:24 UTC (permalink / raw)
To: linux-bluetooth
Cc: devyani.godbole, luiz.dentz, sarveshwar.bajaj, mahesh.talewad,
vinit.mehta
Hello Maintainers,
While connecting BT-HID device showing br-profile unavailable and
connection did not happen.
Steps followed:
1. Pair Ref device
2. Connect Ref device
This patch fixes HID device connection issue and with this patch
HID device is able to connect and HID traffic can be observed
in btmon.
Thank you in advance for your review.
Thanks and regards,
Mahesh Vithal Talewad
Mahesh Talewad (1):
HID device not connecting issue fixed.
profiles/input/device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
2.34.1
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH BlueZ v1 1/1] HID device not connecting issue fixed.
2024-12-24 14:24 [PATCH BlueZ v1 0/1] HID device connection issue fixed Mahesh Talewad
@ 2024-12-24 14:24 ` Mahesh Talewad
2024-12-24 15:32 ` HID device connection " bluez.test.bot
2025-01-06 19:53 ` [PATCH BlueZ v1 1/1] HID device not connecting " Luiz Augusto von Dentz
0 siblings, 2 replies; 8+ messages in thread
From: Mahesh Talewad @ 2024-12-24 14:24 UTC (permalink / raw)
To: linux-bluetooth
Cc: devyani.godbole, luiz.dentz, sarveshwar.bajaj, mahesh.talewad,
vinit.mehta
While connecting BT-HID device showing br-profile unavailable
and connection did not happen.
Steps followed:
1. Pair Ref device
2. Connect Ref device
With this patch HID device is able to connect and HID traffic
can be observed in btmon.
---
profiles/input/device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/profiles/input/device.c b/profiles/input/device.c
index 8cf8e5ea7..a6047998a 100644
--- a/profiles/input/device.c
+++ b/profiles/input/device.c
@@ -89,7 +89,7 @@ struct input_device {
};
static int idle_timeout = 0;
-static uhid_state_t uhid_state = UHID_ENABLED;
+static uhid_state_t uhid_state = UHID_DISABLED;
static bool classic_bonded_only = true;
void input_set_idle_timeout(int timeout)
--
2.34.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* RE: HID device connection issue fixed.
2024-12-24 14:24 ` [PATCH BlueZ v1 1/1] HID device not connecting " Mahesh Talewad
@ 2024-12-24 15:32 ` bluez.test.bot
2025-01-06 19:53 ` [PATCH BlueZ v1 1/1] HID device not connecting " Luiz Augusto von Dentz
1 sibling, 0 replies; 8+ messages in thread
From: bluez.test.bot @ 2024-12-24 15:32 UTC (permalink / raw)
To: linux-bluetooth, mahesh.talewad
[-- Attachment #1: Type: text/plain, Size: 1260 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=920753
---Test result---
Test Summary:
CheckPatch PENDING 0.18 seconds
GitLint PENDING 0.19 seconds
BuildEll PASS 22.57 seconds
BluezMake PASS 1563.66 seconds
MakeCheck PASS 13.64 seconds
MakeDistcheck PASS 161.53 seconds
CheckValgrind PASS 215.49 seconds
CheckSmatch PASS 274.53 seconds
bluezmakeextell PASS 99.83 seconds
IncrementalBuild PENDING 0.24 seconds
ScanBuild PASS 863.68 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series
Output:
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH BlueZ v1 1/1] HID device not connecting issue fixed.
2024-12-24 14:24 ` [PATCH BlueZ v1 1/1] HID device not connecting " Mahesh Talewad
2024-12-24 15:32 ` HID device connection " bluez.test.bot
@ 2025-01-06 19:53 ` Luiz Augusto von Dentz
2025-01-07 12:05 ` [EXT] " Mahesh Talewad
1 sibling, 1 reply; 8+ messages in thread
From: Luiz Augusto von Dentz @ 2025-01-06 19:53 UTC (permalink / raw)
To: Mahesh Talewad
Cc: linux-bluetooth, devyani.godbole, sarveshwar.bajaj, vinit.mehta
Hi Mahesh,
On Tue, Dec 24, 2024 at 9:24 AM Mahesh Talewad <mahesh.talewad@nxp.com> wrote:
>
> While connecting BT-HID device showing br-profile unavailable
> and connection did not happen.
> Steps followed:
> 1. Pair Ref device
> 2. Connect Ref device
> With this patch HID device is able to connect and HID traffic
> can be observed in btmon.
> ---
> profiles/input/device.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/profiles/input/device.c b/profiles/input/device.c
> index 8cf8e5ea7..a6047998a 100644
> --- a/profiles/input/device.c
> +++ b/profiles/input/device.c
> @@ -89,7 +89,7 @@ struct input_device {
> };
>
> static int idle_timeout = 0;
> -static uhid_state_t uhid_state = UHID_ENABLED;
> +static uhid_state_t uhid_state = UHID_DISABLED;
Well this would contradict input.conf:
https://github.com/bluez/bluez/blob/master/profiles/input/input.conf#L18
Perhaps what is missing is the detection that if uhid is not enabled
in the kernel it would switch it off automatically, that said it was
intended by the distro to know whether to enable it or not, so we
don't have to play a guess game runtime.
> static bool classic_bonded_only = true;
>
> void input_set_idle_timeout(int timeout)
> --
> 2.34.1
>
--
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [EXT] Re: [PATCH BlueZ v1 1/1] HID device not connecting issue fixed.
2025-01-06 19:53 ` [PATCH BlueZ v1 1/1] HID device not connecting " Luiz Augusto von Dentz
@ 2025-01-07 12:05 ` Mahesh Talewad
2025-01-07 14:49 ` Luiz Augusto von Dentz
2025-01-08 2:26 ` Zijun Hu
0 siblings, 2 replies; 8+ messages in thread
From: Mahesh Talewad @ 2025-01-07 12:05 UTC (permalink / raw)
To: Luiz Augusto von Dentz
Cc: linux-bluetooth@vger.kernel.org, Devyani Godbole,
Sarveshwar Bajaj, Vinit Mehta
Hi Luiz,
We tried with option - " UserspaceHID=true" in input.conf but HID Connection did not happen.
Thanks and regards,
Mahesh Vithal Talewad
-----Original Message-----
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Sent: Tuesday, January 7, 2025 1:24 AM
To: Mahesh Talewad <mahesh.talewad@nxp.com>
Cc: linux-bluetooth@vger.kernel.org; Devyani Godbole <devyani.godbole@nxp.com>; Sarveshwar Bajaj <sarveshwar.bajaj@nxp.com>; Vinit Mehta <vinit.mehta@nxp.com>
Subject: [EXT] Re: [PATCH BlueZ v1 1/1] HID device not connecting issue fixed.
Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button
Hi Mahesh,
On Tue, Dec 24, 2024 at 9:24 AM Mahesh Talewad <mahesh.talewad@nxp.com> wrote:
>
> While connecting BT-HID device showing br-profile unavailable and
> connection did not happen.
> Steps followed:
> 1. Pair Ref device
> 2. Connect Ref device
> With this patch HID device is able to connect and HID traffic can be
> observed in btmon.
> ---
> profiles/input/device.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/profiles/input/device.c b/profiles/input/device.c index
> 8cf8e5ea7..a6047998a 100644
> --- a/profiles/input/device.c
> +++ b/profiles/input/device.c
> @@ -89,7 +89,7 @@ struct input_device { };
>
> static int idle_timeout = 0;
> -static uhid_state_t uhid_state = UHID_ENABLED;
> +static uhid_state_t uhid_state = UHID_DISABLED;
Well this would contradict input.conf:
https://github.com/bluez/bluez/blob/master/profiles/input/input.conf#L18
Perhaps what is missing is the detection that if uhid is not enabled in the kernel it would switch it off automatically, that said it was intended by the distro to know whether to enable it or not, so we don't have to play a guess game runtime.
> static bool classic_bonded_only = true;
>
> void input_set_idle_timeout(int timeout)
> --
> 2.34.1
>
--
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [EXT] Re: [PATCH BlueZ v1 1/1] HID device not connecting issue fixed.
2025-01-07 12:05 ` [EXT] " Mahesh Talewad
@ 2025-01-07 14:49 ` Luiz Augusto von Dentz
2025-01-07 20:35 ` Luiz Augusto von Dentz
2025-01-08 2:26 ` Zijun Hu
1 sibling, 1 reply; 8+ messages in thread
From: Luiz Augusto von Dentz @ 2025-01-07 14:49 UTC (permalink / raw)
To: Mahesh Talewad
Cc: linux-bluetooth@vger.kernel.org, Devyani Godbole,
Sarveshwar Bajaj, Vinit Mehta
Hi Mahesh,
On Tue, Jan 7, 2025 at 7:05 AM Mahesh Talewad <mahesh.talewad@nxp.com> wrote:
>
> Hi Luiz,
>
> We tried with option - " UserspaceHID=true" in input.conf but HID Connection did not happen.
Do you have the HCI trace? Does it fail to connect or just doesn't
work because your kernel don't have uhid enabled?
> Thanks and regards,
> Mahesh Vithal Talewad
>
> -----Original Message-----
> From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
> Sent: Tuesday, January 7, 2025 1:24 AM
> To: Mahesh Talewad <mahesh.talewad@nxp.com>
> Cc: linux-bluetooth@vger.kernel.org; Devyani Godbole <devyani.godbole@nxp.com>; Sarveshwar Bajaj <sarveshwar.bajaj@nxp.com>; Vinit Mehta <vinit.mehta@nxp.com>
> Subject: [EXT] Re: [PATCH BlueZ v1 1/1] HID device not connecting issue fixed.
>
> Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button
>
>
> Hi Mahesh,
>
> On Tue, Dec 24, 2024 at 9:24 AM Mahesh Talewad <mahesh.talewad@nxp.com> wrote:
> >
> > While connecting BT-HID device showing br-profile unavailable and
> > connection did not happen.
> > Steps followed:
> > 1. Pair Ref device
> > 2. Connect Ref device
> > With this patch HID device is able to connect and HID traffic can be
> > observed in btmon.
> > ---
> > profiles/input/device.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/profiles/input/device.c b/profiles/input/device.c index
> > 8cf8e5ea7..a6047998a 100644
> > --- a/profiles/input/device.c
> > +++ b/profiles/input/device.c
> > @@ -89,7 +89,7 @@ struct input_device { };
> >
> > static int idle_timeout = 0;
> > -static uhid_state_t uhid_state = UHID_ENABLED;
> > +static uhid_state_t uhid_state = UHID_DISABLED;
>
> Well this would contradict input.conf:
>
> https://github.com/bluez/bluez/blob/master/profiles/input/input.conf#L18
>
> Perhaps what is missing is the detection that if uhid is not enabled in the kernel it would switch it off automatically, that said it was intended by the distro to know whether to enable it or not, so we don't have to play a guess game runtime.
>
> > static bool classic_bonded_only = true;
> >
> > void input_set_idle_timeout(int timeout)
> > --
> > 2.34.1
> >
>
>
> --
> Luiz Augusto von Dentz
--
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [EXT] Re: [PATCH BlueZ v1 1/1] HID device not connecting issue fixed.
2025-01-07 14:49 ` Luiz Augusto von Dentz
@ 2025-01-07 20:35 ` Luiz Augusto von Dentz
0 siblings, 0 replies; 8+ messages in thread
From: Luiz Augusto von Dentz @ 2025-01-07 20:35 UTC (permalink / raw)
To: Mahesh Talewad
Cc: linux-bluetooth@vger.kernel.org, Devyani Godbole,
Sarveshwar Bajaj, Vinit Mehta
Hi Mahesh,
On Tue, Jan 7, 2025 at 9:49 AM Luiz Augusto von Dentz
<luiz.dentz@gmail.com> wrote:
>
> Hi Mahesh,
>
> On Tue, Jan 7, 2025 at 7:05 AM Mahesh Talewad <mahesh.talewad@nxp.com> wrote:
> >
> > Hi Luiz,
> >
> > We tried with option - " UserspaceHID=true" in input.conf but HID Connection did not happen.
>
> Do you have the HCI trace? Does it fail to connect or just doesn't
> work because your kernel don't have uhid enabled?
If the problem is just that the kernel doesn't have it enabled you can
try with the following change:
https://patchwork.kernel.org/project/bluetooth/patch/20250107203056.1470303-1-luiz.dentz@gmail.com/
> > Thanks and regards,
> > Mahesh Vithal Talewad
> >
> > -----Original Message-----
> > From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
> > Sent: Tuesday, January 7, 2025 1:24 AM
> > To: Mahesh Talewad <mahesh.talewad@nxp.com>
> > Cc: linux-bluetooth@vger.kernel.org; Devyani Godbole <devyani.godbole@nxp.com>; Sarveshwar Bajaj <sarveshwar.bajaj@nxp.com>; Vinit Mehta <vinit.mehta@nxp.com>
> > Subject: [EXT] Re: [PATCH BlueZ v1 1/1] HID device not connecting issue fixed.
> >
> > Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button
> >
> >
> > Hi Mahesh,
> >
> > On Tue, Dec 24, 2024 at 9:24 AM Mahesh Talewad <mahesh.talewad@nxp.com> wrote:
> > >
> > > While connecting BT-HID device showing br-profile unavailable and
> > > connection did not happen.
> > > Steps followed:
> > > 1. Pair Ref device
> > > 2. Connect Ref device
> > > With this patch HID device is able to connect and HID traffic can be
> > > observed in btmon.
> > > ---
> > > profiles/input/device.c | 2 +-
> > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/profiles/input/device.c b/profiles/input/device.c index
> > > 8cf8e5ea7..a6047998a 100644
> > > --- a/profiles/input/device.c
> > > +++ b/profiles/input/device.c
> > > @@ -89,7 +89,7 @@ struct input_device { };
> > >
> > > static int idle_timeout = 0;
> > > -static uhid_state_t uhid_state = UHID_ENABLED;
> > > +static uhid_state_t uhid_state = UHID_DISABLED;
> >
> > Well this would contradict input.conf:
> >
> > https://github.com/bluez/bluez/blob/master/profiles/input/input.conf#L18
> >
> > Perhaps what is missing is the detection that if uhid is not enabled in the kernel it would switch it off automatically, that said it was intended by the distro to know whether to enable it or not, so we don't have to play a guess game runtime.
> >
> > > static bool classic_bonded_only = true;
> > >
> > > void input_set_idle_timeout(int timeout)
> > > --
> > > 2.34.1
> > >
> >
> >
> > --
> > Luiz Augusto von Dentz
>
>
>
> --
> Luiz Augusto von Dentz
--
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [EXT] Re: [PATCH BlueZ v1 1/1] HID device not connecting issue fixed.
2025-01-07 12:05 ` [EXT] " Mahesh Talewad
2025-01-07 14:49 ` Luiz Augusto von Dentz
@ 2025-01-08 2:26 ` Zijun Hu
1 sibling, 0 replies; 8+ messages in thread
From: Zijun Hu @ 2025-01-08 2:26 UTC (permalink / raw)
To: Mahesh Talewad, Luiz Augusto von Dentz
Cc: linux-bluetooth@vger.kernel.org, Devyani Godbole,
Sarveshwar Bajaj, Vinit Mehta
On 1/7/2025 8:05 PM, Mahesh Talewad wrote:
> Hi Luiz,
>
> We tried with option - " UserspaceHID=true" in input.conf but HID Connection did not happen.
>
i ever met a similar issue. you may try to set UserspaceHID=false or
enable kernel option CONFIG_UHID as below
https://lore.kernel.org/all/902c26ff-0fe7-4976-9dae-290e9afdaafa@icloud.com/
> Thanks and regards,
> Mahesh Vithal Talewad
>
> -----Original Message-----
> From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
> Sent: Tuesday, January 7, 2025 1:24 AM
> To: Mahesh Talewad <mahesh.talewad@nxp.com>
> Cc: linux-bluetooth@vger.kernel.org; Devyani Godbole <devyani.godbole@nxp.com>; Sarveshwar Bajaj <sarveshwar.bajaj@nxp.com>; Vinit Mehta <vinit.mehta@nxp.com>
> Subject: [EXT] Re: [PATCH BlueZ v1 1/1] HID device not connecting issue fixed.
>
> Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button
>
>
> Hi Mahesh,
>
> On Tue, Dec 24, 2024 at 9:24 AM Mahesh Talewad <mahesh.talewad@nxp.com> wrote:
>>
>> While connecting BT-HID device showing br-profile unavailable and
>> connection did not happen.
>> Steps followed:
>> 1. Pair Ref device
>> 2. Connect Ref device
>> With this patch HID device is able to connect and HID traffic can be
>> observed in btmon.
>> ---
>> profiles/input/device.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/profiles/input/device.c b/profiles/input/device.c index
>> 8cf8e5ea7..a6047998a 100644
>> --- a/profiles/input/device.c
>> +++ b/profiles/input/device.c
>> @@ -89,7 +89,7 @@ struct input_device { };
>>
>> static int idle_timeout = 0;
>> -static uhid_state_t uhid_state = UHID_ENABLED;
>> +static uhid_state_t uhid_state = UHID_DISABLED;
>
> Well this would contradict input.conf:
>
> https://github.com/bluez/bluez/blob/master/profiles/input/input.conf#L18
>
> Perhaps what is missing is the detection that if uhid is not enabled in the kernel it would switch it off automatically, that said it was intended by the distro to know whether to enable it or not, so we don't have to play a guess game runtime.
>
>> static bool classic_bonded_only = true;
>>
>> void input_set_idle_timeout(int timeout)
>> --
>> 2.34.1
>>
>
>
> --
> Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2025-01-08 2:26 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-24 14:24 [PATCH BlueZ v1 0/1] HID device connection issue fixed Mahesh Talewad
2024-12-24 14:24 ` [PATCH BlueZ v1 1/1] HID device not connecting " Mahesh Talewad
2024-12-24 15:32 ` HID device connection " bluez.test.bot
2025-01-06 19:53 ` [PATCH BlueZ v1 1/1] HID device not connecting " Luiz Augusto von Dentz
2025-01-07 12:05 ` [EXT] " Mahesh Talewad
2025-01-07 14:49 ` Luiz Augusto von Dentz
2025-01-07 20:35 ` Luiz Augusto von Dentz
2025-01-08 2:26 ` Zijun Hu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.