LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-16-2022, 06:56 AM   #1
jt1122
Member
 
Registered: Apr 2021
Posts: 140

Rep: Reputation: Disabled
Bluetooth dongle not working - Debian Testing


Hi,

I have a generic unbranded BT dongle which isn't working.
Code:
lsusb|grep -i Blue
Bus 001 Device 006: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Using Debian testing with a recent kernel:
uname -a
Code:
Linux PC 5.16.0-1-amd64 #1 SMP PREEMPT Debian 5.16.7-2 (2022-02-09) x86_64 GNU/Linux
lsmod|grep -i bt
Code:
btusb                  65536  0
btrtl                  28672  1 btusb
btbcm                  20480  1 btusb
btintel                45056  1 btusb
bluetooth             765952  12 btrtl,btintel,btbcm,bnep,btusb
btrfs                1667072  0
xor                    24576  1 btrfs
raid6_pq              122880  1 btrfs
zstd_compress         311296  1 btrfs
libcrc32c              16384  4 nf_conntrack,nf_nat,btrfs,nf_tables
usbcore               327680  9 xhci_hcd,ehci_pci,usbhid,r8712u,usb_storage,ehci_hcd,btusb,xhci_pci,uas
systemctl status bluetooth:
Code:
● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2022-07-16 14:37:54 IDT; 7min ago
       Docs: man:bluetoothd(8)
   Main PID: 515 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 9332)
     Memory: 2.8M
        CPU: 24ms
     CGroup: /system.slice/bluetooth.service
             └─515 /usr/libexec/bluetooth/bluetoothd

Jul 16 14:37:52 acc bluetoothd[515]: src/main.c:parse_controller_config() Key file does not have key “LEScanIntervalConnect” in group “Con>
Jul 16 14:37:52 acc bluetoothd[515]: src/main.c:parse_controller_config() Key file does not have key “LEScanWindowConnect” in group “Contr>
Jul 16 14:37:52 acc bluetoothd[515]: src/main.c:parse_controller_config() Key file does not have key “LEMinConnectionInterval” in group “C>
Jul 16 14:37:52 acc bluetoothd[515]: src/main.c:parse_controller_config() Key file does not have key “LEMaxConnectionInterval” in group “C>
Jul 16 14:37:52 acc bluetoothd[515]: src/main.c:parse_controller_config() Key file does not have key “LEConnectionLatency” in group “Contr>
Jul 16 14:37:52 acc bluetoothd[515]: src/main.c:parse_controller_config() Key file does not have key “LEConnectionSupervisionTimeout” in g>
Jul 16 14:37:52 acc bluetoothd[515]: src/main.c:parse_controller_config() Key file does not have key “LEAutoconnecttimeout” in group “Cont>
Jul 16 14:37:54 acc systemd[1]: Started Bluetooth service.
Jul 16 14:37:54 acc bluetoothd[515]: Starting SDP server
Jul 16 14:37:54 acc bluetoothd[515]: Bluetooth management interface 1.21 initialized
I've removed blueman so only "bluetooth" service is running:
systemctl list-unit-files|grep blue
Code:
bluetooth.service                          enabled         enabled
dbus-org.bluez.service                     alias           -
bluetooth.target                           static          -
bluetoothctl:
Code:
Agent registered
[bluetooth]# show
No default controller available
so no controller is detected.

I've installed linux-firware & I'm a member of group "bluetooth".

Any suggestions?.

Thanks
 
Old 07-18-2022, 02:10 PM   #2
fixer1234
Member
 
Registered: Aug 2014
Location: Virginia, USA
Posts: 51

Rep: Reputation: Disabled
Did the bluetooth dongle originally work and then stopped working, or it never worked? Can you plug it into another computer to verify that the dongle is functional?

Last edited by fixer1234; 07-18-2022 at 02:11 PM.
 
Old 07-18-2022, 04:18 PM   #3
rayfward
Member
 
Registered: May 2009
Location: Leeds Uk
Distribution: Linux Mint 20.2
Posts: 136

Rep: Reputation: 17
It may just that the devices is switched off. Bluetoothctl from a command line is used to control bluetooth devices. If nothing else this should work.
I'm new to this as I'm trying to control a smart watch and still fiddling around with the commands.
From a shell :-
Bluetoothctl
power on
exit
 
Old 07-19-2022, 02:35 AM   #4
jiteshpandey
Member
 
Registered: Oct 2017
Posts: 58

Rep: Reputation: Disabled
Have you tried looking into dmesg or journalctl, sometime it gives some valuable response while pluggin and unplugging the device.
 
Old 07-19-2022, 08:55 AM   #5
jt1122
Member
 
Registered: Apr 2021
Posts: 140

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fixer1234 View Post
Did the bluetooth dongle originally work and then stopped working, or it never worked? Can you plug it into another computer to verify that the dongle is functional?
Thanks. The dongle wasn't tested on another machine but it lights up just fine when plugged-in & it's recognized in lsusb so doesn't seem to be defective.
 
Old 07-19-2022, 08:55 AM   #6
jt1122
Member
 
Registered: Apr 2021
Posts: 140

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rayfward View Post
It may just that the devices is switched off. Bluetoothctl from a command line is used to control bluetooth devices. If nothing else this should work.
I'm new to this as I'm trying to control a smart watch and still fiddling around with the commands.
From a shell :-
Bluetoothctl
power on
exit
Thanks. It lights up (blue LED flashing) when plugged in so doesn't seem to be off.
 
Old 07-19-2022, 08:59 AM   #7
jt1122
Member
 
Registered: Apr 2021
Posts: 140

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jiteshpandey View Post
Have you tried looking into dmesg or journalctl, sometime it gives some valuable response while pluggin and unplugging the device.
Thanks.

Code:
dmesg|grep -i -e bt -e bluetooth
didn't find anything relevant.
 
Old 07-19-2022, 10:12 AM   #8
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,111
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Any firmware missing?

Code:
 sudo dmesg | grep firmware
any other blockage?

Code:
rfkill list all
also. Running bluetooth gui started from command line might shed some light also.
 
Old 07-19-2022, 12:21 PM   #9
jt1122
Member
 
Registered: Apr 2021
Posts: 140

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rokytnji View Post
Any firmware missing?

Code:
 sudo dmesg | grep firmware
any other blockage?

Code:
rfkill list all
also. Running bluetooth gui started from command line might shed some light also.
Thanks.

dmesg|grep firmware:
Code:
[   21.932618] platform regulatory.0: firmware: direct-loading firmware regulatory.db
[   22.007630] platform regulatory.0: firmware: direct-loading firmware regulatory.db.p7s
[   22.638339] usb 4-1.3: r8712u: Loading firmware from "rtlwifi/rtl8712u.bin"
[   22.693107] usb 4-1.3: firmware: direct-loading firmware rtlwifi/rtl8712u.bin
[   44.401263] r8169 0000:01:00.0: firmware: direct-loading firmware rtl_nic/rtl8168e-3.fw
[13136.892229] (NULL device *): firmware: direct-loading firmware regulatory.db.p7s
[13136.900564] (NULL device *): firmware: direct-loading firmware regulatory.db
[13144.889384] usb 4-1.3: r8712u: Loading firmware from "rtlwifi/rtl8712u.bin"
[14717.081184] (NULL device *): firmware: direct-loading firmware regulatory.db
[14717.081202] (NULL device *): firmware: direct-loading firmware regulatory.db.p7s
[14725.025465] usb 4-1.3: r8712u: Loading firmware from "rtlwifi/rtl8712u.bin"
[20318.538277] (NULL device *): firmware: direct-loading firmware regulatory.db
[20318.538280] (NULL device *): firmware: direct-loading firmware regulatory.db.p7s
[20326.545533] usb 4-1.3: r8712u: Loading firmware from "rtlwifi/rtl8712u.bin"
[25540.258244] (NULL device *): firmware: direct-loading firmware regulatory.db
[25540.258262] (NULL device *): firmware: direct-loading firmware regulatory.db.p7s
[30975.546426] (NULL device *): firmware: direct-loading firmware regulatory.db.p7s
[30975.546427] (NULL device *): firmware: direct-loading firmware regulatory.db
[30983.362649] usb 4-1.3: r8712u: Loading firmware from "rtlwifi/rtl8712u.bin"
rfkill list all
returns nothing.
 
Old 07-19-2022, 04:30 PM   #10
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,111
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
That's weird. Maybe it isn't installed?

Code:
@biker:~
$ rfkill list all
0: dell-wifi: Wireless LAN
	Soft blocked: no
	Hard blocked: no
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
2: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no
$ apt-cache policy rfkill
rfkill:
  Installed: 2.36.1-8+deb11u1
  Candidate: 2.36.1-8+deb11u1
  Version table:
 *** 2.36.1-8+deb11u1 500
        500 http://deb.debian.org/debian bullseye/main amd64 Packages
        500 http://security.debian.org/debian-security bullseye-security/main amd64 Packages
        100 /var/lib/dpkg/status
@biker:~
 
Old 07-20-2022, 01:50 AM   #11
jt1122
Member
 
Registered: Apr 2021
Posts: 140

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rokytnji View Post
That's weird. Maybe it isn't installed?

Code:
@biker:~
$ rfkill list all
0: dell-wifi: Wireless LAN
	Soft blocked: no
	Hard blocked: no
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
2: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no
$ apt-cache policy rfkill
rfkill:
  Installed: 2.36.1-8+deb11u1
  Candidate: 2.36.1-8+deb11u1
  Version table:
 *** 2.36.1-8+deb11u1 500
        500 http://deb.debian.org/debian bullseye/main amd64 Packages
        500 http://security.debian.org/debian-security bullseye-security/main amd64 Packages
        100 /var/lib/dpkg/status
@biker:~
Thanks, but it's installed:
Code:
apt policy rfkill
rfkill:
  Installed: 2.38-4
  Candidate: 2.38-4
  Version table:
 *** 2.38-4 500
        500 http://deb.debian.org/debian testing/main amd64 Packages
        100 /var/lib/dpkg/status
but still no output:
Code:
$rfkill list all
$
 
Old 07-23-2022, 04:17 AM   #12
jt1122
Member
 
Registered: Apr 2021
Posts: 140

Original Poster
Rep: Reputation: Disabled
bumping.
 
Old 07-23-2022, 08:25 AM   #13
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
rfkill is a module. Is it loaded?

To find out, run lsmod | grep blue

Here is what I see with the same usb dongle.

Quote:
lsmod | grep blue
bluetooth 507904 39 btrtl,btintel,btbcm,bnep,btusb,rfcomm
ecdh_generic 16384 1 bluetooth
rfkill 32768 5 bluetooth
And here is the module:

Quote:
locate rfkill.ko
/lib/modules/5.15.38/kernel/drivers/platform/x86/amilo-rfkill.ko
/lib/modules/5.15.38/kernel/net/rfkill/rfkill.ko
This is on Slackware 15.0, the path to the module for you will vary on kernel version. If its not loaded, and you have the module, run modprobe rfkill.

rfkill should tell us if you have a soft or hard block on the device.
 
Old 07-23-2022, 08:40 AM   #14
jt1122
Member
 
Registered: Apr 2021
Posts: 140

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by camorri View Post
rfkill is a module. Is it loaded?

To find out, run lsmod | grep blue

Here is what I see with the same usb dongle.



And here is the module:



This is on Slackware 15.0, the path to the module for you will vary on kernel version. If its not loaded, and you have the module, run modprobe rfkill.

rfkill should tell us if you have a soft or hard block on the device.

Thanks.

rfkill was loaded. Just in case I've reloaded with modprobe but still no output:
Code:
rfkill list all
nothing is listed.

This is what's loaded for BT:
Code:
lsmod|grep -i -e bt -e blue
btrfs                1667072  0
xor                    24576  1 btrfs
raid6_pq              122880  1 btrfs
zstd_compress         311296  1 btrfs
libcrc32c              16384  4 nf_conntrack,nf_nat,btrfs,nf_tables
 
Old 07-23-2022, 10:42 AM   #15
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
It appears you do not have any bluetooth modules loaded. Here is what I see:

Quote:
lsmod | grep blue
bluetooth 507904 39 btrtl,btintel,btbcm,bnep,btusb,rfcomm
ecdh_generic 16384 1 bluetooth
rfkill 32768 5 bluetooth
Re-run the command just looking for blue, nothing more. What you are seeing is just file system stuff.
 
  


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
Cambridge Silicon Radio Bluetooth Dongle not working - SparkyLinux 6 (Po-Tolo) jt1122 Linux - Newbie 9 02-26-2022 01:46 PM
[SOLVED] Bluetooth Stopped Working "Unknown Bluetooth Controller in /etc/bluetooth/main.conf" PasBern Linux - Hardware 5 06-15-2021 10:39 AM
[SOLVED] bluetooth dongle + bluetooth speaker but no sound on the bluetooth speaker vonbiber Slackware 4 05-11-2017 09:53 AM
ES-388 Bluetooth USB dongle not working Tweedle Dee Linux - Hardware 1 12-21-2011 04:41 PM
Bluetooth Dongle and Bluetooth Mouse... Any ideas on this one? flipjarg Linux - Newbie 1 07-14-2010 07:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:04 AM.

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