Page 1 of 1

Need help with bluetooth adapter

PostPosted: Jan 1st, '24, 22:20
by daniewicz
Just bought a Insignia bluetooth usb adapter to use in Plasma and Mageia 9.

Code: Select all
$ lsusb
Bus 002 Device 005: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 002 Device 004: ID 05ac:0220 Apple, Inc. Aluminum Keyboard (ANSI)
Bus 002 Device 002: ID 05ac:1006 Apple, Inc. Hub in Aluminum Keyboard
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 05ac:1000 Apple, Inc. Bluetooth HCI MacBookPro (HID mode)
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 006 Device 009: ID 2357:0138 TP-Link 802.11ac NIC
Bus 006 Device 008: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 006 Device 011: ID 6655:8771 Realtek Bluetooth Radio
Bus 006 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


It shows up as device 11.

But in System Settings - Bluetooth the device does not appear.

Re: Need help with bluetooth adapter

PostPosted: Jan 2nd, '24, 00:35
by daniewicz
some specifics on the hardware

Realtek 8771 bluetooth radio using btusb

Re: Need help with bluetooth adapter

PostPosted: Jan 2nd, '24, 00:48
by doktor5000
Hi there and happy new year, the output of the following commands would be helpful:

Code: Select all
rfkill list all
bluetoothctl list
bluetoothctl show


and as root
Code: Select all
journalctl -ab | grep -i bluetooth

Re: Need help with bluetooth adapter

PostPosted: Jan 2nd, '24, 02:08
by daniewicz
Happy new year to you as well!

Code: Select all
rfkill list all
0: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no


Code: Select all
bluetoothctl list
Controller 10:A5:62:06:70:A0 localhost [default]


Code: Select all
bluetoothctl show
Controller 10:A5:62:06:70:A0 (public)
        Name: localhost
        Alias: localhost
        Class: 0x007c0104 (8126724)
        Powered: yes
        Discoverable: no
        DiscoverableTimeout: 0x000000b4 (180)
        Pairable: yes
        UUID: Message Notification Se.. (00001133-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
        UUID: OBEX Object Push          (00001105-0000-1000-8000-00805f9b34fb)
        UUID: Message Access Server     (00001132-0000-1000-8000-00805f9b34fb)
        UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
        UUID: IrMC Sync                 (00001104-0000-1000-8000-00805f9b34fb)
        UUID: Headset                   (00001108-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
        UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
        UUID: Phonebook Access Server   (0000112f-0000-1000-8000-00805f9b34fb)
        UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
        UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb)
        UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
        UUID: Handsfree Audio Gateway   (0000111f-0000-1000-8000-00805f9b34fb)
        UUID: Audio Source              (0000110a-0000-1000-8000-00805f9b34fb)
        UUID: OBEX File Transfer        (00001106-0000-1000-8000-00805f9b34fb)
        Modalias: usb:v1D6Bp0246d0546
        Discovering: no
        Roles: central
        Roles: peripheral
Advertising Features:
        ActiveInstances: 0x00 (0)
        SupportedInstances: 0x04 (4)
        SupportedIncludes: tx-power
        SupportedIncludes: appearance
        SupportedIncludes: local-name
        SupportedSecondaryChannels: 1M
        SupportedSecondaryChannels: 2M
        SupportedSecondaryChannels: Coded


Code: Select all
journalctl -ab | grep -i bluetooth
Jan 01 15:36:30 localhost kernel: usb 6-1: Product: Bluetooth Radio
Jan 01 15:36:30 localhost kernel: Bluetooth: Core ver 2.22
Jan 01 15:36:30 localhost kernel: NET: Registered PF_BLUETOOTH protocol family
Jan 01 15:36:30 localhost kernel: Bluetooth: HCI device and connection manager initialized
Jan 01 15:36:30 localhost kernel: Bluetooth: HCI socket layer initialized
Jan 01 15:36:30 localhost kernel: Bluetooth: L2CAP socket layer initialized
Jan 01 15:36:30 localhost kernel: Bluetooth: SCO socket layer initialized
Jan 01 15:36:30 localhost kernel: Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000b lmp_ver=0a lmp_subver=8761
Jan 01 15:36:30 localhost kernel: Bluetooth: hci0: RTL: rom_version status=0 version=1
Jan 01 15:36:30 localhost kernel: Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_fw.bin
Jan 01 15:36:30 localhost kernel: Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_config.bin
Jan 01 15:36:30 localhost kernel: Bluetooth: hci0: RTL: cfg_sz 6, total sz 30210
Jan 01 15:36:30 localhost kernel: Bluetooth: hci0: RTL: fw version 0xdfc6d922
Jan 01 15:36:39 localhost service_harddrake[839]: BLUETOOTH took:  0:00:00
Jan 01 15:36:39 localhost service_harddrake[839]: added BLUETOOTH: Realtek|Bluetooth Radio
Jan 01 15:36:39 localhost service_harddrake[839]: running: /bin/systemctl enable --no-reload bluetooth.service
Jan 01 15:36:39 localhost service_harddrake[839]: running: /bin/systemctl --quiet is-active bluetooth.service
Jan 01 15:36:39 localhost service_harddrake[839]: running: /bin/systemctl --no-block start bluetooth.service
Jan 01 15:36:39 localhost systemd[1]: Starting bluetooth.service...
Jan 01 15:36:39 localhost (uetoothd)[888]: ConfigurationDirectory 'bluetooth' already exists but the mode is different. (File system: 755 ConfigurationDirectoryMode: 555)
Jan 01 15:36:39 localhost systemd[1]: Started bluetooth.service.
Jan 01 15:36:39 localhost systemd[1]: Reached target bluetooth.target.
Jan 01 15:36:39 localhost kernel: Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Jan 01 15:36:39 localhost kernel: Bluetooth: BNEP filters: protocol multicast
Jan 01 15:36:39 localhost kernel: Bluetooth: BNEP socket layer initialized
Jan 01 15:36:39 localhost kernel: Bluetooth: MGMT ver 1.22
Jan 01 15:36:39 localhost NetworkManager[971]: <info>  [1704144999.9095] Loaded device plugin: NMBluezManager (/usr/lib64/NetworkManager/1.40.18/libnm-device-plugin-bluetooth.so)
Jan 01 15:36:51 localhost pulseaudio[2853]: Could not find org.bluez.BatteryProviderManager1.RegisterBatteryProvider(), is bluetoothd started with experimental features enabled (-E flag)?
Jan 01 15:36:51 localhost kernel: Bluetooth: RFCOMM TTY layer initialized
Jan 01 15:36:51 localhost kernel: Bluetooth: RFCOMM socket layer initialized
Jan 01 15:36:51 localhost kernel: Bluetooth: RFCOMM ver 1.11
Jan 01 15:36:51 localhost kernel:  snd_hda_codec_realtek snd_hda_codec_ca0110 snd_hda_codec_generic ledtrig_audio snd_hda_intel snd_intel_dspcfg coretemp iTCO_wdt snd_intel_sdw_acpi cfg80211 intel_pmc_bxt kvm_intel iTCO_vendor_support snd_hda_codec btusb applesmc btrtl btbcm snd_hda_core btintel btmtk snd_hwdep kvm bluetooth snd_pcm irqbypass ecdh_generic i2c_i801 rfkill snd_timer ecc acpi_cpufreq lpc_ich i2c_smbus e1000e snd i5400_edac ptp soundcore pps_core i5k_amb evdev msr fuse dm_mod loop configfs efivarfs dmi_sysfs ip_tables x_tables ipv6 crc_ccitt sr_mod sha512_ssse3 sha256_ssse3 firewire_ohci sha1_ssse3 ata_generic sha1_generic firewire_core xhci_pci ata_piix crc_itu_t xhci_pci_renesas nouveau drm_ttm_helper ttm video i2c_algo_bit mxm_wmi wmi drm_display_helper drm_kms_helper drm cec rc_core

Re: Need help with bluetooth adapter

PostPosted: Jan 2nd, '24, 03:59
by daniewicz
The driver available online only works for kernels older than 6.3. I am running 6.5.13-desktop-6.mga9.

https://linux-hardware.org/?id=usb:0bda-8771

Re: Need help with bluetooth adapter

PostPosted: Jan 2nd, '24, 04:03
by daniewicz
Maybe I need a firmware file?

https://linuxreviews.org/Realtek_RTL8761B

Re: Need help with bluetooth adapter

PostPosted: Jan 2nd, '24, 13:55
by doktor5000
Firmware has been loaded successfully:

Jan 01 15:36:30 localhost kernel: Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_fw.bin
Jan 01 15:36:30 localhost kernel: Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_config.bin


edit: Apart from that you don't have the chipset you linked to, you have
Bus 006 Device 011: ID 6655:8771 Realtek Bluetooth Radio
and not 0bda:8771


Can you post the output of
Code: Select all
lspcidrake -v

It would also be helpful if you could run
Code: Select all
journalctl -ab > /tmp/journal.log
as root after a fresh boot, and then later attach /tmp/journal.log here.
As you seem to have some kind of kernel oops in there, the last line in your previous journal output indicates a segfault, but the lines before that would show why.

Re: Need help with bluetooth adapter

PostPosted: Jan 2nd, '24, 18:50
by daniewicz
Code: Select all
$ lspcidrake -v
unknown         : Intel Corporation|5400 Chipset PCI Express Port 5 [BRIDGE_PCI] (vendor:8086 device:4025) (rev: 20)
i5k_amb         : Intel Corporation|5400 Chipset FSB Registers [BRIDGE_HOST] (vendor:8086 device:4030 subv:8086 subd:8086) (rev: 20)
unknown         : Intel Corporation|631xESB/632xESB/3100 Chipset PCI Express Root Port 3 [BRIDGE_PCI] (vendor:8086 device:2694) (rev: 09)
unknown         : Intel Corporation|631xESB/632xESB/3100 Chipset EHCI USB2 Controller [SERIAL_USB] (vendor:8086 device:268c subv:8086 subd:7270) (rev: 09)
firewire_ohci   : Texas Instruments|XIO2213A/B/XIO2221 IEEE-1394b OHCI Controller [Cheetah Express] [SERIAL_FIREWIRE] (vendor:104c device:823f)
unknown         : Intel Corporation|6311ESB/6321ESB PCI Express Downstream Port E1 [BRIDGE_PCI] (vendor:8086 device:3510) (rev: 01)
unknown         : Intel Corporation|5400 Chipset CE/SF Registers [BRIDGE_HOST] (vendor:8086 device:4031 subv:8086 subd:8086) (rev: 20)
snd_hda_intel   : NVIDIA Corporation|GM107 High Definition Audio Controller [GeForce 940MX] [MULTIMEDIA_AUDIO_DEV] (vendor:10de device:0fbc subv:10de subd:1098) (rev: a1)
unknown         : Intel Corporation|5400 Chipset FBD Registers [BRIDGE_HOST] (vendor:8086 device:4036 subv:8086 subd:8086) (rev: 20)
unknown         : Intel Corporation|5400 Chipset PCI Express Port 9 [BRIDGE_PCI] (vendor:8086 device:4029) (rev: 20)
unknown         : Intel Corporation|631xESB/632xESB/3100 Chipset UHCI USB Controller #1 [SERIAL_USB] (vendor:8086 device:2688 subv:8086 subd:7270) (rev: 09)
unknown         : Creative Labs|[SB X-Fi Xtreme Audio] CA0110-IBG PCIe to PCI Bridge [BRIDGE_PCI] (vendor:1102 device:7006)
e1000e          : Intel Corporation|80003ES2LAN Gigabit Ethernet Controller (Copper) [NETWORK_ETHERNET] (vendor:8086 device:1096 subv:8086 subd:3499) (rev: 01)
unknown         : Intel Corporation|631xESB/632xESB/3100 Chipset UHCI USB Controller #3 [SERIAL_USB] (vendor:8086 device:268a subv:8086 subd:7270) (rev: 09)
unknown         : Intel Corporation|5400 Chipset FBD Registers [BRIDGE_HOST] (vendor:8086 device:4035 subv:8086 subd:8086) (rev: 20)
i5k_amb         : Intel Corporation|5400 Chipset FSB Registers [BRIDGE_HOST] (vendor:8086 device:4030 subv:8086 subd:8086) (rev: 20)
ata_piix        : Intel Corporation|631xESB/632xESB IDE Controller [STORAGE_IDE] (vendor:8086 device:269e subv:8086 subd:7270) (rev: 09)
unknown         : Intel Corporation|6311ESB/6321ESB PCI Express Downstream Port E2 [BRIDGE_PCI] (vendor:8086 device:3514) (rev: 01)
snd_hda_intel   : Creative Labs|CA0110 [Sound Blaster X-Fi Xtreme Audio] [MULTIMEDIA_AUDIO_DEV] (vendor:1102 device:0009 subv:1102 subd:0018)
i5k_amb         : Intel Corporation|5400 Chipset FSB Registers [BRIDGE_HOST] (vendor:8086 device:4030 subv:8086 subd:8086) (rev: 20)
unknown         : Intel Corporation|631xESB/632xESB/3100 Chipset PCI Express Root Port 2 [BRIDGE_PCI] (vendor:8086 device:2692) (rev: 09)
unknown         : Intel Corporation|5400 Chipset Memory Controller Hub [BRIDGE_HOST] (vendor:8086 device:4003 subv:8086 subd:7270) (rev: 20)
i2c_i801        : Intel Corporation|631xESB/632xESB/3100 Chipset SMBus Controller [SERIAL_SMBUS] (vendor:8086 device:269b subv:8086 subd:7270) (rev: 09)
unknown         : Intel Corporation|5400 Chipset QuickData Technology Device [SYSTEM_OTHER] (vendor:8086 device:402f subv:8086 subd:8086) (rev: 20)
unknown         : Intel Corporation|82801 PCI Bridge [BRIDGE_PCI] (vendor:8086 device:244e) (rev: d9)
unknown         : Intel Corporation|631xESB/632xESB/3100 Chipset PCI Express Root Port 4 [BRIDGE_PCI] (vendor:8086 device:2696) (rev: 09)
unknown         : Intel Corporation|6311ESB/6321ESB PCI Express to PCI-X Bridge [BRIDGE_PCI] (vendor:8086 device:350c) (rev: 01)
snd_hda_intel   : Intel Corporation|631xESB/632xESB High Definition Audio Controller [MULTIMEDIA_AUDIO_DEV] (vendor:8086 device:269a) (rev: 09)
Card:NVIDIA GeForce 745 series and later: NVIDIA Corporation|GM107GL [Quadro K620] [DISPLAY_VGA] (vendor:10de device:13bb subv:10de subd:1098) (rev: a2)
unknown         : Intel Corporation|5400 Chipset FBD Registers [BRIDGE_HOST] (vendor:8086 device:4036 subv:8086 subd:8086) (rev: 20)
unknown         : Intel Corporation|6311ESB/6321ESB PCI Express Downstream Port E3 [BRIDGE_PCI] (vendor:8086 device:3518) (rev: 01)
e1000e          : Intel Corporation|80003ES2LAN Gigabit Ethernet Controller (Copper) [NETWORK_ETHERNET] (vendor:8086 device:1096 subv:8086 subd:3499) (rev: 01)
unknown         : Intel Corporation|631xESB/632xESB/3100 Chipset UHCI USB Controller #2 [SERIAL_USB] (vendor:8086 device:2689 subv:8086 subd:7270) (rev: 09)
unknown         : Intel Corporation|5400 Chipset PCI Express Port 1 [BRIDGE_PCI] (vendor:8086 device:4021) (rev: 20)
xhci_pci        : Fresco Logic|FL1100 USB 3.0 Host Controller [SERIAL_USB] (vendor:1b73 device:1100) (rev: 10)
i5k_amb         : Intel Corporation|5400 Chipset FSB Registers [BRIDGE_HOST] (vendor:8086 device:4030 subv:8086 subd:8086) (rev: 20)
lpc_ich         : Intel Corporation|631xESB/632xESB/3100 Chipset LPC Interface Controller [BRIDGE_ISA] (vendor:8086 device:2670 subv:8086 subd:7270) (rev: 09)
unknown         : Intel Corporation|631xESB/632xESB/3100 Chipset UHCI USB Controller #4 [SERIAL_USB] (vendor:8086 device:268b subv:8086 subd:7270) (rev: 09)
unknown         : Intel Corporation|5400 Chipset FBD Registers [BRIDGE_HOST] (vendor:8086 device:4035 subv:8086 subd:8086) (rev: 20)
i5k_amb         : Intel Corporation|5400 Chipset FSB Registers [BRIDGE_HOST] (vendor:8086 device:4030 subv:8086 subd:8086) (rev: 20)
unknown         : Intel Corporation|631xESB/632xESB/3100 Chipset PCI Express Root Port 1 [BRIDGE_PCI] (vendor:8086 device:2690) (rev: 09)
unknown         : Intel Corporation|631xESB/632xESB SATA AHCI Controller [STORAGE_SATA] (vendor:8086 device:2681 subv:8086 subd:7270) (rev: 09)
unknown         : Texas Instruments|XIO2213A/B/XIO2221 PCI Express to PCI Bridge [Cheetah Express] [BRIDGE_PCI] (vendor:104c device:823e)
unknown         : Intel Corporation|6311ESB/6321ESB PCI Express Upstream Port [BRIDGE_PCI] (vendor:8086 device:3500) (rev: 01)
hub             : Linux 6.5.13-desktop-6.mga9 uhci_hcd|UHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0001)
hub             : Linux 6.5.13-desktop-6.mga9 ehci_hcd|EHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0002)
hub             : Apple, Inc.|Hub in Aluminum Keyboard [Hub|Unused|Full speed (or root) hub] (vendor:05ac device:1006)
usbhid          : Apple, Inc|Apple Keyboard [Human Interface Device|Boot Interface Subclass|Keyboard] (vendor:05ac device:0220)
usbhid          : Logitech|USB Receiver [Human Interface Device|Boot Interface Subclass|Keyboard] (vendor:046d device:c52b)
hub             : Linux 6.5.13-desktop-6.mga9 uhci_hcd|UHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0001)
hub             : Linux 6.5.13-desktop-6.mga9 uhci_hcd|UHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0001)
usbhid          : Apple, Inc.|Bluetooth HCI MacBookPro (HID mode) [Human Interface Device|Boot Interface Subclass|Keyboard] (vendor:05ac device:1000)
hub             : Linux 6.5.13-desktop-6.mga9 uhci_hcd|UHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0001)
hub             : Linux 6.5.13-desktop-6.mga9 xhci-hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0002)
btusb           : Realtek|Bluetooth Radio [Wireless|Radio Frequency|Bluetooth] (vendor:6655 device:8771)
hub             : GenesysLogic|USB2.0 Hub [Hub|Unused|TT per port] (vendor:05e3 device:0610)
rtl88x2bu       : Realtek|802.11ac NIC (vendor:2357 device:0138)
hub             : Linux 6.5.13-desktop-6.mga9 xhci-hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0003)
hub             : GenesysLogic|USB3.0 Hub [Hub|Unused|Full speed (or root) hub] (vendor:05e3 device:0616)
hid_logitech_dj : Logitech USB Receiver
hid_apple       : Apple, Inc Apple Keyboard
hid_logitech_hidpp: Logitech M705
hid_logitech_dj : Logitech USB Receiver
hid_logitech_dj : Logitech USB Receiver
hid_apple       : Apple, Inc Apple Keyboard

