1

After upgrading to 18.04 from 17.10, the bluetooth is not turning on. so i searched online and found this kernel patch:

sudo apt install git build-essential dkms
git clone https://github.com/jeremyb31/newbtfix-4.15.git
sudo dkms add ./newbtfix-4.15
sudo dkms install btusb/4.0

even after this, the bluetooth is not working perfectly, after the clean shutdown,sometimes the bluetooth works, but most of the time it doesn't. here are the important commands i executed in the terminal:

1. lspci -nnk | grep -iA3 net

02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. 
RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller [10ec:8136] 
(rev 05)
Subsystem: Lenovo RTL810xE PCI Express Fast Ethernet controller 
[17aa:3977]
Kernel driver in use: r8169
Kernel modules: r8169
03:00.0 Network controller [0280]: Qualcomm Atheros AR9485 Wireless 
Network Adapter [168c:0032] (rev 01)
Subsystem: Lenovo AR9485 Wireless Network Adapter [17aa:3218]
Kernel driver in use: ath9k
Kernel modules: ath9k

2. lsusb

    Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 005: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 
    Card Reader Controller
Bus 001 Device 003: ID 046d:c084 Logitech, Inc. 
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching 
Hub
Bus 001 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 002: ID 13d3:5170 IMC Networks 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

3. rfkill list

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

4. uname -r

4.15.0-23-generic

5. dmesg | egrep -i 'blue|firm'

[    0.029075] Spectre V2 : Enabling Restricted Speculation for 

firmware calls
[    0.052904] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[    5.632476] [Firmware Bug]: ACPI(PEGP) defines _DOD but not _DOS

[    6.434524] usb 1-1.3: Product: Bluetooth USB Host Controller
[   43.358752] Bluetooth: Core ver 2.22
[   43.358769] Bluetooth: HCI device and connection manager initialized
[   43.358772] Bluetooth: HCI socket layer initialized
[   43.358774] Bluetooth: L2CAP socket layer initialized
[   43.358779] Bluetooth: SCO socket layer initialized
[   60.474347] usb 1-1.3: Product: Bluetooth USB Host Controller
[   68.645867] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   68.645869] Bluetooth: BNEP filters: protocol multicast
[   68.645873] Bluetooth: BNEP socket layer initialized
[   71.196092] Bluetooth: hci0: command 0x201c tx timeout
[   73.212009] Bluetooth: hci0: command 0x1002 tx timeout
[   75.228002] Bluetooth: hci0: command 0x0c56 tx timeout
[   77.244110] Bluetooth: hci0: command 0x0c45 tx timeout
[   79.260042] Bluetooth: hci0: command 0x0c58 tx timeout
[   81.276072] Bluetooth: hci0: command tx timeout
[  109.177590] Bluetooth: RFCOMM TTY layer initialized
[  109.177598] Bluetooth: RFCOMM socket layer initialized
[  109.177604] Bluetooth: RFCOMM ver 1.11
[ 1643.282536] usb 1-1.3: Product: Bluetooth USB Host Controller
[ 1645.392304] Bluetooth: hci0: command 0x0c52 tx timeout
[ 1647.404256] Bluetooth: hci0: command 0x0c45 tx timeout
[ 1649.420176] Bluetooth: hci0: command 0x0c58 tx timeout
[ 1651.436080] Bluetooth: hci0: command 0x1004 tx timeout
[ 1668.673193] usb 1-1.3: device firmware changed
[ 1668.878929] usb 1-1.3: Product: Bluetooth USB Host Controller
[ 1690.825914] usb 1-1.3: Product: Bluetooth USB Host Controller
[ 1693.163783] Bluetooth: hci0: command 0x0c52 tx timeout
[ 2152.790808] Bluetooth: hci0: command 0x0405 tx timeout
[ 2177.961681] bluetoothd[1118]: segfault at 0 ip 000055ebbc27e576 sp 00007ffc9fd07280 error 4 in bluetoothd[55ebbc215000+f3000]
[ 2188.907517] usb 1-1.3: Product: Bluetooth USB Host Controller
[ 2190.997040] Bluetooth: hci0: command 0x2002 tx timeout
[ 2193.012956] Bluetooth: hci0: command 0x2003 tx timeout
[ 2195.028901] Bluetooth: hci0: command 0x201c tx timeout
[ 2197.044724] Bluetooth: hci0: command 0x1002 tx timeout
[ 2199.060655] Bluetooth: hci0: command 0x0c52 tx timeout
[ 2201.076583] Bluetooth: hci0: command tx timeout
[ 2483.045911] usb 1-1.3: Product: Bluetooth USB Host Controller
[ 2485.131481] Bluetooth: hci0: command 0x2003 tx timeout
[ 2487.143463] Bluetooth: hci0: command 0x201c tx timeout
[ 2489.159403] Bluetooth: hci0: command 0x1002 tx timeout
[ 2491.175235] Bluetooth: hci0: command 0x0c52 tx timeout
[ 2493.191159] Bluetooth: hci0: command 0x0c45 tx timeout
[ 2495.207062] Bluetooth: hci0: command tx timeout
  1. usb-devices | awk '/5170/' RS=

    T:  Bus=03 Lev=01 Prnt=01 Port=03 Cnt=01 Dev#=  2 Spd=480 MxCh= 0
    D:  Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
    P:  Vendor=13d3 ProdID=5170 Rev=07.30
    S:  Manufacturer=Azurewave
    S:  Product=Lenovo EasyCamera
    S:  SerialNumber=NULL
    C:  #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA
    I:  If#= 0 Alt= 0 #EPs= 1 Cls=0e(video) Sub=01 Prot=00 Driver=uvcvideo
    I:  If#= 1 Alt= 0 #EPs= 0 Cls=0e(video) Sub=02 Prot=00 Driver=uvcvideo
    

