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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
10-26-2019, 08:01 AM
|
#1
|
LQ Newbie
Registered: Aug 2019
Posts: 20
Rep: 
|
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?
|
|
|
10-27-2019, 11:32 AM
|
#2
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
Quote:
Originally Posted by LionHeartIV
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:
... 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 :
... 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.
|
|
|
10-27-2019, 11:50 AM
|
#3
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,676
|
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.
|
10-28-2019, 09:32 AM
|
#4
|
LQ Newbie
Registered: Aug 2019
Posts: 20
Original Poster
Rep: 
|
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
|
|
|
10-28-2019, 09:42 AM
|
#5
|
Senior Member
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 22 MATE, Peppermint OS-Devuan, EndeavourOS, antiX
Posts: 4,359
|
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
|
|
|
10-28-2019, 10:15 AM
|
#6
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
Quote:
Originally Posted by LionHeartIV
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.
|
10-29-2019, 02:53 AM
|
#7
|
LQ Newbie
Registered: Aug 2019
Posts: 20
Original Poster
Rep: 
|
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.
|
|
|
10-29-2019, 07:29 AM
|
#8
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
Quote:
Originally Posted by LionHeartIV
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 :
Then make sure the module is loaded before trying to start bluetooth. Again :
... 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.
|
|
|
10-29-2019, 07:32 AM
|
#9
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,676
|
Quote:
Originally Posted by LionHeartIV
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 "wlan 0". 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.
|
|
|
10-29-2019, 08:06 AM
|
#10
|
LQ Newbie
Registered: Aug 2019
Posts: 20
Original Poster
Rep: 
|
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.
Last edited by LionHeartIV; 10-29-2019 at 08:07 AM.
|
|
|
10-29-2019, 08:09 AM
|
#11
|
LQ Newbie
Registered: Aug 2019
Posts: 20
Original Poster
Rep: 
|
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
|
|
|
10-29-2019, 08:13 AM
|
#12
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
Hi LionHeartIV,
... OK. Still not quite there ...
Could you please post the results of these commands :
...then :
and :
Code:
systemctl status bluetooth
Thanks.
Last edited by Rickkkk; 10-29-2019 at 08:19 AM.
|
|
|
10-29-2019, 08:19 AM
|
#13
|
LQ Newbie
Registered: Aug 2019
Posts: 20
Original Poster
Rep: 
|
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
|
|
|
10-29-2019, 08:27 AM
|
#14
|
LQ Newbie
Registered: Aug 2019
Posts: 20
Original Poster
Rep: 
|
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
|
|
|
10-29-2019, 08:34 AM
|
#15
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
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).
|
|
|
All times are GMT -5. The time now is 10:05 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|