Disable internal Bluetooth

Guys can you please help me disable internal bluetooth ?
I’ve tried everything including playing with disabling modules but nothing works for me :frowning:
My box is behind tv and ir isn’t best solution for me I’m afraid :frowning:

Got usb BT dongle plugged in but have no idea how to use it ?

Can you please look into my dmesg and lsmd and guide me what need to be done ?
Added lsusb and hciconfig -a in case it’s needed.

Appriciate all help!

Tried disable hci1 and enable hci0 but getting error.

Try blacklisting the BT driver for the internal BT.

https://wiki.coreelec.org/coreelec:updates#disable_kernel_module

Based on your lsmod output, 8852be is the name of your BT module (assuming it’s the only BT device present).

hciconfig hci0 down will disable the BT controller temporarily.

Tried to blacklist 8852be module but Bluetooth was still visible after reboot. Hence why I’m looking for a help :blush:
I do really badly need Bluetooth working on this box.
Not sure if my dongle isn’t dodgy. It was working with my ubuntu and windows alright.

What is the internal BT device, and what is the USB BT dongle you’re trying to load?

Bluetoothctl allows switching between different BT controllers on the box.
show bluetooth devices - bluetoothctl list
select active bluetooth device - bluetoothctl select <mac-of-bt-device>

Do you know if CE supports the BT chip in your USB dongle? Blacklisting a module prevents that BT device from loading, it doesn’t disable Bluetooth. When you say Bluetooth is still visible after blacklisting, visible how?

Really don’t know if CE supports this chip in usb dongle.
Never used it with CE…Never had to.

aml:~ # bluetoothctl list
Controller 48:5C:2C:D6:6B:53 aml [default]

Shows only internal bluetooth.

aml:~ # hciconfig -a
hci1:	Type: Primary  Bus: UART
	BD Address: 48:5C:2C:D6:6B:53  ACL MTU: 1021:6  SCO MTU: 255:12
	UP RUNNING 
	RX bytes:1687 acl:0 sco:0 events:61 errors:0
	TX bytes:3427 acl:0 sco:0 commands:60 errors:0
	Features: 0xff 0xff 0xff 0xfa 0xdb 0xbf 0x7b 0x87
	Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
	Link policy: RSWITCH HOLD SNIFF PARK 
	Link mode: PERIPHERAL ACCEPT 
	Name: 'aml'
	Class: 0x0c0000
	Service Classes: Rendering, Capturing
	Device Class: Miscellaneous, 
	HCI Version: 5.2 (0xb)  Revision: 0xd4a9
	LMP Version: 5.2 (0xb)  Subversion: 0x415c
	Manufacturer: Realtek Semiconductor Corporation (93)

hci0:	Type: Primary  Bus: USB
	BD Address: 00:1A:7D:DA:71:12  ACL MTU: 679:8  SCO MTU: 48:16
	DOWN 
	RX bytes:367 acl:0 sco:0 events:12 errors:0
	TX bytes:37 acl:0 sco:0 commands:12 errors:0
	Features: 0xbf 0x2e 0x4d 0xfa 0xd8 0x3d 0x7b 0x87
	Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV3 
	Link policy: 
	Link mode: PERIPHERAL ACCEPT 

Think this dongle isn’t supported :unamused:

aml:~ # hciconfig hci0 up
Can't init device hci0: Invalid argument (22)

Looking at your previous logs the USB dongle uses a barrot 8041a02 chip and shows up as a fake Cambridge Silicon Radio device (it’s a CRS clone).

I don’t know if this chip is supported in CE, searching the forum there are a couple others who mention using these CSR clones and BT not working, but I didn’t see any fixes.

I’ve used a realtek 8761 (rtl8761b) USB dongle with CE. It was recognized without any additional configurations, and they can be found for ~$5.

Should have some other dongle back in work place. Will try that.
Do you know how to permanantly disable internal bluetooth with udev rules ?

This is not possible, it should look like this:

CoreELEC:~ # cat /storage/.config/modprobe.d/disable-8852be.conf
blacklist 8852be

Created file with name you pointed and put

blacklist 8852be

inside and rebooted.
Bluetooth is still available.

What do you think about my dongle Portish?
Is that dodgy think which ai should throw in to the bin? :wink:

Sorry, I think btrtl is a bt module for realtek

and your internal bt looks like realtek

hci1:	Type: Primary  Bus: UART
	BD Address: 48:5C:2C:D6:6B:53  ACL MTU: 1021:6  SCO MTU: 255:12
	UP RUNNING 
	RX bytes:52896 acl:0 sco:0 events:540 errors:0
	TX bytes:9082 acl:0 sco:0 commands:224 errors:0
	Features: 0xff 0xff 0xff 0xfa 0xdb 0xbf 0x7b 0x87
	Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
	Link policy: RSWITCH HOLD SNIFF PARK 
	Link mode: PERIPHERAL ACCEPT 
	Name: 'aml'
	Class: 0x0c0000
	Service Classes: Rendering, Capturing
	Device Class: Miscellaneous, 
	HCI Version: 5.2 (0xb)  Revision: 0xd4a9
	LMP Version: 5.2 (0xb)  Subversion: 0x415c
	**Manufacturer: Realtek Semiconductor Corporation (93)**

Try blacklisting btrtl instead. But I don’t think this is necessary. Two BT devices can be enabled, bluetoothctl chooses which is the active BT controller.

This actually disabled WiFi and left Bluetooth working :blush:
So it does something :wink:

yes 8852be is your wifi module

Blackliating btrtl does nothing as well :wink:

it’s one of these (btrtl,btqca,btintel,hci_uart,btbcm,btusb,rfcomm):

bluetooth 1036288 31 btrtl,btqca,btintel,hci_uart,btbcm,btusb,rfcomm

It would help to run lsmod without the USB BT dongle present, it’s hard to tell which of these are being loaded for that. and which for the internal BT.

Removed dongle, rebooted and got this

https://paste.coreelec.org/PumpkinsNausea

try hci_uart it’s the core serial BT driver.

I was worry if I disable this one the dongle won’t work.
Will leave it for now till I get working dongle and then play again :slight_smile: Thanks for your help guys!

CoreELEC:~ # bluetoothctl list
Controller 43:62:B0:00:1F:AC CoreELEC [default]
CoreELEC:~ # bluetoothctl select 43:62:B0:00:1F:AC

You should have two MAC on list, select the one you want to use for BT.

2 Likes

Plugged in new dongle I got from ebay and system picked it up without reboot selecting the usb one as default :blush:
Happy days! Thanks again guys for your help! :heart:

1 Like