LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-26-2019, 08:01 AM   #1
LionHeartIV
LQ Newbie
 
Registered: Aug 2019
Posts: 20

Rep: Reputation: Disabled
No Bluetooth adapters found RTL8821CE


I have a HP 250GT laptop, Linux Mint (cinnamon) 19.2

Open the Bluetooth app, show this message: No Bluetooth adapters found

Tried this:

$ systemctl status bluetooth
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:bluetoothd(8)

Looks as though it's inactive, yet I cannot see a BIOS setting to enable it, any ideas please?
 
Old 10-27-2019, 11:32 AM   #2
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Quote:
Originally Posted by LionHeartIV View Post
I have a HP 250GT laptop, Linux Mint (cinnamon) 19.2

Open the Bluetooth app, show this message: No Bluetooth adapters found

Tried this:

$ systemctl status bluetooth
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:bluetoothd(8)

Looks as though it's inactive, yet I cannot see a BIOS setting to enable it, any ideas please?
Hi LionHeartIV,

Welcome to LQ.

Systemd services are not enabled or started in BIOS - you do that from a booted linux system. To start the bluetooth service, you would issue this command from a root command prompt or by using sudo :

Code:
systemctl start bluetooth
From the output of your status command, however, the service seems to be enabled, which means it should start at boot. Since it is not started, there may be another problem.

First verify that no hardware switch is in the Off position for the bluetooth adapter ... These come in different varieties depending on the computer ... sometimes a dedicated switch, sometimes a function key.

Also verify the radio status with the rfkill command:

Code:
rfkill
... if your bluetooth adapter appears it should not have a status "BLOCKED".

If the bluetooth adapter isn't listed with the rfkill command, I would then check to see if the bluetooth driver module and dependencies are loaded. Please report back the output of the following command :

Code:
lsmod | grep bt
... if several lines appear, including references to module btusb, your system should be able to start the systemd bluetooth service. If nothing appears, try loading the module with the following command :

Code:
sudo modprobe btusb
.. and then try the previous lsmod command again. If loaded modules now appear, you could try restarting your systemd bluetooth service with the first command and reporting the output of the status command again. If it then appears as loaded and started, you should be able to see your bluetooth device in whatever gui app you are using. Personally, I avoid gui apps and simply use the bluetoothctl command environment - if you are interested in this, let us know.

Let us know how you make out.

Last edited by Rickkkk; 10-27-2019 at 11:36 AM.
 
Old 10-27-2019, 11:50 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
And to add to the excellent advice Rickkkk gave, check the very obvious things first:
  • Is the bluetooth device enabled in BIOS?
  • Have you turned it on (such as with a switch or FN-<KEY> combination)?
Sometimes the device isn't enabled, and if it's not it won't be picked up/used by Linux (or anything else, for that matter).
 
1 members found this post helpful.
Old 10-28-2019, 09:32 AM   #4
LionHeartIV
LQ Newbie
 
Registered: Aug 2019
Posts: 20

Original Poster
Rep: Reputation: Disabled
Hi Rickkk, thanks for all these instructions, these are the results:

Code:
$ rfkill
ID TYPE DEVICE    SOFT      HARD
 0 wlan phy0   blocked unblocked

$ lsmod | grep bt
btrfs                1138688  0
xor                    24576  1 btrfs
zstd_compress         163840  1 btrfs
raid6_pq              114688  1 btrfs

$ sudo modprobe btusb
btusb                  45056  0
btrtl                  16384  1 btusb
btbcm                  16384  1 btusb
btintel                16384  1 btusb
bluetooth             544768  4 btrtl,btintel,btbcm,btusb
btrfs                1138688  0
xor                    24576  1 btrfs
zstd_compress         163840  1 btrfs
raid6_pq              114688  1 btrfs
 
Old 10-28-2019, 09:42 AM   #5
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,972
Blog Entries: 32

Rep: Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465
LionHeartIV,

Your wlan is softblocked.

Try this command:

Code:
sudo rfkill unblock wlan0
If that does not work, try these two:

Code:
sudo systemctl enable bluetooth.service
sudo systemctl start bluetooth.service

Last edited by beachboy2; 10-28-2019 at 10:41 AM. Reason: wlan0 replaces blutooth in command
 
Old 10-28-2019, 10:15 AM   #6
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Quote:
Originally Posted by LionHeartIV View Post
Code:
$ rfkill
ID TYPE DEVICE    SOFT      HARD
 0 wlan phy0   blocked unblocked

$ lsmod | grep bt
btrfs                1138688  0
xor                    24576  1 btrfs
zstd_compress         163840  1 btrfs
raid6_pq              114688  1 btrfs

