TransWikia.com

RPI 4B - Bluetooth unavailable on Ubuntu 20.04

Raspberry Pi Asked by AymDev on December 12, 2021

I want to use Bluetooth on a Raspberry Pi 4B which has Bluetooth included.

I used an Ubuntu 20.04 64-bit server image (using the Imager) mostly because I already know this OS.
After a fresh install, SSH connection, installation of bluez, it can’t find the device. The following commands returned nothing:

$ hcitool dev
Devices:

$ hciconfig -a

I just reinstalled a Raspberry Pi OS 32-bit Lite (still with the Imager) on the micro-SD and without installing anything it works. Here is the output:

$ hcitool dev
Devices:
    hci0    DC:A6:32:86:B6:5F

$ hciconfig -a
hci0:   Type: Primary  Bus: UART
    BD Address: DC:A6:32:86:B6:5F  ACL MTU: 1021:8  SCO MTU: 64:1
    UP RUNNING 
    RX bytes:1500 acl:0 sco:0 events:88 errors:0
    TX bytes:2956 acl:0 sco:0 commands:88 errors:0
    Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
    Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
    Link policy: RSWITCH SNIFF 
    Link mode: SLAVE ACCEPT 
    Name: 'raspberrypi'
    Class: 0x000000
    Service Classes: Unspecified
    Device Class: Miscellaneous, 
    HCI Version: 5.0 (0x9)  Revision: 0x13b
    LMP Version: 5.0 (0x9)  Subversion: 0x6119
    Manufacturer: Cypress Semiconductor Corporation (305)

What is missing on my Ubuntu ? Is it able to use the BT device ?

One Answer

Finally solved it !
I thought this was an issue and searched how to "fix" it but it is an intended behaviour.

20.04 solution (source [FR]):

Install the pi-bluetooth package:

sudo apt-get install pi-bluetooth

Edit the /boot/firmware/usrcfg.txt file to add the following line at the end:

include btcfg.txt

Reboot:

sudo reboot

Check that the device is detected:

hciconfig -a

hci0:   Type: Primary  Bus: UART
    ...

For Ubuntu 18.04 you can try this short guide (not tested): How to enable Bluetooth on Raspberry Pi 4 running Ubuntu server 18.04 - Mohammad Tomaraei

Answered by AymDev on December 12, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP