You are not logged in.

#1 2015-06-16 11:48:55

sstuzzi
Member
Registered: 2015-06-16
Posts: 1

Bluetooth randomly stops responding (hci0 link tx timeout)

Hello everybody!
I've got some problem with bluetooth - time to time it stops responding and i get this in dmesg:

$ dmesg | grep hci0
[   98.897568] input: Bluetooth Mouse M557 as /devices/pci0000:00/0000:00:1a.2/usb4/4-1/4-1:1.0/bluetooth/hci0/hci0:11/0005:046D:B010.0001/input/input23
[ 1421.069885] Bluetooth: hci0 command 0x0804 tx timeout
[ 1539.038382] Bluetooth: hci0 link tx timeout
[ 1539.038395] Bluetooth: hci0 killing stalled connection b4:52:7d:ed:67:81
[ 1539.038409] Bluetooth: hci0 killing stalled connection 00:1f:20:c9:f5:12
[ 1541.043313] Bluetooth: hci0 command 0x0406 tx timeout
[ 1543.049977] Bluetooth: hci0 command 0x041f tx timeout
[ 1545.056532] Bluetooth: hci0 command 0x0406 tx timeout

Packages installed:

extra/bluez 5.30-1
extra/bluez-firmware 1.2-8
extra/bluez-hid2hci 5.30-1
extra/bluez-libs 5.30-1
extra/bluez-utils 5.30-1
extra/gnome-bluetooth 3.16.1-1
extra/pulseaudio-bluetooth 6.0-2

Device:

Bus 004 Device 002: ID 0b05:1751 ASUSTek Computer, Inc. BT-253 Bluetooth Adapter

[bluetooth]# show
Controller 00:15:AF:F7:F1:8E
	Name: linux-laptop
	Alias: linux-laptop
	Class: 0x0c010c
	Powered: yes
	Discoverable: no
	Pairable: yes
	UUID: Headset AG                (00001112-0000-1000-8000-00805f9b34fb)
	UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
	UUID: OBEX File Transfer        (00001106-0000-1000-8000-00805f9b34fb)
	UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
	UUID: OBEX Object Push          (00001105-0000-1000-8000-00805f9b34fb)
	UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
	UUID: IrMC Sync                 (00001104-0000-1000-8000-00805f9b34fb)
	UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
	UUID: Audio Source              (0000110a-0000-1000-8000-00805f9b34fb)
	UUID: Vendor specific           (00005005-0000-1000-8000-0002ee000001)
	UUID: Message Notification Se.. (00001133-0000-1000-8000-00805f9b34fb)
	UUID: Phonebook Access Server   (0000112f-0000-1000-8000-00805f9b34fb)
	UUID: Message Access Server     (00001132-0000-1000-8000-00805f9b34fb)
	Modalias: usb:v1D6Bp0246d051E
	Discovering: no
$ systemctl status bluetooth
● bluetooth.service - Bluetooth service
   Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
   Active: active (running) since Вт 2015-06-16 13:02:51 MSK; 1h 47min ago
     Docs: man:bluetoothd(8)
 Main PID: 361 (bluetoothd)
   Status: "Running"
   CGroup: /system.slice/bluetooth.service
           └─361 /usr/lib/bluetooth/bluetoothd

июн 16 13:02:51 linux-laptop bluetoothd[361]: Not enough free handles to register service
июн 16 13:02:51 linux-laptop bluetoothd[361]: Current Time Service could not be registered
июн 16 13:02:51 linux-laptop bluetoothd[361]: gatt-time-server: Input/output error (5)
июн 16 13:02:51 linux-laptop bluetoothd[361]: Not enough free handles to register service
июн 16 13:02:51 linux-laptop bluetoothd[361]: Not enough free handles to register service
июн 16 13:02:51 linux-laptop bluetoothd[361]: Sap driver initialization failed.
июн 16 13:02:51 linux-laptop bluetoothd[361]: sap-server: Operation not permitted (1)
июн 16 13:03:49 linux-laptop bluetoothd[361]: Endpoint registered: sender=:1.51 path=/MediaEndpoint/A2DPSource
июн 16 13:03:49 linux-laptop bluetoothd[361]: Endpoint registered: sender=:1.51 path=/MediaEndpoint/A2DPSink
июн 16 13:05:46 linux-laptop bluetoothd[361]: /org/bluez/hci0/dev_B4_52_7D_ED_67_81/fd0: fd(25) ready

Restarting device through bluetoothctl gives nothing, but 'hci0 link tx timeout'.
The only solution for now is to power off the PC and then to start it again. Rebooting makes nothing O_o
Is there any solution to make it work stable?
Thx in advance!

Last edited by sstuzzi (2015-06-16 11:54:10)

Offline

#2 2015-11-17 12:51:34

jordi
Member
Registered: 2006-12-16
Posts: 103
Website

Re: Bluetooth randomly stops responding (hci0 link tx timeout)

Just had the same problem.

4.2.5-1-ARCH
[48111.043949] Bluetooth: hci0 command 0x0804 tx timeout
[48116.049820] Bluetooth: hci0 command 0x0804 tx timeout
[48303.209058] Bluetooth: hci0 command 0x0c1a tx timeout
[48305.211398] Bluetooth: hci0 command 0x0406 tx timeout
[48334.692626] Bluetooth: hci0 urb ffff8800755b8300 failed to resubmit (113)
[48334.692997] Bluetooth: hci0 urb ffff8800755b8540 failed to resubmit (113)
[48442.809387] Bluetooth: hci0 urb ffff8802625bc6c0 failed to resubmit (113)
[48442.809756] Bluetooth: hci0 urb ffff8802625bc780 failed to resubmit (113)
[48487.809374] Bluetooth: hci0 urb ffff880262573540 failed to resubmit (113)
us 004 Device 009: ID 05ac:821f Apple, Inc. Built-in Bluetooth 2.0+EDR HCI
Bus 004 Device 004: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)

Fixed it by reloading the btusb module:

modprobe -r btusb
modprobe btusb

Seems to occur very seldom.

Offline

#3 2023-03-02 05:35:16

deFreitas
Member
Registered: 2015-04-12
Posts: 4

Re: Bluetooth randomly stops responding (hci0 link tx timeout)

Hey, giving my contribution here, hope it helps as it is helping me:

I have the same issue since I bought a new usb dongle for bluetooth. But I am able to connect after a random number of tries restarting the bluetooth service, powering off and on the bluetooth, trying to connect, so I created this program [1] to do this boring work to me.

[1] https://github.com/mageddo-projects/lin … ection-fix

Using it:

    $ bluetoothctl devices
    Device 94:CC:56:E5:72:85 WH-1000XM4
    $ java -jar linux-bluetooth-connection-fix.jar 94:CC:56:E5:72:85


About the bluetooth issue root cause:

I wasn't able to find a real fix for the bluetooth problem, looks like it doesn't even exist, all people advise to buy a new hardware at the end, then I made this program as a workaround.

Related issues

* https://bbs.archlinux.org/viewtopic.php?id=270693
* https://bbs.archlinux.org/viewtopic.php?id=195886

Offline

#4 2023-03-02 20:51:45

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: Bluetooth randomly stops responding (hci0 link tx timeout)

Watch the age of threads;  I hope they are not still looking for help six years later.

Closing this old thread.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB