-
Notifications
You must be signed in to change notification settings - Fork 83
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
Protocol not supported error when BT_RFCOMM is in the kernel config #44
Comments
Is |
As you can see from the zgrep I posted, the module is built into the kernel. So, its loaded for sure. |
Just to make sure, what is the output of |
If a module is built-in, it won't show up in lsmod. In fact, it just doesn't exist as a .ko file that you can modprobe or insmod to load it.
|
This is a bug in the Linux kernel. Try |
Do you have a link for the bug? How is bluetooth working if there is a bug with basic RFCOMM protocol missing? I can see and connect all devices fine. blueman has no issues. |
Now that makes sense since my arch machine also has
|
I haven't investigated this issue further. I only know that when I recompiled kernel with the following options then I see a "Protocol not supported" message:
|
ok, that's evidence. Do we need to make the other two (HIDP and BNEP) also as modules? |
I don't know. |
Mine is like this: (I didn't change these)
|
I can confirm. This is a weird kernel bug. It works when RFCOMM=m is selected. Closing this because its not this program's fault. |
$ bluetooth_battery AC:12:2F:0B:3D:84
Couldn't find the RFCOMM port number
Traceback (most recent call last):
File "/home/devsk/.local/bin/bluetooth_battery", line 33, in
sys.exit(load_entry_point('bluetooth-battery==1.2.0', 'console_scripts', 'bluetooth_battery')())
File "/home/devsk/.local/lib/python3.7/site-packages/bluetooth_battery/bluetooth_battery.py", line 90, in main
s = bluetooth.BluetoothSocket(bluetooth.RFCOMM)
File "/home/devsk/.local/lib/python3.7/site-packages/bluetooth/bluez.py", line 165, in init
_sock = _bt.btsocket (proto)
_bluetooth.error: (93, 'Protocol not supported')
$ zgrep RFCOMM /proc/config.gz
CONFIG_BT_RFCOMM=y
CONFIG_BT_RFCOMM_TTY=y
Running Gentoo Linux with kernel 5.10.2
$ bluetoothctl devices
Device AC:12:2F:0B:3D:84 Soundcore Life Q30
The text was updated successfully, but these errors were encountered: