Bluetooth - sometimes

I’ve just made a report on bugzila.
Right now Bluetooth is working. Latter, when it does not work, I shall try
sudo rmmod ath3k
sudo modprobe ath3k

On Mon, 01 Dec 2014 08:36:01 +0000, Filipe wrote:

> I’ve just made a report on bugzila.
> Right now Bluetooth is working. Latter, when it does not work, I shall
> try sudo rmmod ath3k sudo modprobe ath3k

Sounds good.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Hi,
I have the same issue: Sometimes Bluetooth is working and sometimes not. I’m using openSuse 13.2. on Lenovo M30-70 with Atheros Bluetooth built-in
This is the core issue happend:

insmod ./drivers/bluetooth/ath3k.ko

dmesg:
1011.873398] Bluetooth: Can’t get state to change to load ram patch err
1011.873411] Bluetooth: Loading patch file failed
1011.873434] ath3k: probe of 2-7:1.0 failed with error -110
1011.873554] usbcore: registered new interface driver ath3k

It is sometimes after full reboot, e.g. this morning, the laptop was shut down properly yesterday and started today.

I found a hint for the issue, see here. At the bottom I pasted some more details of my current issue:

8<-----------------------
From
http://comments.gmane.org/gmane.linux.drivers.ath9k.devel/12419

Picon
Re: Atheros QCWB335 / AR9565 / QCA9565 Bluetooth

I did a booting marathon now to see how often it works or not. I did
20 boots, working y or n, here is the result:

y y n y n y n n n y n n y n n n n n n y

So it worked 7/20 times, its like playing roulette, completely random.
In my understanding it can only be a timing or priority issue at
startup.

2014/1/15 Joshua Richenhagen <richenhagen <at> gmail.com>:
> Noooooooooooooooooo, I’m getting crazy! Two reboots later it wasn’t
> working again, now I had to reboot seven times to get it working
> again. So the Problem is still the same.

Joshua Richenhagen | 13 Feb 13:06 2014
Picon
Re: Atheros QCWB335 / AR9565 / QCA9565 Bluetooth

Dear Sujith,

finally I found the real reason, ath3k fails to work approximately 2/3
of the time if btusb is connected to a pin which uses the xhci driver.
I compiled a dkms kernel package, with the help of a very nice
canonical employee, which switches the usb pin of the bt device to
ehci on startup. Now ath3k and my bluetooth works like a charm 100% of
the time. However, this is just a workaround for a very nasty bug. Can
you forward this information to the bluetooth devs?
-------------------------------------->8

Here my detailed information:
8<---------------------------------------
20150322_ Bluetooth not loaded, kein Icon sichtbar im Tray:

uname -a
Linux linux-zi68.site 3.16.7-7-desktop #1 SMP PREEMPT Wed Dec 17 18:00:44 UTC 2014 (762f27a) x86_64 x86_64 x86_64 GNU/Linux

harald@linux-zi68:~> demsg | grep -i blue
demsg: command not found
harald@linux-zi68:~> dmesg | grep -i blue
9.798693] Bluetooth: Core ver 2.19
9.798716] Bluetooth: HCI device and connection manager initialized
9.798724] Bluetooth: HCI socket layer initialized
9.798728] Bluetooth: L2CAP socket layer initialized
9.798738] Bluetooth: SCO socket layer initialized
14.917745] Bluetooth: Error in firmware loading err = -110,len = 448, size = 4096
14.917755] Bluetooth: Loading patch file failed
51.091583] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
51.091586] Bluetooth: BNEP filters: protocol multicast
51.091595] Bluetooth: BNEP socket layer initialized

harald@linux-zi68:~> lsmod | grep -i blue
bluetooth 483238 7 bnep,ath3k,btusb
6lowpan_iphc 18702 1 bluetooth
rfkill 26772 5 cfg80211,ideapad_laptop,bluetooth
harald@linux-zi68:~>

rmmod ath3k

Dmesg:
934.247800] usbcore: deregistering interface driver ath3k

insmod ./drivers/bluetooth/ath3k.ko

dmesg:
1011.873398] Bluetooth: Can’t get state to change to load ram patch err
1011.873411] Bluetooth: Loading patch file failed
1011.873434] ath3k: probe of 2-7:1.0 failed with error -110
1011.873554] usbcore: registered new interface driver ath3k

lsusb
linux-zi68:/lib/modules/3.16.7-7-desktop/kernel # lsusb
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 005: ID 0cf3:3004 Atheros Communications, Inc.
Bus 002 Device 004: ID 04f2:b420 Chicony Electronics Co., Ltd
Bus 002 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 002 Device 007: ID 046d:c018 Logitech, Inc. Optical Wheel Mouse
Bus 002 Device 006: ID 04b3:301b IBM Corp. SK-8815 Keyboard
Bus 002 Device 002: ID 04b3:301a IBM Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lsusb -v cutted to Bus 002 Device 005: ID 0cf3:3004 Atheros Communications, Inc.
Bus 002 Device 005: ID 0cf3:3004 Atheros Communications, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 224 Wireless
bDeviceSubClass 1 Radio Frequency
bDeviceProtocol 1 Bluetooth
bMaxPacketSize0 64
idVendor 0x0cf3 Atheros Communications, Inc.
idProduct 0x3004
bcdDevice 0.01
iManufacturer 0
iProduct 0
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 185
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 100mA
Interface Association:
bLength 8
bDescriptorType 11
bFirstInterface 0
bInterfaceCount 2
bFunctionClass 224 Wireless
bFunctionSubClass 1 Radio Frequency
bFunctionProtocol 1 Bluetooth
iFunction 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 1 Bluetooth
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 1 Bluetooth
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0000 1x 0 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0000 1x 0 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 1
bNumEndpoints 2
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 1 Bluetooth
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0009 1x 9 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0009 1x 9 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 2
bNumEndpoints 2
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 1 Bluetooth
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0011 1x 17 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0011 1x 17 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 3
bNumEndpoints 2
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 1 Bluetooth
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0019 1x 25 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0019 1x 25 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 4
bNumEndpoints 2
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 1 Bluetooth
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0021 1x 33 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0021 1x 33 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 5
bNumEndpoints 2
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 1 Bluetooth
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0031 1x 49 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0031 1x 49 bytes
bInterval 1
Device Status: 0x0001
Self Powered

-> shows iProduct 0. So according to
> http://wireless.kernel.org/en/users/Drivers/ath3k it’s a AR3011

ls /lib/modules/ -lrt
insgesamt 0
drwxr-xr-x 1 root root 354 14. Mär 12:53 3.16.6-2-desktop
drwxr-xr-x 1 root root 354 14. Mär 15:44 3.16.7-7-desktop

Try installing with:
zypper install rfkill

zypper install rfkill

rfkill list
0: ideapad_wlan: Wireless LAN
Soft blocked: no
Hard blocked: no
1: ideapad_bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
2: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no

----------------------------------->8

Does it help to understand the issue?

kybernetik42