$ sudo modprobe btusb
btusb                  45056  0
btrtl                  16384  1 btusb
btbcm                  16384  1 btusb
btintel                16384  1 btusb
bluetooth             544768  4 btrtl,btintel,btbcm,btusb
btrfs                1138688  0
xor                    24576  1 btrfs
zstd_compress         163840  1 btrfs
raid6_pq              114688  1 btrfs
Hi LionHeartIV,

Thanks for the info. Several points here :
  • Your wireless LAN (wifi) adapter is soft-blocked. Although this is not likely to be the root cause of your bluetooth issue, it should be fixed. You can use the command that beachboy2 mentioned in post #5 to unblock it, substituting "wlan0" for "0".

  • The output of your lsmod command shows that your bluetooth driver module was not loaded. This will prevent anything from recognizing your adapter. The good news is with the next point ...

  • The result of your modprobe command shows that you were able to load the bluetooth adapter module manually. If you had run lsmod again after this command, your bluetooth module and its dependancies would have been listed.

The next thing to try would be to start the bluetooth service. Again, you can use the command beachboy2 mentioned in post #5. Afterward, verify if your bluetooth device is now recognized by the GUI app you are using in Mint.

Essentially, your probably seems to be caused by the bluetooth module not loading at boot. By making sure that the adapter is not soft blocked (via rfkill) or deactivated in BIOS (as explained earlier by TB0ne), you should be able to correct this. In the meantime, you are able to load it manually with the modprobe command.

Let us know how it goes from here.

Last edited by Rickkkk; 11-01-2019 at 08:47 AM.
 
1 members found this post helpful.
Old 10-29-2019, 02:53 AM   #7
LionHeartIV
LQ Newbie
 
Registered: Aug 2019
Posts: 20

Original Poster
Rep: Reputation: Disabled
Code:
$ sudo rfkill unblock wlan0
rfkill: invalid identifier: wlan0

$ sudo systemctl enable wlan0.service
Failed to enable unit: Unit file wlan0.service does not exist
Also, I've looked through the BIOS settings and don't see a setting to enable bluetooth.
 
Old 10-29-2019, 07:29 AM   #8
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Quote:
Originally Posted by LionHeartIV View Post
Code:
$ sudo rfkill unblock wlan0
rfkill: invalid identifier: wlan0

$ sudo systemctl enable wlan0.service
Failed to enable unit: Unit file wlan0.service does not exist
Also, I've looked through the BIOS settings and don't see a setting to enable bluetooth.
Hi LionHeartIV,

For your first command, use the identifier and not the device name (sorry - didn't mention this earlier). So :

Code:
rfkill unblock 0
Then make sure the module is loaded before trying to start bluetooth. Again :

Code:
lsmod | grep btusb
... if it's not there, load it manually :

Code:
sudo modprobe btusb
... then try starting bluetooth ... Your second command isn't correct either. It should be this :

Code:
sudo systemctl enable bluetooth.service
... if not already the case, this will configure bluetooth to start at boot.

To start the service manually (for testing or other ...) :

Code:
sudo systemctl start bluetooth.service
In all distros I've used, the ".service" part of the command is implied and can be omitted, as I described in my first post.

Check what appears in your bluetooth gui app afterwards and let us know.

Cheers.
 
Old 10-29-2019, 07:32 AM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by LionHeartIV View Post
Code:
$ sudo rfkill unblock wlan0
rfkill: invalid identifier: wlan0

$ sudo systemctl enable wlan0.service
Failed to enable unit: Unit file wlan0.service does not exist
The device that rfkill listed was "wlan" not "wlan0". So trying to unblock device wlan0 won't work, and neither then will the follow-up command.
Quote:
Also, I've looked through the BIOS settings and don't see a setting to enable bluetooth.
And I also suggested that you look for a key-combination/switch to turn bluetooth on; again, your device isn't showing up at all, so either it's turned off or won't work under Linux.

Try typing in
Code:
dmesg | egrep -i "firm|blue|net"
...and posting that output. Could be you have a combination bluetooth/wifi card, and the firmware isn't getting loaded to enable the bluetooth module.
 
Old 10-29-2019, 08:06 AM   #10
LionHeartIV
LQ Newbie
 
Registered: Aug 2019
Posts: 20

Original Poster
Rep: Reputation: Disabled
Again, thanks for your continued help. Followed the latest instructions:

Code:
$ sudo rfkill unblock 0
$ lsmod | grep btusb
$ sudo modprobe btusb
$ sudo systemctl enable bluetooth.service
Synchronizing state of bluetooth.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable bluetooth
$ sudo systemctl start bluetooth.service
$
Opened the Bluetooth app, still get the attached screen shot...

Also, don't have a Bluetooth/WiFi function key on this HP laptop.
Attached Thumbnails
Click image for larger version

Name:	shot-1.png
Views:	102
Size:	14.4 KB
ID:	31700  

Last edited by LionHeartIV; 10-29-2019 at 08:07 AM.
 
Old 10-29-2019, 08:09 AM   #11
LionHeartIV
LQ Newbie
 
Registered: Aug 2019
Posts: 20

Original Poster
Rep: Reputation: Disabled
Code:
$ dmesg | egrep -i "firm|blue|net"
[    0.057020] NET: Registered protocol family 16
[    0.057020] audit: initializing netlink subsys (disabled)
[    0.372325] NetLabel: Initializing
[    0.372326] NetLabel:  domain hash size = 128
[    0.372326] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.372342] NetLabel:  unlabeled traffic allowed by default
[    0.404927] NET: Registered protocol family 2
[    0.405476] NET: Registered protocol family 1
[    1.798985] NET: Registered protocol family 10
[    1.804104] NET: Registered protocol family 17
[    1.953219] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    1.984593] [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_01.bin (v1.1)
[    4.609273] ip_tables: (C) 2000-2006 Netfilter Core Team
[    5.051720] audit: type=1400 audit(1572353505.729:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=618 comm="apparmor_parser"
[    5.051722] audit: type=1400 audit(1572353505.729:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-helper" pid=618 comm="apparmor_parser"
[    5.408366] IPv6: ADDRCONF(NETDEV_UP): eno1: link is not ready
[    5.454846] IPv6: ADDRCONF(NETDEV_UP): eno1: link is not ready
[    5.457379] IPv6: ADDRCONF(NETDEV_UP): wlo1: link is not ready
[    9.701224] IPv6: ADDRCONF(NETDEV_CHANGE): eno1: link becomes ready
[  398.313525] Bluetooth: Core ver 2.22
[  398.313608] NET: Registered protocol family 31
[  398.313608] Bluetooth: HCI device and connection manager initialized
[  398.313637] Bluetooth: HCI socket layer initialized
[  398.313642] Bluetooth: L2CAP socket layer initialized
[  398.313687] Bluetooth: SCO socket layer initialized
[  469.259952] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[  469.259956] Bluetooth: BNEP filters: protocol multicast
[  469.259964] Bluetooth: BNEP socket layer initialized
 
Old 10-29-2019, 08:13 AM   #12
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Hi LionHeartIV,

... OK. Still not quite there ...

Could you please post the results of these commands :

Code:
rfkill
...then :

Code:
lsmod | grep btusb
and :

Code:
systemctl status bluetooth
Thanks.

Last edited by Rickkkk; 10-29-2019 at 08:19 AM.
 
Old 10-29-2019, 08:19 AM   #13
LionHeartIV
LQ Newbie
 
Registered: Aug 2019
Posts: 20

Original Poster
Rep: Reputation: Disabled
Code:
$ lsmod | grep btusb
btusb                  45056  0
btrtl                  16384  1 btusb
btbcm                  16384  1 btusb
btintel                16384  1 btusb
bluetooth             544768  11 btrtl,btintel,btbcm,bnep,btusb
 
Old 10-29-2019, 08:27 AM   #14
LionHeartIV
LQ Newbie
 
Registered: Aug 2019
Posts: 20

Original Poster
Rep: Reputation: Disabled
Code:
$ systemctl status bluetooth
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-10-29 14:59:29 EET; 27min ago
     Docs: man:bluetoothd(8)
 Main PID: 2472 (bluetoothd)
   Status: "Running"
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/bluetooth.service
           └─2472 /usr/lib/bluetooth/bluetoothd

Oct 29 14:59:29 kj-HP systemd[1]: Starting Bluetooth service...
Oct 29 14:59:29 kj-HP bluetoothd[2472]: Bluetooth daemon 5.48
Oct 29 14:59:29 kj-HP systemd[1]: Started Bluetooth service.
Oct 29 14:59:29 kj-HP bluetoothd[2472]: Starting SDP server
Oct 29 14:59:29 kj-HP bluetoothd[2472]: Bluetooth management interface 1.14 initialized
 
Old 10-29-2019, 08:34 AM   #15
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Hmmm. Looks good.

I'm beginning to suspect there's something amiss with that gui app you're using ... As previously mentioned, I don't use these ... What is under the "Settings" tab ?

Also, have you tried the bluetoothctl command line interface instead ? (let is know if you are unfamiliar with this and we can assist you if you want to try it).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with network adapter (rtl8821ce) in Ubuntu ron-in-reno Linux - Wireless Networking 2 07-24-2019 09:42 AM
Realtek rtl8821ce driver av2zeal Slackware 12 12-28-2018 11:01 PM
Blueman Assistant "No adapters found" No Bluetooth on fresh install of Ubuntu on 2017 Macbook Pro 14,1 JMacSmith Linux - Software 1 07-08-2018 11:30 AM
rtl8821ce bluetooth module help Francexi Slackware 27 05-15-2018 02:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration