-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unknown state never passing to poweredOn #345
Comments
This problem made my Raspbian Homebridge setup completely useless. I downgraded the kernel, thanks @X4V1 for giving me this lead. |
Seeing this as well on my Raspberry Pi, downgrading to |
It's now fixed (explained in the update 4). Closing this issue. |
I can confirm that reverting to kernel version @edit Manual installation of the node-bluetooth-hci-socket library also solves the problem. I was doing something wrong earlier, my fault :D btw, if anyone has a problem doing a revert, search for a commit from the repository |
Hello,
I recently updated my debian 12 and after the update I'm not able to use my usb bluetooth adapter anymore.
Nothing has changed from code or anything else than the update of some packages.
After some tests I found that the noble.state is returning "unknown" and never changes to "poweredOn".
I checked the bluetooth adapter and it seems ok:
The status of bluetooth in systemctl is also ok (not giving any warning/error):
I don't see anything weird in the journal neither:
And from bluetoothctl I can connect to device using command line so I don't think the problem is coming from the adapter or the operating system configuration.
I'm running out of idea and I'm don't know what I can do next to investigate further. Any idea ?
I also found this opened issue #341 but I'm not sure if it is related to my problem.
Any help would be reallly appreciated.
UPDATE 1:
If I add the DEBUG env variable I can see an error from HCI:
I'm now investigating what this error could be.
UPDATE 2:
After some search with the error from UPDATE 1 I found another issue reported in node-bluetooth-hci-socket: abandonware/node-bluetooth-hci-socket#60
It's apparently fixed in another repository but according to another user it's not stable (nathankellenicki/node-poweredup#189)
UPDATE 3:
On my Debian 12 the kernel "6.1.0-26-amd64" seems to be the latest working one. Starting from "6.1.0-27-amd64" it returns an unknown state and never pass to poweredOn.
Downgrading the kernel from "6.1.0-27-amd64" to "6.1.0-26-amd64" solved the problem for me. It's not a solution but at least I can have my bluetooth adapter working until we find a real solution.
UPDATE 4 (with solution):
As mentionned in 'update 2' the problem was coming from node-bluetooth-hci-socket.
A fix has been merged now (abandonware/node-bluetooth-hci-socket#61).
As "node-bluetooth-hci-socket" is an optional dependency of noble, we can simply update that package without having to change anything in noble.
I just tested and it works fine with the latest kernel (6.1.0-28-amd64).
The only thing is that the latest npm version of node-bluetooth-hci-socket does not contains the fix so I had to install the fixed version manually pointing directly to the github repository (
npm i https://github.com/abandonware/node-bluetooth-hci-socket
)The text was updated successfully, but these errors were encountered: