All of lore.kernel.org
 help / color / mirror / Atom feed
* Commit ad383c2c6 ("Bluetooth: hci_sync: Enable advertising when LL privacy is enabled") breaks my MS ArcTouch mouse
@ 2022-01-23  1:51 Kenneth R. Crudup
  2022-01-24 19:45 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 12+ messages in thread
From: Kenneth R. Crudup @ 2022-01-23  1:51 UTC (permalink / raw)
  To: luiz.von.dentz; +Cc: Kenneth R. Crudup, linux-bluetooth


I'm running Linus' master (as of today, 1c52283265a462a100). With this commit in
place I get no bluetooth ("hcitool dev" shows no adapters) and/or I can't see my
MS ArcTouch mouse.

I have an Intel 7260 BT adapter (and have the latest linux-firmware version of
intel/ibt-19-32-4.sfi).

I'm sure you'll need more information, so let me know. I'm in the process of
reverting this from my branch, but it's not coming out cleanly so if there's
some code to try (nothing obvious in the linux-bt git), please let me know.

	-Kenny

-- 
Kenneth R. Crudup / Sr. SW Engineer, Scott County Consulting, Orange County CA

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Commit ad383c2c6 ("Bluetooth: hci_sync: Enable advertising when LL privacy is enabled") breaks my MS ArcTouch mouse
  2022-01-23  1:51 Commit ad383c2c6 ("Bluetooth: hci_sync: Enable advertising when LL privacy is enabled") breaks my MS ArcTouch mouse Kenneth R. Crudup
@ 2022-01-24 19:45 ` Luiz Augusto von Dentz
  2022-01-24 19:59   ` Kenneth R. Crudup
  0 siblings, 1 reply; 12+ messages in thread
From: Luiz Augusto von Dentz @ 2022-01-24 19:45 UTC (permalink / raw)
  To: Kenneth R. Crudup; +Cc: Luiz Augusto Von Dentz, linux-bluetooth

Hi Kenneth,

On Sun, Jan 23, 2022 at 8:33 PM Kenneth R. Crudup <kenny@panix.com> wrote:
>
>
> I'm running Linus' master (as of today, 1c52283265a462a100). With this commit in
> place I get no bluetooth ("hcitool dev" shows no adapters) and/or I can't see my
> MS ArcTouch mouse.

It would be great to have some logs, btmon, dmesg, etc. If the adapter
doesn't work this might be related to firmware loading and not the
commit you mentioned above, anymore the LL privacy feature is not
enabled by default so I wonder if you had it enabled in userspace?

> I have an Intel 7260 BT adapter (and have the latest linux-firmware version of
> intel/ibt-19-32-4.sfi).
>
> I'm sure you'll need more information, so let me know. I'm in the process of
> reverting this from my branch, but it's not coming out cleanly so if there's
> some code to try (nothing obvious in the linux-bt git), please let me know.
>
>         -Kenny
>
> --
> Kenneth R. Crudup / Sr. SW Engineer, Scott County Consulting, Orange County CA



-- 
Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Commit ad383c2c6 ("Bluetooth: hci_sync: Enable advertising when LL privacy is enabled") breaks my MS ArcTouch mouse
  2022-01-24 19:45 ` Luiz Augusto von Dentz
@ 2022-01-24 19:59   ` Kenneth R. Crudup
  2022-01-25  1:13     ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 12+ messages in thread
From: Kenneth R. Crudup @ 2022-01-24 19:59 UTC (permalink / raw)
  To: Luiz Augusto von Dentz
  Cc: Luiz Augusto Von Dentz, linux-bluetooth, Kenneth R. Crudup


On Mon, 24 Jan 2022, Luiz Augusto von Dentz wrote:

> > I'm running Linus' master (as of today, 1c52283265a462a100). With this commit in
> > place I get no bluetooth ("hcitool dev" shows no adapters) and/or I can't see my
> > MS ArcTouch mouse.

> It would be great to have some logs, btmon, dmesg, etc.

That's just it- nothing shows up in any log/dmesg; unlike when a non-MS mouse is
detected and I get the notification from the HID layer.

I even did an s/{bt}_debug/{bt}_info/g over all the files in the commit, and when
that mouse is power-cycled it doesn't even make a peep in the logs- it's like it's
not even being seen (vs. several lines when I use my ordinary mouse).

What params should I use for "btmon" so I can send you the output?

> If the adapter doesn't work this might be related to firmware loading

Turns out this was a red herring; I always have the adapter.

> anymore the LL privacy feature is not
> enabled by default so I wonder if you had it enabled in userspace?

Where would I go to check that?

	-Kenny

-- 
Kenneth R. Crudup / Sr. SW Engineer, Scott County Consulting, Orange County CA

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Commit ad383c2c6 ("Bluetooth: hci_sync: Enable advertising when LL privacy is enabled") breaks my MS ArcTouch mouse
  2022-01-24 19:59   ` Kenneth R. Crudup
@ 2022-01-25  1:13     ` Luiz Augusto von Dentz
  2022-01-25  1:27       ` Kenneth R. Crudup
                         ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Luiz Augusto von Dentz @ 2022-01-25  1:13 UTC (permalink / raw)
  To: Kenneth R. Crudup; +Cc: Luiz Augusto Von Dentz, linux-bluetooth

Hi Kenneth,

On Mon, Jan 24, 2022 at 11:59 AM Kenneth R. Crudup <kenny@panix.com> wrote:
>
>
> On Mon, 24 Jan 2022, Luiz Augusto von Dentz wrote:
>
> > > I'm running Linus' master (as of today, 1c52283265a462a100). With this commit in
> > > place I get no bluetooth ("hcitool dev" shows no adapters) and/or I can't see my
> > > MS ArcTouch mouse.
>
> > It would be great to have some logs, btmon, dmesg, etc.
>
> That's just it- nothing shows up in any log/dmesg; unlike when a non-MS mouse is
> detected and I get the notification from the HID layer.
>
> I even did an s/{bt}_debug/{bt}_info/g over all the files in the commit, and when
> that mouse is power-cycled it doesn't even make a peep in the logs- it's like it's
> not even being seen (vs. several lines when I use my ordinary mouse).
>
> What params should I use for "btmon" so I can send you the output?

Try something like:

sudo btmon -t

Also restart the daemon just in case and then do:

bluetoothctl> power on

> > If the adapter doesn't work this might be related to firmware loading
>
> Turns out this was a red herring; I always have the adapter.
>
> > anymore the LL privacy feature is not
> > enabled by default so I wonder if you had it enabled in userspace?
>
> Where would I go to check that?

It is enabled via main.conf, if you have not modified that shouldn't be enabled.

>         -Kenny
>
> --
> Kenneth R. Crudup / Sr. SW Engineer, Scott County Consulting, Orange County CA



-- 
Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Commit ad383c2c6 ("Bluetooth: hci_sync: Enable advertising when LL privacy is enabled") breaks my MS ArcTouch mouse
  2022-01-25  1:13     ` Luiz Augusto von Dentz
@ 2022-01-25  1:27       ` Kenneth R. Crudup
  2022-01-25  1:29       ` Kenneth R. Crudup
  2022-01-25  1:51       ` Kenneth R. Crudup
  2 siblings, 0 replies; 12+ messages in thread
From: Kenneth R. Crudup @ 2022-01-25  1:27 UTC (permalink / raw)
  To: Luiz Augusto von Dentz
  Cc: Luiz Augusto Von Dentz, linux-bluetooth, Kenneth R. Crudup


On Mon, 24 Jan 2022, Luiz Augusto von Dentz wrote:

> Try something like:
> sudo btmon -t

----
$ sudo btmon -t
Bluetooth monitor ver 5.55
= Note: Linux version 5.17.0-rc1-XPS-Kenny+ (x86_64)                                                   17:23:38.260348
= Note: Bluetooth subsystem version 2.22                                                               17:23:38.260349
= New Index: C0:B8:83:1F:F4:45 (Primary,USB,hci0)                                               [hci0] 17:23:38.260349
= Open Index: C0:B8:83:1F:F4:45                                                                 [hci0] 17:23:38.260349
= Index Info: C0:B8:83:1F:F4:45 (Intel Corp.)                                                   [hci0] 17:23:38.260350
@ MGMT Open: bluetoothd (privileged) version 1.21                                             {0x0001} 17:23:38.260350
----

Then nothing else, when I power/move on this MS mouse. If I power on my generic
BT mouse, I get plenty of output. Are there other options to try?

> Also restart the daemon just in case and then do:
>
> bluetoothctl> power on

It was already on:
----
$  sudo bluetoothctl
Agent registered
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# quit
$
----

	-Kenny

-- 
Kenneth R. Crudup / Sr. SW Engineer, Scott County Consulting, Orange County CA

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Commit ad383c2c6 ("Bluetooth: hci_sync: Enable advertising when LL privacy is enabled") breaks my MS ArcTouch mouse
  2022-01-25  1:13     ` Luiz Augusto von Dentz
  2022-01-25  1:27       ` Kenneth R. Crudup
@ 2022-01-25  1:29       ` Kenneth R. Crudup
  2022-01-25  1:51       ` Kenneth R. Crudup
  2 siblings, 0 replies; 12+ messages in thread
From: Kenneth R. Crudup @ 2022-01-25  1:29 UTC (permalink / raw)
  To: Luiz Augusto von Dentz
  Cc: Luiz Augusto Von Dentz, linux-bluetooth, Kenneth R. Crudup


On Mon, 24 Jan 2022, Luiz Augusto von Dentz wrote:

> It is enabled via main.conf, if you have not modified that shouldn't be enabled.

Seems pretty generic:

----
$ nocomment /etc/bluetooth/*
/etc/bluetooth/input.conf:[General]
/etc/bluetooth/main.conf:[General]
/etc/bluetooth/main.conf:[Policy]
/etc/bluetooth/main.conf:AutoEnable=true
/etc/bluetooth/network.conf:[General]
----

	-Kenny

-- 
Kenneth R. Crudup / Sr. SW Engineer, Scott County Consulting, Orange County CA

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Commit ad383c2c6 ("Bluetooth: hci_sync: Enable advertising when LL privacy is enabled") breaks my MS ArcTouch mouse
  2022-01-25  1:13     ` Luiz Augusto von Dentz
  2022-01-25  1:27       ` Kenneth R. Crudup
  2022-01-25  1:29       ` Kenneth R. Crudup
@ 2022-01-25  1:51       ` Kenneth R. Crudup
  2022-01-27 20:58         ` Kenneth R. Crudup
  2 siblings, 1 reply; 12+ messages in thread
From: Kenneth R. Crudup @ 2022-01-25  1:51 UTC (permalink / raw)
  To: Luiz Augusto von Dentz
  Cc: Luiz Augusto Von Dentz, Kenneth R. Crudup, linux-bluetooth

[-- Attachment #1: Type: text/plain, Size: 206 bytes --]


Oh, this happens too (see attached .PNG) when I try and add a device:

"Your Bluetooth adapter is not pairable."

	-Kenny

-- 
Kenneth R. Crudup / Sr. SW Engineer, Scott County Consulting, Orange County CA

[-- Attachment #2: Type: image/png, Size: 22846 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Commit ad383c2c6 ("Bluetooth: hci_sync: Enable advertising when LL privacy is enabled") breaks my MS ArcTouch mouse
  2022-01-25  1:51       ` Kenneth R. Crudup
@ 2022-01-27 20:58         ` Kenneth R. Crudup
  2022-01-29 22:07           ` Kenneth R. Crudup
  0 siblings, 1 reply; 12+ messages in thread
From: Kenneth R. Crudup @ 2022-01-27 20:58 UTC (permalink / raw)
  To: Luiz Augusto von Dentz
  Cc: Luiz Augusto Von Dentz, linux-bluetooth, Kenneth R. Crudup


Anything else I can do to help you diagnose this regression? One thing I do
(vaguely) remember when building a custom kernel some time ago is that this
device does some sort of "GATT encryption" (I'm sure I'm misremembering this,
it's been a few years) and I couldn't connect to it either unless the
appropriate config setup was used when building the kernel.

Thanks,

	-Kenny

-- 
Kenneth R. Crudup / Sr. SW Engineer, Scott County Consulting, Orange County CA

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Commit ad383c2c6 ("Bluetooth: hci_sync: Enable advertising when LL privacy is enabled") breaks my MS ArcTouch mouse
  2022-01-27 20:58         ` Kenneth R. Crudup
@ 2022-01-29 22:07           ` Kenneth R. Crudup
  2022-03-05  0:03             ` Kenneth R. Crudup
  0 siblings, 1 reply; 12+ messages in thread
From: Kenneth R. Crudup @ 2022-01-29 22:07 UTC (permalink / raw)
  To: Luiz Augusto von Dentz
  Cc: Luiz Augusto Von Dentz, linux-bluetooth, Kenneth R. Crudup


So, it turns out that my lack of discoverability is also tied into this last
series of BT commits (and apparently the result of some commit other than the
one named in the Subject: line); while I could take the time to bisect this
issue as well, seems to me that something as basic as not being able to put
an HCI adapter in discoverable mode is a pretty big regression (especially
on something as ubiquitous as Intel BT adapters) that I can't be the only
one who's seeing these issues- have there been any other reports, and are
there any fixes upcoming?

	-Kenny

-- 
Kenneth R. Crudup / Sr. SW Engineer, Scott County Consulting, Orange County CA

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Commit ad383c2c6 ("Bluetooth: hci_sync: Enable advertising when LL privacy is enabled") breaks my MS ArcTouch mouse
  2022-01-29 22:07           ` Kenneth R. Crudup
@ 2022-03-05  0:03             ` Kenneth R. Crudup
  2022-03-05  1:10               ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 12+ messages in thread
From: Kenneth R. Crudup @ 2022-03-05  0:03 UTC (permalink / raw)
  To: Luiz Augusto von Dentz
  Cc: Luiz Augusto Von Dentz, linux-bluetooth, Kenneth R. Crudup,
	regressions, marcel


On Sat, 29 Jan 2022, Kenneth R. Crudup wrote:

> So, it turns out that my lack of discoverability is also tied into this last
> series of BT commits

So, after "for-net-next-2021-11-16" was pushed into Linus' master, my Laptop's
Bluetooth has been horribly broken; I can't add new devices (says "can't put
your adaptor into Discoverable mode"), and my MS ArcTouch mouse (and who knows
what else) doesn't work anymore. I also get stalls/crashes from the BT system
when trying to shutdown or reboot.

This is a *serious* regression- I had to revert the entirety of that merge.
I keep checking the BT changes that have made it to Linus' master of late (and
even monitoring the Bluetooth git), after nearly 6 weeks, BT is still broken-
certainly I can't be the only person seeing these issues. I did see where
someone had a regression about not being able to do scans, and that was fixed,
but trying that commit (since merged to master) doesn't fix anything for me.

My BT adaptor is an Intel AX201 on USB:

----
[Fri Mar  4 15:40:52 2022] Bluetooth: hci0: Found device firmware: intel/ibt-19-32-4.sfi
[Fri Mar  4 15:40:52 2022] Bluetooth: hci0: Boot Address: 0x24800
[Fri Mar  4 15:40:52 2022] Bluetooth: hci0: Firmware Version: 126-5.22
----

----
Bus 003 Device 003: ID 8087:0026 Intel Corp.
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.01
  bDeviceClass          224 Wireless
  bDeviceSubClass         1 Radio Frequency
  bDeviceProtocol         1 Bluetooth
  bMaxPacketSize0        64
  idVendor           0x8087 Intel Corp.
  idProduct          0x0026
----

What can I do to help you fix this?

	-Kenny

