LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 07-17-2023, 06:17 PM   #1
GlockG20
LQ Newbie
 
Registered: Nov 2022
Posts: 6

Rep: Reputation: 0
Bluetooth nightmare


System specs:
Operating System: Kubuntu 23.04
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.2.0-1007-lowlatency (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 9 7940HS w/ Radeon 780M Graphics
Memory: 30.6 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: ASUS TUF Gaming A17 FA707XU_FA707XU
System Version: 1.0

I have both Bluez and Blueman installed... neither will find any bluetooth device I have. Nothing they just search. And I can't see it with my phone. My old laptop no problemo!

Code:
@Ryzen9-Linux:~$ rfkill
ID TYPE      DEVICE      SOFT      HARD
 0 bluetooth hci0   unblocked unblocked
 1 wlan      phy0   unblocked unblocked
Code:
@Ryzen9-Linux:~$ sudo dmesg | grep -i blue
[sudo] password for ian: 
[    1.749522] usb 1-5: Product: Bluetooth Radio
[    3.468003] Bluetooth: Core ver 2.22
[    3.468066] NET: Registered PF_BLUETOOTH protocol family
[    3.468067] Bluetooth: HCI device and connection manager initialized
[    3.468070] Bluetooth: HCI socket layer initialized
[    3.468072] Bluetooth: L2CAP socket layer initialized
[    3.468075] Bluetooth: SCO socket layer initialized
[    3.674456] Bluetooth: hci0: Failed to read codec capabilities (-22)
[    4.783579] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    4.783581] Bluetooth: BNEP filters: protocol multicast
[    4.783584] Bluetooth: BNEP socket layer initialized
[    4.784308] Bluetooth: MGMT ver 1.22
[    7.048670] Bluetooth: RFCOMM TTY layer initialized
[    7.048675] Bluetooth: RFCOMM socket layer initialized
[    7.048678] Bluetooth: RFCOMM ver 1.11
[  753.987483] Bluetooth: hci0: Failed to read codec capabilities (-22)
Code:
@Ryzen9-Linux:~$ lsusb; dmesg | grep -i blue
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 13d3:3571 IMC Networks Bluetooth Radio
Bus 001 Device 003: ID 2b7e:b685 Sonix Technology Co., Ltd. USB2.0 HD UVC WebCam
Bus 001 Device 002: ID 047d:8018 Kensington Expert Wireless Trackball Mouse (K72359WW)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
dmesg: read kernel buffer failed: Operation not permitted
Code:
@Ryzen9-Linux:~$ sudo lspci -vvnn | grep -A 9 Network
pcilib: Error reading /sys/bus/pci/devices/0000:00:08.3/label: Operation not permitted
04:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:b852]
        Subsystem: AzureWave Device [1a3b:5471]
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 107
        IOMMU group: 18
        Region 0: I/O ports at d000 [size=256]
        Region 2: Memory at ddd00000 (64-bit, non-prefetchable) [size=1M]
        Capabilities: [40] Power Management version 3
Code:
@Ryzen9-Linux:~$ inxi -bE
System:
  Host: Ryzen9-Linux Kernel: 6.2.0-1007-lowlatency arch: x86_64 bits: 64
    Desktop: KDE Plasma v: 5.27.4 Distro: Ubuntu 23.04 (Lunar Lobster)
Machine:
  Type: Laptop System: ASUSTeK product: ASUS TUF Gaming A17 FA707XU_FA707XU
    v: 1.0 serial: <superuser required>
  Mobo: ASUSTeK model: FA707XU v: 1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: FA707XU.305 date: 04/27/2023
Battery:
  ID-1: BAT1 charge: 91.9 Wh (100.0%) condition: 91.9/90.2 Wh (101.8%)
CPU:
  Info: 8-core AMD Ryzen 9 7940HS w/ Radeon 780M Graphics [MT MCP]
    speed (MHz): avg: 1580 min/max: 1600/6844
Graphics:
  Device-1: NVIDIA AD107M [GeForce RTX 4050 Max-Q / Mobile] driver: nvidia
    v: 525.125.06
  Device-2: AMD Phoenix1 driver: amdgpu v: kernel
  Device-3: Sonix USB2.0 HD UVC WebCam type: USB driver: uvcvideo
  Display: x11 server: X.Org v: 1.21.1.7 with: Xwayland v: 22.1.8 driver: X:
    loaded: amdgpu,nvidia unloaded: fbdev,modesetting,nouveau,vesa dri: radeonsi
    gpu: amdgpu resolution: 1920x1080~144Hz
  API: OpenGL v: 4.6 Mesa 23.0.4-0ubuntu1~23.04.1 renderer: AMD Radeon
    Graphics (gfx1103_r1 LLVM 15.0.7 DRM 3.49 6.2.0-1007-lowlatency)
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    driver: r8169
  Device-2: Realtek driver: rtw89_8852be
Bluetooth:
  Device-1: IMC Networks Bluetooth Radio type: USB driver: btusb
  Report: hciconfig ID: hci0 state: up address: 10:68:38:6F:B7:1F bt-v: 3.0
Drives:
  Local Storage: total: 4.66 TiB used: 700.81 GiB (14.7%)
Info:
  Processes: 384 Uptime: 1h 48m Memory: 30.55 GiB used: 6.17 GiB (20.2%)
  Shell: Bash inxi: 3.3.25
I have tried several things and nothing has worked. It's quite maddening! With all the information I have provided... what other solution is there?

Links below are the solutions I have tried so far with 0, ZERO, ZILCH, NADA, NIL success:

https://dev.to/campbelljones74/commo...-fix-them-18b5

https://dev.to/campbelljones74/commo...-fix-them-18b5

https://askubuntu.com/questions/1450...n-ubuntu-22-04

Last edited by GlockG20; 07-17-2023 at 07:28 PM.
 
Old 07-18-2023, 10:03 AM   #2
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,236

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
First of all, I feel your pain. I have struggled with bluetooth way too many times, to the point I use it as little as posible. ( end of rant ).

From your posting, some things look good. rfkill results are fine. YAY.

This error
Quote:
Bluetooth: hci0: Failed to read codec capabilities (-22)
I did a little research, apparently that is a kernel bug fixed in a new kernel version. The good news is bluetooth still works, even though you see this error. For now you can ignore it.

I learned a long time ago the gui's for bluetooth don't provide much information, if they did you would be as frustrated as you are now. So, open a terminal, and run bluetoothctl. That need root privledges, so 'sudo bluetoothctl' should give you a bluetoot prompt. Type help to see the commands you can run. This is what it looks like on my system.

Quote:
bluetoothctl
Agent registered
[bluetooth]#
The show command dumps out some nice info on your server side controller. Run the command and post the results.

You can try to run the scan command. That looks for devices you might want to connect to, ie pair. Give that a go and post the results. Once again, here is what it can look like. After letting it run a few seconds, this is what showed up.

Quote:
scan on
Discovery started
[CHG] Controller 00:15:83:43:36:98 Discovering: yes
[NEW] Device B8:27:EB:F5:9C:AF arm-BlueZ 5.64
Note the square brackets, NEW is a new device I'm not paired with, its the bluetooth adapter on my Raspberry Pi.

Post what you can find out.

Last edited by camorri; 07-18-2023 at 10:04 AM.
 
Old 07-18-2023, 10:42 AM   #3
GlockG20
LQ Newbie
 
Registered: Nov 2022
Posts: 6

Original Poster
Rep: Reputation: 0
Code:
@Ryzen9-Linux:~$ sudo bluetoothctl
[sudo] password for Ryzen9: 
Agent registered
[bluetooth]# scan on
Discovery started
[CHG] Controller 10:68:38:6F:B7:1F Discovering: yes
[bluetooth]#
 
Old 07-18-2023, 10:55 AM   #4
GlockG20
LQ Newbie
 
Registered: Nov 2022
Posts: 6

Original Poster
Rep: Reputation: 0
Code:
@Ryzen9-Linux:~$ sudo bluetoothctl
Agent registered
[bluetooth]# list
Controller 10:68:38:6F:B7:1F Ryzen9-Linux [default]
[bluetooth]# scan on
Discovery started
[CHG] Controller 10:68:38:6F:B7:1F Discovering: yes
[bluetooth]# scan on
Failed to start discovery: org.bluez.Error.InProgress
[bluetooth]# scan off
Discovery stopped
[CHG] Controller 10:68:38:6F:B7:1F Discovering: no
[bluetooth]# scan on
Discovery started
[CHG] Controller 10:68:38:6F:B7:1F Discovering: yes
[bluetooth]# devices
[bluetooth]#
I have a bluetooth speaker that my Linux Mint system will connect to no problem. But it's not even seen by this system here. The only reason I am using Kubuntu is it's the only distro that would see and use my WiFi card. No amount of cajoling would get Mint to see it or use it. I even used a Linux supported WiFi dongle to no avail.

Bluetooth is the last thing I need to get working on this system. I use it to connect my hearing aids to my laptop so I can listen to training videos or watch movies without disturbing people around me ( I'm deaf as heck ). So for me Bluetooth is important.

Code:
[bluetooth]# show
Controller 10:68:38:6F:B7:1F (public)
        Name: Ryzen9-Linux
        Alias: Ryzen9-Linux
        Class: 0x007c010c
        Powered: yes
        Discoverable: yes
        DiscoverableTimeout: 0x00000000
        Pairable: yes
        UUID: Message Notification Se.. (00001133-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
        UUID: OBEX Object Push          (00001105-0000-1000-8000-00805f9b34fb)
        UUID: Message Access Server     (00001132-0000-1000-8000-00805f9b34fb)
        UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
        UUID: IrMC Sync                 (00001104-0000-1000-8000-00805f9b34fb)
        UUID: Vendor specific           (00005005-0000-1000-8000-0002ee000001)
        UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
        UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
        UUID: Phonebook Access Server   (0000112f-0000-1000-8000-00805f9b34fb)
        UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
        UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb)
        UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
        UUID: Handsfree Audio Gateway   (0000111f-0000-1000-8000-00805f9b34fb)
        UUID: Audio Source              (0000110a-0000-1000-8000-00805f9b34fb)
        UUID: OBEX File Transfer        (00001106-0000-1000-8000-00805f9b34fb)
        UUID: Handsfree                 (0000111e-0000-1000-8000-00805f9b34fb)
        Modalias: usb:v1D6Bp0246d0542
        Discovering: yes
        Roles: central
        Roles: peripheral
Advertising Features:
        ActiveInstances: 0x00 (0)
        SupportedInstances: 0x0a (10)
        SupportedIncludes: tx-power
        SupportedIncludes: appearance
        SupportedIncludes: local-name
        SupportedSecondaryChannels: 1M
        SupportedSecondaryChannels: 2M
        SupportedSecondaryChannels: Coded
[bluetooth]#

Last edited by GlockG20; 07-18-2023 at 10:59 AM.
 
Old 07-18-2023, 01:18 PM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,404

Rep: Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337
I finally hacked bluetooth into working here on my laptop once, and managed to transfer test files both ways. Then I promptly gave up on the thing. It's too much of a PITA.

I used bluetoothctl for setting up everything, and blueman(?) for file transfer. Bluetoothctl is a terminal tool. YMMV with other tools. With bluetoothctl, you have to
  1. Get the card up.
  2. Search & Find your target.
  3. Pair your devices.
  4. Trust your devices. I think trust is not bi-directional so you may have to trust incoming and outgoing separately.

Bluetooth was invented in the last milennium and IBM guys waxed eloquent about it. They envisaged it used for controlling huge corporations. So the board members might get the new combination to the safe, or part thereof. And you could send them the new combination on their pagers every week.

Board members might also get the root password for the mainframe along with all sysadmins, but the sysadmins could never get a bit of safe combination, etc. IBM were dreaming - not for the first time either.

In fact, we all want to do is drive a coach & four through the security and transfer data fast.

I believe one-way systems like audio are handier.
 
Old 07-18-2023, 02:38 PM   #6
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,236

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
Do you have any other bluetooth device, like a smart phone? You can scan with android phones.

I don't know much about bluetooth speakers, might be worth looking at the doc to see what procedure is used to pair.

I also don't see any abvious problem with your system.

I would look into the bluetooth versions, to see if there is some incompatability between the two devices in question. Look at the firmware level for the bluetooth adapter, and search for any clews.

Quote:
I have a bluetooth speaker that my Linux Mint system will connect to no problem. But it's not even seen by this system here. The only reason I am using Kubuntu is it's the only distro that would see and use my WiFi card. No amount of cajoling would get Mint to see it or use it. I even used a Linux supported WiFi dongle to no avail.
These comments lead me to believe you have some very new hardware in this box, so I'm thinking incompatability is most likley the problem.

Best of luck.

Last edited by camorri; 07-18-2023 at 02:44 PM.
 
Old 07-19-2023, 10:47 AM   #7
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 493

Rep: Reputation: 182Reputation: 182
Quote:
These comments lead me to believe you have some very new hardware in this box
I would tend to agree. I had to 'upgrade' my older Linux LTS on my file server to latest KUbuntu 22.04 so Linux would recognize the 2.5Gbit ethernet PCI card I had upgraded too. That said, so maybe you could buy a cheap BlueTooth dongle (use a USB port) to test the theory out?

Last edited by rclark; 07-19-2023 at 10:50 AM.
 
Old 07-20-2023, 06:21 PM   #8
GlockG20
LQ Newbie
 
Registered: Nov 2022
Posts: 6

Original Poster
Rep: Reputation: 0
So I bought a Linux supported Bluetooth dongle and viola! Stuff works! Yes the laptop is pretty new, Ryzen 9 should be a good indicator... anyhow thanks! Guess I'll have to wait until the installed Bluetooth is supported. For now though I can use the dongle.
 
Old 07-21-2023, 08:34 AM   #9
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 493

Rep: Reputation: 182Reputation: 182
Great!
 
  


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
[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
Bluetooth Dongle and Bluetooth Mouse... Any ideas on this one? flipjarg Linux - Newbie 1 07-14-2010 07:04 AM
Bluetooth not working on FC6 with Targus USB bluetooth adapter mikevicious Linux - Software 1 12-11-2009 09:03 AM
bluetooth nightmare connection refused (111) bbmak Linux - Wireless Networking 0 07-08-2007 01:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 10: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