Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
bluetooth firmware won't load
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
francougo
n00b
n00b


Joined: 07 Oct 2021
Posts: 5

PostPosted: Thu Nov 04, 2021 12:53 am    Post subject: bluetooth firmware won't load Reply with quote

I followed the wiki guide on how to set up bluetooth, but i wasn't able to pair with any device and scaning wouldn't work either. Tried dmesg and it seems like the correct firmware is not being detected
Code:
 dmesg | grep -i bluetooth
[    1.148452] thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is unblocked
[    2.227984] usb 3-10: Product: Bluetooth Radio
[    3.154371] Bluetooth: Core ver 2.22
[    3.154384] Bluetooth: HCI device and connection manager initialized
[    3.154388] Bluetooth: HCI socket layer initialized
[    3.154391] Bluetooth: L2CAP socket layer initialized
[    3.154393] Bluetooth: SCO socket layer initialized
[    3.157724] Bluetooth: hci0: RTL: examining hci_ver=0b hci_rev=000a lmp_ver=0b lmp_subver=8852
[    3.157725] Bluetooth: hci0: RTL: unknown IC info, lmp subver 8852, hci rev 000a, hci ver 000b
[    3.157726] Bluetooth: hci0: RTL: assuming no firmware upload needed


My bluetooth device is Realtek 8852 and i think it should load rtl8852au_fw.bin as the firmware because i booted from a manjaro liveCD, in which bluetooth worked properly, and it was loading that file as firmware.
Is there a way to detect which firmware to load in this case or do i need to manually load it myself?

Thanks in advance
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54830
Location: 56N 3W

PostPosted: Fri Nov 05, 2021 8:38 pm    Post subject: Reply with quote

francougo,

There is a few warts with kernel drivers with firmware.

The driver will load the firmware as a part of its initialisation.
That means that when the driver is configured as <*>, te be built into the kernel, the firmware must be built into the kernel too.
When the kernel driver is <M>, the firmware can be read from /lib/firmware.
The other two combinations fail by design.

If your boot media needed rtl8852au_fw.bin, Gentoo should too.
Its provided in linux-firmware.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
spica
Guru
Guru


Joined: 04 Jun 2021
Posts: 339

PostPosted: Fri Nov 05, 2021 9:33 pm    Post subject: Re: bluetooth firmware won't load Reply with quote

francougo wrote:
Is there a way to detect which firmware to load

In addition to Neddy's answer,

you can inspect the output of dmesg
in most cases if a driver can't load a firmware, there can be a message in dmesg
Code:
dmesg | grep -iE 'firm|fail|err'

This way you can make sure what file the driver attempts to load
Back to top
View user's profile Send private message
francougo
n00b
n00b


Joined: 07 Oct 2021
Posts: 5

PostPosted: Tue Nov 09, 2021 5:31 pm    Post subject: Reply with quote

I tried emerging git-sources kernel, i have the same options set for both versions but only the newer one works properly.
The output of dmesg when booting from the gentoo-sources kernel (version 5.10.74):
Code:

dmesg|grep -iE 'firm|fail|err'
[    0.030454] ACPI: IRQ0 used by override.
[    0.030455] ACPI: IRQ9 used by override.
[    0.136295] ACPI: EC: interrupt blocked
[    0.139644] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[    0.157240] ACPI: Using IOAPIC for interrupt routing
[    0.435196] ACPI: EC: interrupt unblocked
[    0.543889] Loading firmware: i915/tgl_dmc_ver2_08.bin
[    0.543903] i915 0000:00:02.0: Direct firmware load for i915/tgl_dmc_ver2_08.bin failed with error -2
[    0.543905] i915 0000:00:02.0: [drm] Failed to load DMC firmware i915/tgl_dmc_ver2_08.bin. Disabling runtime power management.
[    0.543908] i915 0000:00:02.0: [drm] DMC firmware homepage: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/i915
[    0.578408] e1000e 0000:00:1f.6: Interrupt Throttling Rate (ints/sec) set to dynamic conservative mode
[    1.110811] i801_smbus 0000:00:1f.4: SMBus using PCI interrupt
[    1.157174] thinkpad_acpi: warning: userspace override of important firmware LEDs is enabled
[    1.198395] Loading firmware: regulatory.db
[    1.198403] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.198404] cfg80211: failed to load regulatory.db
[    2.825114] psmouse serio2: trackpoint: Elan TrackPoint firmware: 0x11, buttons: 3/3
[    3.475756] Bluetooth: hci0: RTL: assuming no firmware upload needed
[   77.805434] Loading firmware: rtw89/rtw8852a_fw.bin
[   77.813027] rtw89_pci 0000:09:00.0: Firmware version 0.13.8.0, cmd version 0, type 1
[   77.813029] rtw89_pci 0000:09:00.0: Firmware version 0.13.8.0, cmd version 0, type 3

This time i checked that all bluetooth drivers were built as modules and also tried including rtl8852au_config.bin and rtl8852au_fw.bin in the kernel which are the files loaded from both my boot media and the git-sources kernel (version 5.15), but it won't load the firmware.

I think maybe there is something wrong with this
Code:

[    2.801917] Bluetooth: hci0: RTL: examining hci_ver=0b hci_rev=000a lmp_ver=0b lmp_subver=8852
[    2.801919] Bluetooth: hci0: RTL: unknown IC info, lmp subver 8852, hci rev 000a, hci ver 000b

Because that last line never shows up when running the other kernels
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum