Bluetooth not working LM19, HP14 laptop

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Sacha

Bluetooth not working LM19, HP14 laptop

Post by Sacha »

I've just installed Linux Mint 19 on HP14-bp000nf laptop.

Finally got wifi driver installed and working, but have just noticed that Bluetooth doesn't work. Have tried installing Bluman, but that makes no difference.

When I launch Bluetooth it unsuccessfully searches for devices forever...

This is the output from the various things I've tried:

elena@HP-Laptop-14-bp0xx:~$ lspci
00:00.0 Host bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SoC Transaction Register (rev 35)
00:02.0 VGA compatible controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller (rev 35)
00:0b.0 Signal processing controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Power Management Controller (rev 35)
00:13.0 SATA controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SATA Controller (rev 35)
00:14.0 USB controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series USB xHCI Controller (rev 35)
00:1a.0 Encryption controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Trusted Execution Engine (rev 35)
00:1b.0 Audio device: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series High Definition Audio Controller (rev 35)
00:1c.0 PCI bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Express Port #1 (rev 35)
00:1c.3 PCI bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Express Port #4 (rev 35)
00:1f.0 ISA bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCU (rev 35)
00:1f.3 SMBus: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx SMBus Controller (rev 35)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device d723

elena@HP-Laptop-14-bp0xx:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 05c8:03ac Cheng Uei Precision Industry Co., Ltd (Foxlink)
Bus 001 Device 003: ID 0bda:b009 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


elena@HP-Laptop-14-bp0xx:~$ rfkill list
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no


elena@HP-Laptop-14-bp0xx:~$ dmesg | egrep -i 'blue|firm'
[ 0.124912] acpi PNP0A08:00: [Firmware Info]: MMCONFIG for domain 0000 [bus 00-3f] only partially covers this bridge
[ 2.950195] psmouse serio1: elantech: assuming hardware version 4 (with firmware version 0x4d5f02)
[ 37.812796] Bluetooth: Core ver 2.22
[ 37.812838] Bluetooth: HCI device and connection manager initialized
[ 37.812845] Bluetooth: HCI socket layer initialized
[ 37.812849] Bluetooth: L2CAP socket layer initialized
[ 37.812871] Bluetooth: SCO socket layer initialized
[ 37.868222] Bluetooth: hci0: rtl: examining hci_ver=08 hci_rev=000d lmp_ver=08 lmp_subver=8723
[ 37.868227] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_config.bin
[ 37.868851] bluetooth hci0: Direct firmware load for rtl_bt/rtl8723b_config.bin failed with error -2
[ 37.868857] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_fw.bin
[ 37.870937] Bluetooth: hci0: rom_version status=0 version=2
[ 37.870942] Bluetooth: hci0: didn't find patch for chip id 2
[ 37.976093] rtl8723de: Using firmware rtlwifi/rtl8723defw.bin
[ 39.448241] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 39.448244] Bluetooth: BNEP filters: protocol multicast
[ 39.448252] Bluetooth: BNEP socket layer initialized

I get the impression the Realtek wifi driver rtl8723 is supposed to be controlling bluetooth as well?

Any ideas on how to fix this?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
JeremyB
Level 21
Level 21
Posts: 13851
Joined: Fri Feb 21, 2014 8:17 am

Re: Bluetooth not working LM19, HP14 laptop

Post by JeremyB »

No the wifi driver doesn't have much to do with bluetooth, in terminal do

Code: Select all

sudo apt install git build-essential dkms
git clone https://github.com/jeremyb31/newbtfix-4.15.git
sudo dkms add ./newbtfix-4.15
sudo dkms install btusb/4.0
Shutdown and boot, see if it works
Sacha

Re: Bluetooth not working LM19, HP14 laptop

Post by Sacha »

I got this:

elena@HP-Laptop-14-bp0xx:~$ sudo apt install git build-essential dkms
[sudo] password for elena:
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
dkms is already the newest version (2.3-3ubuntu9.2).
git is already the newest version (1:2.17.1-1ubuntu0.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

elena@HP-Laptop-14-bp0xx:~$ git clone https://github.com/jeremyb31/newbtfix-4.15.git
fatal: destination path 'newbtfix-4.15' already exists and is not an empty directory.

elena@HP-Laptop-14-bp0xx:~$ sudo dkms add ./newbtfix-4.15
Error! DKMS tree already contains: btusb-4.0
You cannot add the same module/version combo more than once.

elena@HP-Laptop-14-bp0xx:~$ sudo dkms install btusb/4.0
Module btusb/4.0 already installed on kernel 4.15.0-32-generic/x86_64

But shut down and rebooted anyway; nothing seems to have changed. :(
JeremyB
Level 21
Level 21
Posts: 13851
Joined: Fri Feb 21, 2014 8:17 am

Re: Bluetooth not working LM19, HP14 laptop

Post by JeremyB »

Code: Select all

sudo dkms uninstall btusb/4.0 --all
sudo dkms remove btusb/4.0 --all
rm -rf newbtfix
sudo rm -r /usr/src/btusb-4.0
Then do

Code: Select all

git clone https://github.com/jeremyb31/newbtfix-4.15.git
sudo dkms add ./newbtfix-4.15
sudo dkms install btusb/4.0
Shutdown and boot
Sacha

Re: Bluetooth not working LM19, HP14 laptop

Post by Sacha »

:(

Code: Select all

elena@HP-Laptop-14-bp0xx:~$ sudo dkms uninstall btusb/4.0 --all
[sudo] password for elena: 
Error! The action  does not support the --all
parameter.
elena@HP-Laptop-14-bp0xx:~$ sudo dkms remove btusb/4.0 --all

-------- Uninstall Beginning --------
Module:  btusb
Version: 4.0
Kernel:  4.15.0-32-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

btusb.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.15.0-32-generic/updates/
 - Original module
   - Archived original module found in the DKMS tree
   - Moving it to: /lib/modules/4.15.0-32-generic/updates/
depmod...

Backing up initrd.img-4.15.0-32-generic to /boot/initrd.img-4.15.0-32-generic.old-dkms
Making new initrd.img-4.15.0-32-generic
(If next boot fails, revert to initrd.img-4.15.0-32-generic.old-dkms image)
update-initramfs.................

Removing original_module from DKMS tree for kernel 4.15.0-32-generic (x86_64)

DKMS: uninstall completed.

------------------------------
Deleting module version: 4.0
completely from the DKMS tree.
------------------------------
Done.
elena@HP-Laptop-14-bp0xx:~$ rm -rf newbtfix
elena@HP-Laptop-14-bp0xx:~$ sudo rm -r /usr/src/btusb-4.0
elena@HP-Laptop-14-bp0xx:~$ git clone https://github.com/jeremyb31/newbtfix-4.15.git
fatal: destination path 'newbtfix-4.15' already exists and is not an empty directory.
elena@HP-Laptop-14-bp0xx:~$ sudo dkms add ./newbtfix-4.15

Creating symlink /var/lib/dkms/btusb/4.0/source ->
                 /usr/src/btusb-4.0

DKMS: add completed.
elena@HP-Laptop-14-bp0xx:~$ sudo dkms install btusb/4.0

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
'make' all KVER=4.15.0-32-generic.....
Signing module:
 - /var/lib/dkms/btusb/4.0/4.15.0-32-generic/x86_64/module/btusb.ko
Secure Boot not enabled on this system.
cleaning build area...

DKMS: build completed.

btusb.ko:
Running module version sanity check.
 - Original module
   - Found /lib/modules/4.15.0-32-generic/updates/btusb.ko
   - Storing in /var/lib/dkms/btusb/original_module/4.15.0-32-generic/x86_64/
   - Archiving for uninstallation purposes
 - Installation
   - Installing to /lib/modules/4.15.0-32-generic/updates/

depmod...

Backing up initrd.img-4.15.0-32-generic to /boot/initrd.img-4.15.0-32-generic.old-dkms
Making new initrd.img-4.15.0-32-generic
(If next boot fails, revert to initrd.img-4.15.0-32-generic.old-dkms image)
update-initramfs.................

DKMS: install completed.
After shutdown, still doesn't work...
JeremyB
Level 21
Level 21
Posts: 13851
Joined: Fri Feb 21, 2014 8:17 am

Re: Bluetooth not working LM19, HP14 laptop

Post by JeremyB »

See if this works

Code: Select all

sudo dkms remove btusb/4.0 --all
sudo dkms uninstall btusb/4.0
rm -rf newbtfix-4.15
sudo rm -r /usr/src/btusb-4.0
Then do

Code: Select all

git clone https://github.com/jeremyb31/newbtfix-4.15.git
sudo dkms add ./newbtfix-4.15
sudo dkms install btusb/4.0
Shutdown and boot
Sacha

Re: Bluetooth not working LM19, HP14 laptop

Post by Sacha »

Still doesn't work I'm afraid.

This command threw an error:

elena@HP-Laptop-14-bp0xx:~$ sudo dkms uninstall btusb/4.0
Error! There are no instances of module: btusb
located in the DKMS tree.
elena@HP-Laptop-14-bp0xx:~$ rm -rf newbtfix-4.15
elena@HP-Laptop-14-bp0xx:~$ sudo rm -r /usr/src/btusb-4.0
elena@HP-Laptop-14-bp0xx:~$ git clone https://github.com/jeremyb31/newbtfix-4.15.git
Cloning into 'newbtfix-4.15'...
remote: Counting objects: 40, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 40 (delta 0), reused 0 (delta 0), pack-reused 37
Unpacking objects: 100% (40/40), done.
elena@HP-Laptop-14-bp0xx:~$ sudo dkms add ./newbtfix-4.15

Creating symlink /var/lib/dkms/btusb/4.0/source ->
/usr/src/btusb-4.0

DKMS: add completed.
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: Bluetooth not working LM19, HP14 laptop

Post by MrEen »

Your paste doesn't show the last step:

Code: Select all

sudo dkms install btusb/4.0
Sacha

Re: Bluetooth not working LM19, HP14 laptop

Post by Sacha »

Sorry! I just included the one that threw the error, not the rest.

elena@HP-Laptop-14-bp0xx:~$ sudo dkms remove btusb/4.0 --all
[sudo] password for elena:

-------- Uninstall Beginning --------
Module: btusb
Version: 4.0
Kernel: 4.15.0-32-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

btusb.ko:
- Uninstallation
- Deleting from: /lib/modules/4.15.0-32-generic/updates/
- Original module
- Archived original module found in the DKMS tree
- Moving it to: /lib/modules/4.15.0-32-generic/updates/
depmod...

Backing up initrd.img-4.15.0-32-generic to /boot/initrd.img-4.15.0-32-generic.old-dkms
Making new initrd.img-4.15.0-32-generic
(If next boot fails, revert to initrd.img-4.15.0-32-generic.old-dkms image)
update-initramfs.................

Removing original_module from DKMS tree for kernel 4.15.0-32-generic (x86_64)

DKMS: uninstall completed.

------------------------------
Deleting module version: 4.0
completely from the DKMS tree.
------------------------------
Done.
elena@HP-Laptop-14-bp0xx:~$ sudo dkms uninstall btusb/4.0
Error! There are no instances of module: btusb
located in the DKMS tree.
elena@HP-Laptop-14-bp0xx:~$ rm -rf newbtfix-4.15
elena@HP-Laptop-14-bp0xx:~$ sudo rm -r /usr/src/btusb-4.0
elena@HP-Laptop-14-bp0xx:~$ git clone https://github.com/jeremyb31/newbtfix-4.15.git
Cloning into 'newbtfix-4.15'...
remote: Counting objects: 40, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 40 (delta 0), reused 0 (delta 0), pack-reused 37
Unpacking objects: 100% (40/40), done.
elena@HP-Laptop-14-bp0xx:~$ sudo dkms add ./newbtfix-4.15

Creating symlink /var/lib/dkms/btusb/4.0/source ->
/usr/src/btusb-4.0

DKMS: add completed.
elena@HP-Laptop-14-bp0xx:~$ sudo dkms install btusb/4.0

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
'make' all KVER=4.15.0-32-generic.....
Signing module:
- /var/lib/dkms/btusb/4.0/4.15.0-32-generic/x86_64/module/btusb.ko
Secure Boot not enabled on this system.
cleaning build area...

DKMS: build completed.

btusb.ko:
Running module version sanity check.
- Original module
- Found /lib/modules/4.15.0-32-generic/updates/btusb.ko
- Storing in /var/lib/dkms/btusb/original_module/4.15.0-32-generic/x86_64/
- Archiving for uninstallation purposes
- Installation
- Installing to /lib/modules/4.15.0-32-generic/updates/

depmod...

Backing up initrd.img-4.15.0-32-generic to /boot/initrd.img-4.15.0-32-generic.old-dkms
Making new initrd.img-4.15.0-32-generic
(If next boot fails, revert to initrd.img-4.15.0-32-generic.old-dkms image)
update-initramfs.................

DKMS: install completed.
JeremyB
Level 21
Level 21
Posts: 13851
Joined: Fri Feb 21, 2014 8:17 am

Re: Bluetooth not working LM19, HP14 laptop

Post by JeremyB »

Try a reboot
Sacha

Re: Bluetooth not working LM19, HP14 laptop

Post by Sacha »

Rebooted to no avail.

How can I tell if the driver has been successfully installed but there is maybe another issue? I have two Bluetooth devices currently active, and neither are being detected or are detecting the PC.
JeremyB
Level 21
Level 21
Posts: 13851
Joined: Fri Feb 21, 2014 8:17 am

Re: Bluetooth not working LM19, HP14 laptop

Post by JeremyB »

post the results for

Code: Select all

modinfo btusb
That will tell me if the dkms worked as I changed the btusb version
Sacha

Re: Bluetooth not working LM19, HP14 laptop

Post by Sacha »

elena@HP-Laptop-14-bp0xx:~$ modinfo btusb
filename: /lib/modules/4.15.0-32-generic/updates/btusb.ko
license: GPL
version: 0.9
description: Generic Bluetooth USB driver ver 0.9
author: Marcel Holtmann <marcel@holtmann.org>
srcversion: CD4C6997A4DCD0245E22B5F
alias: usb:v8087p0A5Ad*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0930p*d*dc*dsc*dp*icFFisc01ip01in*
alias: usb:v413Cp*d*dc*dsc*dp*icFFisc01ip01in*
alias: usb:v13D3p*d*dc*dsc*dp*icFFisc01ip01in*
alias: usb:v050Dp*d*dc*dsc*dp*icFFisc01ip01in*
alias: usb:v0B05p*d*dc*dsc*dp*icFFisc01ip01in*
alias: usb:v0A5Cp*d*dc*dsc*dp*icFFisc01ip01in*
alias: usb:v04CAp*d*dc*dsc*dp*icFFisc01ip01in*
alias: usb:v0489p*d*dc*dsc*dp*icFFisc01ip01in*
alias: usb:v0BB4p*d*dc*dsc*dp*icFFisc01ip01in*
alias: usb:v105Bp*d*dc*dsc*dp*icFFisc01ip01in*
alias: usb:v19FFp0239d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v413Cp8197d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0C10p0000d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0BDBp1002d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v044Ep3002d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v044Ep3001d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v04BFp030Ad*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v057Cp3800d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v05ACp8281d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v05ACp821Ad*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v05ACp821Fd*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v05ACp821Bd*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v05ACp8218d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v05ACp8215d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v05ACp8213d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0A5Cp21E1d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0E8Dp763Fd*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v05ACp*d*dc*dsc*dp*icFFisc01ip01in*
alias: usb:v*p*d*dc*dsc*dp*icE0isc01ip01in*
alias: usb:v*p*d*dcE0dsc01dp04ic*isc*ip*in*
alias: usb:v*p*d*dcE0dsc01dp01ic*isc*ip*in*
alias: of:N*T*Cusb1286,204eC*
alias: of:N*T*Cusb1286,204e
depends: btbcm,bluetooth,btrtl,btintel
retpoline: Y
name: btusb
vermagic: 4.15.0-32-generic SMP mod_unload
signat: PKCS#7
signer:
sig_key:
sig_hashalgo: md4
parm: disable_scofix:Disable fixup of wrong SCO buffer size (bool)
parm: force_scofix:Force fixup of wrong SCO buffers size (bool)
parm: reset:Send HCI reset command on initialization (bool)
JeremyB
Level 21
Level 21
Posts: 13851
Joined: Fri Feb 21, 2014 8:17 am

Re: Bluetooth not working LM19, HP14 laptop

Post by JeremyB »

Lets try

Code: Select all

cd /lib/modules/4.15.0-32-generic/kernel/drivers/bluetooth
sudo mv btrtl.ko btrtl.ko.bak
sudo wget https://www.dropbox.com/s/1it6l0iw48ehqww/btrtl.ko
Reboot and see if it works then
Sacha

Re: Bluetooth not working LM19, HP14 laptop

Post by Sacha »

Well it seems to have done something, because the HP laptop immediately detected two of my devices. It failed to detect my Thinkpad however, and my Thinkpad didn't detect the HP.

Also, it's impossible to pair either of the devices.
Sacha

Re: Bluetooth not working LM19, HP14 laptop

Post by Sacha »

So I think the driver has been installed successfully on the HP laptop because two out of three devices are being detected, but something's obviously still not functioning properly, 1) because it doesn't find my Thinkpad, 2) because nothing detects the HP and 3) because pairing the detected devices is impossible, even though they're listed. I installed exactly the same system on my Thinkpad the other day and everything works out of the box, including Bluetooth.

Are there any terminal commands I can run to check what's going on?
JeremyB
Level 21
Level 21
Posts: 13851
Joined: Fri Feb 21, 2014 8:17 am

Re: Bluetooth not working LM19, HP14 laptop

Post by JeremyB »

Code: Select all

cd /lib/modules/4.15.0-32-generic/kernel/drivers/bluetooth
sudo rm btrtl.ko
sudo wget https://www.dropbox.com/s/curizbiv54d73gh/btrtl.ko
Reboot and see if it is any better
Locked

Return to “Networking”