You are not logged in.

#1 2024-08-09 11:28:03

Tony15246
Member
Registered: 2024-08-09
Posts: 2

[SOLVED]bluetooth scanning for new devices not working

I'm using KDE and I can't find any new devices whether in the KDE GUI or using bluetoothctl in command line. There is no error message, it simply doesn't display anything, and no new devices can be found. The devices that have been paired before can still be connected through bluetooth and used normally, so when I recognized this problem I had no idea from which version of the kernel did this problem started. I'm using kernel linux 6.10.3-arch1-2 right now. And I have tried to switch to linux-lts kernel, everything works just fine with linux-lts kernel, I can find new devices and pair to them without any problem.

What's more, there is a way to fix this problem for a very short period of time. If I remove and reload the btusb mod with the following command, only in the very 30 seconds after the reload, the bluetooth would work normally and can find and pair with new devices. When the 30 seconds pass, the problem will reappear.(not exactly 30 seconds, but a very short period of time)

sudo rmmod btusb
sudo modprobe btusb

I'm totally a newbie and I personally guess this problem is probably related to the kernel and kernel mod, because both switching the kernel and reload the mod can solve this problem in some extent. But I can't figure it out by myself and this problem has kept disturbing me for over half month(I was hoping that the updates of the kernel may solve this problem, so I waited for several updates, however the problem still exists). If anyone has a clue about this problem, plz give me some help, thank you in advance.

just in case more information is needed
DE: KDE Plasma 6.1.3

❯ uname -a
Linux myarch 6.10.3-arch1-2 #1 SMP PREEMPT_DYNAMIC Tue, 06 Aug 2024 07:21:19 +0000 x86_64 GNU/Linux
❯ lsusb | grep bluetooth -i
Bus 001 Device 003: ID 8087:0aaa Intel Corp. Bluetooth 9460/9560 Jefferson Peak (JfP)
❯ rfkill list
0: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
❯ lsmod | grep btusb
btusb                  86016  0
btrtl                  32768  1 btusb
btintel                65536  1 btusb
btbcm                  24576  1 btusb
btmtk                  12288  1 btusb
bluetooth            1105920  40 btrtl,btmtk,btintel,btbcm,bnep,btusb,rfcomm
❯ btmgmt info
Index list with 1 item
hci0:   Primary controller
        addr DC:1B:A1:B9:15:FD version 10 manufacturer 2 class 0x6c010c
        supported settings: powered connectable fast-connectable discoverable bondable link-security ssp br/edr le advertising secure-conn debug-keys privacy configuration static-addr phy-configuration wide-band-speech 
        current settings: powered bondable ssp br/edr le secure-conn wide-band-speech 
        name myarch
        short name 
hci0:   Configuration options
        supported options: public-address 
        missing options: 
❯ bluetoothctl show
Controller DC:1B:A1:B9:15:FD (public)
        Manufacturer: 0x0002 (2)
        Version: 0x0a (10)
        Name: myarch
        Alias: myarch
        Class: 0x006c010c (7078156)
        Powered: yes
        PowerState: on
        Discoverable: no
        DiscoverableTimeout: 0x000000b4 (180)
        Pairable: yes
        UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
        UUID: Handsfree Audio Gateway   (0000111f-0000-1000-8000-00805f9b34fb)
        UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
        UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
        UUID: Audio Source              (0000110a-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
        UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
        UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
        UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb)
        UUID: Vendor specific           (03b80e5a-ede8-4b33-a751-6ce34ec4c700)
        UUID: Handsfree                 (0000111e-0000-1000-8000-00805f9b34fb)
        Modalias: usb:v1D6Bp0246d054D
        Discovering: yes
        Roles: central
        Roles: peripheral
Advertising Features:
        ActiveInstances: 0x00 (0)
        SupportedInstances: 0x0c (12)
        SupportedIncludes: tx-power
        SupportedIncludes: appearance
        SupportedIncludes: local-name
        SupportedSecondaryChannels: 1M
        SupportedSecondaryChannels: 2M
        SupportedCapabilities.MinTxPower: 0xffffffde (-34)
        SupportedCapabilities.MaxTxPower: 0x0007 (7)
        SupportedCapabilities.MaxAdvLen: 0xfb (251)
        SupportedCapabilities.MaxScnRspLen: 0xfb (251)
        SupportedFeatures: CanSetTxPower
        SupportedFeatures: HardwareOffload
❯ sudo btmon
Bluetooth monitor ver 5.77
btmon[2921]: = Note: Linux version 6.10.3-arch1-2 (x86_64)                                                                                                                                                                   0.582804
btmon[2921]: = Note: Bluetooth subsystem version 2.22                                                                                                                                                                        0.582806
= New Index: DC:1B:A1:B9:15:FD (Primary,USB,hci0)                                                                                                                                                                     [hci0] 0.582806
= Open Index: DC:1B:A1:B9:15:FD                                                                                                                                                                                       [hci0] 0.582807
= Index Info: DC:1B:A1:B9:15:FD (Intel Corp.)                                                                                                                                                                         [hci0] 0.582807
bluetoothd[513]: @ MGMT Open: bluetoothd (privileged) version 1.22                                                                                                                                                  {0x0001} 0.582808
> ACL Data RX: Handle 256 flags 0x02 dlen 14                                                                                                                                                                       #1 [hci0] 0.673295
❯ journalctl -b -u bluetooth
8月 09 18:36:52 myarch systemd[1]: Starting Bluetooth service...
8月 09 18:36:52 myarch bluetoothd[513]: Bluetooth daemon 5.77
8月 09 18:36:52 myarch systemd[1]: Started Bluetooth service.
8月 09 18:36:52 myarch bluetoothd[513]: Starting SDP server
8月 09 18:36:52 myarch bluetoothd[513]: src/plugin.c:init_plugin() System does not support bap plugin
8月 09 18:36:52 myarch bluetoothd[513]: src/plugin.c:init_plugin() System does not support bass plugin
8月 09 18:36:52 myarch bluetoothd[513]: src/plugin.c:init_plugin() System does not support mcp plugin
8月 09 18:36:52 myarch bluetoothd[513]: src/plugin.c:init_plugin() System does not support vcp plugin
8月 09 18:36:52 myarch bluetoothd[513]: profiles/audio/micp.c:micp_init() D-Bus experimental not enabled
8月 09 18:36:52 myarch bluetoothd[513]: src/plugin.c:init_plugin() System does not support micp plugin
8月 09 18:36:52 myarch bluetoothd[513]: src/plugin.c:init_plugin() System does not support ccp plugin
8月 09 18:36:52 myarch bluetoothd[513]: src/plugin.c:init_plugin() System does not support csip plugin
8月 09 18:36:52 myarch bluetoothd[513]: src/plugin.c:init_plugin() System does not support asha plugin
8月 09 18:36:52 myarch bluetoothd[513]: Bluetooth management interface 1.22 initialized
8月 09 18:36:52 myarch bluetoothd[513]: Battery Provider Manager created
8月 09 18:36:52 myarch bluetoothd[513]: src/device.c:device_set_wake_support() Unable to set wake_support without RPA resolution
8月 09 18:36:52 myarch bluetoothd[513]: src/device.c:device_set_wake_support() Unable to set wake_support without RPA resolution
8月 09 18:36:56 myarch bluetoothd[513]: Endpoint registered: sender=:1.29 path=/MediaEndpoint/A2DPSource/ldac
8月 09 18:36:56 myarch bluetoothd[513]: Endpoint registered: sender=:1.29 path=/MediaEndpoint/A2DPSink/aptx_hd
8月 09 18:36:56 myarch bluetoothd[513]: Endpoint registered: sender=:1.29 path=/MediaEndpoint/A2DPSource/aptx_hd
8月 09 18:36:56 myarch bluetoothd[513]: Endpoint registered: sender=:1.29 path=/MediaEndpoint/A2DPSink/aptx
8月 09 18:36:56 myarch bluetoothd[513]: Endpoint registered: sender=:1.29 path=/MediaEndpoint/A2DPSource/aptx
8月 09 18:36:56 myarch bluetoothd[513]: Endpoint registered: sender=:1.29 path=/MediaEndpoint/A2DPSink/aac
8月 09 18:36:56 myarch bluetoothd[513]: Endpoint registered: sender=:1.29 path=/MediaEndpoint/A2DPSource/aac
8月 09 18:36:56 myarch bluetoothd[513]: Endpoint registered: sender=:1.29 path=/MediaEndpoint/A2DPSink/opus_g
8月 09 18:36:56 myarch bluetoothd[513]: Endpoint registered: sender=:1.29 path=/MediaEndpoint/A2DPSource/opus_g
8月 09 18:36:56 myarch bluetoothd[513]: Endpoint registered: sender=:1.29 path=/MediaEndpoint/A2DPSink/sbc
8月 09 18:36:56 myarch bluetoothd[513]: Endpoint registered: sender=:1.29 path=/MediaEndpoint/A2DPSource/sbc
8月 09 18:36:56 myarch bluetoothd[513]: Endpoint registered: sender=:1.29 path=/MediaEndpoint/A2DPSource/aptx_ll_1
8月 09 18:36:56 myarch bluetoothd[513]: Endpoint registered: sender=:1.29 path=/MediaEndpoint/A2DPSource/aptx_ll_0
8月 09 18:36:56 myarch bluetoothd[513]: Endpoint registered: sender=:1.29 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_1
8月 09 18:36:56 myarch bluetoothd[513]: Endpoint registered: sender=:1.29 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_0
8月 09 18:36:56 myarch bluetoothd[513]: Endpoint registered: sender=:1.29 path=/MediaEndpoint/A2DPSource/faststream
8月 09 18:36:56 myarch bluetoothd[513]: Endpoint registered: sender=:1.29 path=/MediaEndpoint/A2DPSource/faststream_duplex
8月 09 18:36:56 myarch bluetoothd[513]: Endpoint registered: sender=:1.29 path=/MediaEndpoint/A2DPSink/opus_05
8月 09 18:36:56 myarch bluetoothd[513]: Endpoint registered: sender=:1.29 path=/MediaEndpoint/A2DPSource/opus_05
8月 09 18:36:56 myarch bluetoothd[513]: Endpoint registered: sender=:1.29 path=/MediaEndpoint/A2DPSink/opus_05_duplex
8月 09 18:36:56 myarch bluetoothd[513]: Endpoint registered: sender=:1.29 path=/MediaEndpoint/A2DPSource/opus_05_duplex

Last edited by Tony15246 (2024-08-15 16:56:29)

Offline

#2 2024-08-15 16:55:04

Tony15246
Member
Registered: 2024-08-09
Posts: 2

Re: [SOLVED]bluetooth scanning for new devices not working

problem fixed after I updated to linux 6.10.4-arch2-1 kernel
have no idea about why this problem occur and how it is fixed

Offline

Board footer

Powered by FluxBB