-- 
Kenneth R. Crudup / Sr. SW Engineer, Scott County Consulting, Orange County CA

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Commit ad383c2c6 ("Bluetooth: hci_sync: Enable advertising when LL privacy is enabled") breaks my MS ArcTouch mouse
  2022-03-05  0:03             ` Kenneth R. Crudup
@ 2022-03-05  1:10               ` Luiz Augusto von Dentz
  2022-03-05  2:28                 ` Kenneth R. Crudup
  0 siblings, 1 reply; 12+ messages in thread
From: Luiz Augusto von Dentz @ 2022-03-05  1:10 UTC (permalink / raw)
  To: Kenneth R. Crudup
  Cc: Luiz Augusto Von Dentz, linux-bluetooth, regressions, Marcel Holtmann

Hi Kenneth,

On Fri, Mar 4, 2022 at 4:06 PM Kenneth R. Crudup <kenny@panix.com> wrote:
>
>
> On Sat, 29 Jan 2022, Kenneth R. Crudup wrote:
>
> > So, it turns out that my lack of discoverability is also tied into this last
> > series of BT commits
>
> So, after "for-net-next-2021-11-16" was pushed into Linus' master, my Laptop's
> Bluetooth has been horribly broken; I can't add new devices (says "can't put
> your adaptor into Discoverable mode"), and my MS ArcTouch mouse (and who knows
> what else) doesn't work anymore. I also get stalls/crashes from the BT system
> when trying to shutdown or reboot.
>
> This is a *serious* regression- I had to revert the entirety of that merge.
> I keep checking the BT changes that have made it to Linus' master of late (and
> even monitoring the Bluetooth git), after nearly 6 weeks, BT is still broken-
> certainly I can't be the only person seeing these issues. I did see where
> someone had a regression about not being able to do scans, and that was fixed,
> but trying that commit (since merged to master) doesn't fix anything for me.
>
> My BT adaptor is an Intel AX201 on USB:
>
> ----
> [Fri Mar  4 15:40:52 2022] Bluetooth: hci0: Found device firmware: intel/ibt-19-32-4.sfi
> [Fri Mar  4 15:40:52 2022] Bluetooth: hci0: Boot Address: 0x24800
> [Fri Mar  4 15:40:52 2022] Bluetooth: hci0: Firmware Version: 126-5.22
> ----
>
> ----
> Bus 003 Device 003: ID 8087:0026 Intel Corp.
> Device Descriptor:
>   bLength                18
>   bDescriptorType         1
>   bcdUSB               2.01
>   bDeviceClass          224 Wireless
>   bDeviceSubClass         1 Radio Frequency
>   bDeviceProtocol         1 Bluetooth
>   bMaxPacketSize0        64
>   idVendor           0x8087 Intel Corp.
>   idProduct          0x0026
> ----
>
> What can I do to help you fix this?

Have you tried with bluetooth.git tree:

https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth.git/

This was the latest one that fixes the MGMT commands not working:

https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth.git/commit/?h=for-net-2022-03-03&id=008ee9eb8a11bcabf12c91771dd4f470b082bd44

It seems some setups are more susceptible to it than others and CI was
one of those when only one MGMT command is ever pending which masked
the problem for us for a while.


-- 
Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Commit ad383c2c6 ("Bluetooth: hci_sync: Enable advertising when LL privacy is enabled") breaks my MS ArcTouch mouse
  2022-03-05  1:10               ` Luiz Augusto von Dentz
@ 2022-03-05  2:28                 ` Kenneth R. Crudup
  0 siblings, 0 replies; 12+ messages in thread
From: Kenneth R. Crudup @ 2022-03-05  2:28 UTC (permalink / raw)
  To: Luiz Augusto von Dentz
  Cc: Luiz Augusto Von Dentz, linux-bluetooth, regressions,
	Marcel Holtmann, Kenneth R. Crudup


On Fri, 4 Mar 2022, Luiz Augusto von Dentz wrote:

> Have you tried with bluetooth.git tree:
> https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth.git/
> This was the latest one that fixes the MGMT commands not working:
> https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth.git/commit/?h=for-net-2022-03-03&id=008ee9eb8a11bcabf12c91771dd4f470b082bd44

Yup, that seems to have fixed things! I've even merged that with Linus' current
master (which went in cleanly) and will look for these changes to me merged in.

Thanks to you and everyone else who helped find and fix this regression!

	-Kenny

-- 
Kenneth R. Crudup / Sr. SW Engineer, Scott County Consulting, Orange County CA

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-03-05  2:28 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-23  1:51 Commit ad383c2c6 ("Bluetooth: hci_sync: Enable advertising when LL privacy is enabled") breaks my MS ArcTouch mouse Kenneth R. Crudup
2022-01-24 19:45 ` Luiz Augusto von Dentz
2022-01-24 19:59   ` Kenneth R. Crudup
2022-01-25  1:13     ` Luiz Augusto von Dentz
2022-01-25  1:27       ` Kenneth R. Crudup
2022-01-25  1:29       ` Kenneth R. Crudup
2022-01-25  1:51       ` Kenneth R. Crudup
2022-01-27 20:58         ` Kenneth R. Crudup
2022-01-29 22:07           ` Kenneth R. Crudup
2022-03-05  0:03             ` Kenneth R. Crudup
2022-03-05  1:10               ` Luiz Augusto von Dentz
2022-03-05  2:28                 ` Kenneth R. Crudup

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.