EDIT1: output after a clean shutdown(i didn't turn the bluetooth on at this time):

1.lsusb

Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 003: ID 046d:c084 Logitech, Inc. 
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 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 002: ID 13d3:5170 IMC Networks 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

2.dmesg | egrep -i 'blue|firm'

[    0.029073] Spectre V2 : Enabling Restricted Speculation for firmware calls
[    0.052909] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[    5.615469] [Firmware Bug]: ACPI(PEGP) defines _DOD but not _DOS
[    6.418326] usb 1-1.3: Product: Bluetooth USB Host Controller

EDIT 2: After the shutdown, bluetooth is working as expected but after i put the pc to sleep and wake it up again, bluetooth is not turning on. Here are the ouputs again after waking from sleep:

1.dmesg | egrep -i 'blue|firm'

[    0.029073] Spectre V2 : Enabling Restricted Speculation for firmware calls
[    0.052909] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[    5.615469] [Firmware Bug]: ACPI(PEGP) defines _DOD but not _DOS
[    6.418326] usb 1-1.3: Product: Bluetooth USB Host Controller
vikrant@vikrant-Lenovo-IdeaPad-Z500:~$ dmesg | egrep -i 'blue|firm'
[    0.029073] Spectre V2 : Enabling Restricted Speculation for firmware calls
[    0.052909] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[    5.615469] [Firmware Bug]: ACPI(PEGP) defines _DOD but not _DOS
[    6.418326] usb 1-1.3: Product: Bluetooth USB Host Controller
[  675.094346] usb 1-1.3: Product: Bluetooth USB Host Controller
[  675.196812] Bluetooth: Core ver 2.22
[  675.196843] Bluetooth: HCI device and connection manager initialized
[  675.196847] Bluetooth: HCI socket layer initialized
[  675.196849] Bluetooth: L2CAP socket layer initialized
[  675.196855] Bluetooth: SCO socket layer initialized
[  686.376573] usb 1-1.3: Product: Bluetooth USB Host Controller
[  686.693538] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[  686.693545] Bluetooth: BNEP filters: protocol multicast
[  686.693558] Bluetooth: BNEP socket layer initialized
[  686.878669] Bluetooth: RFCOMM TTY layer initialized
[  686.878683] Bluetooth: RFCOMM socket layer initialized
[  686.878693] Bluetooth: RFCOMM ver 1.11
[  692.414170] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  708.120444] usb 1-1.3: Product: Bluetooth USB Host Controller
[  714.171055] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  730.296939] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  746.170820] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  762.292713] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  783.282617] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  799.152516] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  815.278422] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  831.148317] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  847.275223] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  863.145118] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  879.284993] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  895.168915] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  909.170673] usb 1-1.3: device firmware changed
[  909.610615] usb 1-1.3: Product: Bluetooth USB Host Controller
[  926.256774] usb 1-1.3: Product: Bluetooth USB Host Controller
[  928.335191] Bluetooth: hci0: command 0x201c tx timeout
[  930.351945] Bluetooth: hci0: command 0x1002 tx timeout
[  932.368698] Bluetooth: hci0: command 0x0c52 tx timeout
[  934.385494] Bluetooth: hci0: command 0x0c45 tx timeout
[  936.402236] Bluetooth: hci0: command 0x0c58 tx timeout

2.lsusb

Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 012: ID 0cf3:3004 Atheros Communications, Inc. AR3012 Bluetooth 4.0
Bus 001 Device 003: ID 046d:c084 Logitech, Inc. 
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 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 002: ID 13d3:5170 IMC Networks 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

EDIT3: Tried again after clean shutdown, bluetooth is on and connecting to devices. also here are the outputs again, this time the bluetooth was already on after the boot.

1.lsusb

Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 006: ID 0cf3:3004 Atheros Communications, Inc. AR3012 Bluetooth 4.0
Bus 001 Device 003: ID 046d:c084 Logitech, Inc. 
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 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 002: ID 13d3:5170 IMC Networks 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

2.dmesg | egrep -i 'blue|firm'

[    0.029055] Spectre V2 : Enabling Restricted Speculation for firmware calls
[    0.052905] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[    5.632858] [Firmware Bug]: ACPI(PEGP) defines _DOD but not _DOS
[    6.418827] usb 1-1.3: Product: Bluetooth USB Host Controller
[   37.782926] Bluetooth: Core ver 2.22
[   37.782940] Bluetooth: HCI device and connection manager initialized
[   37.782943] Bluetooth: HCI socket layer initialized
[   37.782944] Bluetooth: L2CAP socket layer initialized
[   37.782948] Bluetooth: SCO socket layer initialized
[   51.274273] usb 1-1.3: Product: Bluetooth USB Host Controller
[   53.084071] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   53.084073] Bluetooth: BNEP filters: protocol multicast
[   53.084076] Bluetooth: BNEP socket layer initialized
[   78.375072] Bluetooth: RFCOMM TTY layer initialized
[   78.375086] Bluetooth: RFCOMM socket layer initialized
[   78.375093] Bluetooth: RFCOMM ver 1.11
[  113.341121] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  129.154992] Bluetooth: hci0: last event is not cmd complete (0x0f)

The problems seems to be that after the os is wakeup from sleep, the bluetooth doesn't turn on.just to repeat what i said above, after the clean shutdown,sometimes the bluetooth works, but most of the time it doesn't.

vikrant
  • 807

0 Answers0