Re: Need help with bluetooth adapter

PostPosted: Jan 2nd, '24, 19:08
by daniewicz
journal.log

Re: Need help with bluetooth adapter

PostPosted: Jan 2nd, '24, 21:18
by daniewicz
I see this in one of my logs

Code: Select all
Jan  1 13:56:44 localhost bluetoothd[1969076]: Bluetooth management interface 1.22 initialized
Jan  1 13:56:44 localhost bluetoothd[1969076]: src/adapter.c:reset_adv_monitors_complete() Failed to reset Adv Monitors: Failed (0x03)
Jan  1 13:56:44 localhost bluetoothd[1969076]: Failed to clear UUIDs: Failed (0x03)
Jan  1 13:56:44 localhost bluetoothd[1969076]: Failed to add UUID: Failed (0x03)
Jan  1 13:56:44 localhost bluetoothd[1969076]: Failed to add UUID: Failed (0x03)
Jan  1 13:56:44 localhost bluetoothd[1969076]: Failed to add UUID: Failed (0x03)

Re: Need help with bluetooth adapter

PostPosted: Jan 3rd, '24, 04:21
by daniewicz
Have a look at this doktor5000. My current 6.5.13-desktop-6.mga9 kernel may need an update:

https://lore.kernel.org/lkml/20230504212752.16179-1-dan.gora@gmail.com/T/

Re: Need help with bluetooth adapter

PostPosted: Jan 3rd, '24, 04:37
by Germ
kernel 6.6.9-3 is in backports testing. You can give it a try...

Re: Need help with bluetooth adapter

PostPosted: Jan 4th, '24, 03:00
by daniewicz
backports testing may be a little too adventurous for me :o

Re: Need help with bluetooth adapter

PostPosted: Jan 4th, '24, 17:34
by doktor5000
You simply install the kernel and boot it to see if your bluetooth adapter works - unless you don't want to get it to work.

Re: Need help with bluetooth adapter

PostPosted: Jan 5th, '24, 02:33
by daniewicz
Now running 6.6.9-desktop-5.mga9 but unfortunately the bluetooth is still not working.