Bluetooth adapter is crashing when connecting keyboard or scanning

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Dibo

Bluetooth adapter is crashing when connecting keyboard or scanning

Post by Dibo »

Hi,

Around half year ago I bought bluetooth keyboard. It worked perfect, used it few weeks. Then switched on USB keyboard for a months. Now I want to back to this bluetooth keyboard but when connect it I can write only few words and my bluetooth adapter is crashing. Can't turn it on. Only reboot help but it crash again when try to connect. Tried also remove keyboard from known devices and add it againg but adapter is crashing in the middle of searching for devices. Sometimes it find devices but crash again in the middle of connecting with keyboard. Note that I'm able to turn off and turn on bluetooth few times from KDE tray menu but after 2-3 tries there is a permament crash and nothing can up adapter, only system reboot. I remember that some time ago I saw bluetooth update in one of my actualizations, so maybe there is a problem with new driver or something.
Here are some results of my hiconfig command line:

Code: Select all

~ $ hciconfig -a
hci0:   Type: BR/EDR  Bus: USB
        BD Address: E4:A7:A0:FA:05:40  ACL MTU: 1021:4  SCO MTU: 96:6
        DOWN 
        RX bytes:30092 acl:5 sco:0 events:3687 errors:0
        TX bytes:599581 acl:5 sco:0 commands:2663 errors:0
        Features: 0xbf 0xfe 0x0f 0xfe 0xdb 0xff 0x7b 0x87
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
        Link policy: RSWITCH SNIFF 
        Link mode: SLAVE ACCEPT 

Code: Select all

~ $ sudo rfkill list
[sudo] hasło użytkownika dibo: 
0: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no

Code: Select all

~ $ sudo hciconfig hci0 up
Can't init device hci0: Connection timed out (110)

Code: Select all

~ $ hcitool scan
Device is not available: No such device
Attached also screens from bluetooth settings where it complains that my adapter is not on, click on "change it" do nothing, adapter is still down
Screenshot_20171217_145526.png
Screenshot_20171217_142029.png
Linux Mint 18.2 KDE edition

Regards
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Dibo

Re: Bluetooth adapter is crashing when connecting keyboard or scanning

Post by Dibo »

Tried now

Code: Select all

sudo apt-get install --reinstall bluez
and reboot OS. Same things, never ending scanning, had to turn off and turn on bluetooth few times and it finally found devices around, I was even able to connect to my keyboard but few words and led on keyboard start blinking and scan command hanging again. Probably few bluetooth restarts more and it crash permamently again
JeremyB
Level 21
Level 21
Posts: 13771
Joined: Fri Feb 21, 2014 8:17 am

Re: Bluetooth adapter is crashing when connecting keyboard or scanning

Post by JeremyB »

Post results for

Code: Select all

lsusb; dmesg | egrep -i 'blue|firm'
Dibo

Re: Bluetooth adapter is crashing when connecting keyboard or scanning

Post by Dibo »

Code: Select all

~ $ lsusb; dmesg | egrep -i 'blue|firm'
Bus 002 Device 002: ID 0bda:0411 Realtek Semiconductor Corp. 
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 007: ID 04f2:b51d Chicony Electronics Co., Ltd 
Bus 001 Device 005: ID 138a:003f Validity Sensors, Inc. VFS495 Fingerprint Reader
Bus 001 Device 003: ID 8087:0a2b Intel Corp. 
Bus 001 Device 008: ID 413c:301d Dell Computer Corp. 
Bus 001 Device 006: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 001 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 002: ID 0bda:5411 Realtek Semiconductor Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[    0.099987] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query honored via cmdline
[    5.236125] [drm] Finished loading DMC firmware i915/skl_dmc_ver1_26.bin (v1.26)
[   14.098027] Bluetooth: Core ver 2.22
[   14.098039] Bluetooth: HCI device and connection manager initialized
[   14.098041] Bluetooth: HCI socket layer initialized
[   14.098043] Bluetooth: L2CAP socket layer initialized
[   14.098047] Bluetooth: SCO socket layer initialized
[   14.128352] Bluetooth: HCI UART driver ver 2.3
[   14.128353] Bluetooth: HCI UART protocol H4 registered
[   14.128354] Bluetooth: HCI UART protocol BCSP registered
[   14.128375] Bluetooth: HCI UART protocol LL registered
[   14.128375] Bluetooth: HCI UART protocol ATH3K registered
[   14.128376] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   14.128397] Bluetooth: HCI UART protocol Intel registered
[   14.128409] Bluetooth: HCI UART protocol Broadcom registered
[   14.128409] Bluetooth: HCI UART protocol QCA registered
[   14.128410] Bluetooth: HCI UART protocol AG6XX registered
[   14.128411] Bluetooth: HCI UART protocol Marvell registered
[   14.187649] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-8000C-33.ucode failed with error -2
[   14.187658] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-8000C-32.ucode failed with error -2
[   14.201454] iwlwifi 0000:02:00.0: loaded firmware version 31.560484.0 op_mode iwlmvm
[   14.294430] Bluetooth: hci0: Firmware revision 0.0 build 95 week 37 2016
[   14.598724] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   14.598726] Bluetooth: BNEP filters: protocol multicast
[   14.598729] Bluetooth: BNEP socket layer initialized
[   23.168241] Bluetooth: RFCOMM TTY layer initialized
[   23.168247] Bluetooth: RFCOMM socket layer initialized
[   23.168255] Bluetooth: RFCOMM ver 1.11
[   77.275412] Bluetooth: Failed to disable LE scan: status 0x0c
[  117.178903] Bluetooth: Failed to disable LE scan: status 0x1f
[  117.178911] Bluetooth: hci0 command 0x200c tx timeout
[  130.875397] Bluetooth: hci0 command 0x200c tx timeout
[  228.397298] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[  228.397309] Bluetooth: HIDP socket layer initialized
[  228.417988] input: Logitech K810 as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:256/0005:046D:B319.000A/input/input31
[  228.418801] hid-generic 0005:046D:B319.000A: input,hidraw7: BLUETOOTH HID v12.02 Keyboard [Logitech K810] on e4:a7:a0:fa:05:40
[ 1230.454146] input: Logitech K810 as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:256/0005:046D:B319.000B/input/input32
[ 1230.455291] hid-generic 0005:046D:B319.000B: input,hidraw7: BLUETOOTH HID v12.02 Keyboard [Logitech K810] on e4:a7:a0:fa:05:40
[ 1261.689080] input: Logitech K810 as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:256/0005:046D:B319.000C/input/input33
[ 1261.689918] hid-generic 0005:046D:B319.000C: input,hidraw7: BLUETOOTH HID v12.02 Keyboard [Logitech K810] on e4:a7:a0:fa:05:40
[ 1337.598262] Bluetooth: hci0 command 0x0411 tx timeout
Dibo

Re: Bluetooth adapter is crashing when connecting keyboard or scanning

Post by Dibo »

Tested now this keyboard with my smartphone, connected super fast and everything stable as rock
Dibo

Re: Bluetooth adapter is crashing when connecting keyboard or scanning

Post by Dibo »

Interesting. Found another adapter, small dongle on USB and is working perfect. Mint found hci1 adapter and everything is stable via this new one. Actually writting this post on bluetooth keyboard

Code: Select all

hciconfig -a
hci1:   Type: BR/EDR  Bus: USB
        BD Address: 00:15:83:12:19:D4  ACL MTU: 1017:8  SCO MTU: 64:0
        UP RUNNING PSCAN ISCAN 
        RX bytes:5944 acl:198 sco:0 events:88 errors:0
        TX bytes:1344 acl:46 sco:0 commands:37 errors:0
        Features: 0xff 0xff 0x8d 0xfe 0x9b 0xf9 0x00 0x80
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
        Link policy: RSWITCH HOLD SNIFF PARK 
        Link mode: SLAVE ACCEPT 
        Name: 'BCM2045B3 Initialization Configuration Record File w/o UHE'
        Class: 0x1c010c
        Service Classes: Rendering, Capturing, Object Transfer
        Device Class: Computer, Laptop
        HCI Version: 2.0 (0x3)  Revision: 0x4000
        LMP Version: 2.0 (0x3)  Subversion: 0x430e
        Manufacturer: Broadcom Corporation (15)

hci0:   Type: BR/EDR  Bus: USB
        BD Address: E4:A7:A0:FA:05:40  ACL MTU: 1021:4  SCO MTU: 96:6
        DOWN 
        RX bytes:135059 acl:137 sco:0 events:13937 errors:0
        TX bytes:14201 acl:143 sco:0 commands:446 errors:0
        Features: 0xbf 0xfe 0x0f 0xfe 0xdb 0xff 0x7b 0x87
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
        Link policy: RSWITCH SNIFF 
        Link mode: SLAVE ACCEPT 
Locked

Return to “Networking”