Bluetooth not working - Ubuntu 17.04 (Lenovo Ideapad 100-15IBY)

Bug #1708692 reported by Oliver Bechtoldt
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Pilot6

Bug Description

I know there were some threads about the ideapad bluetooth already... But the solution(s) did not work at my end so far.

Bluetooth seems to work (blueman is installed) But it won't find any devices.

Here is the information on my system (according to what was requested in earlier posts):

**uname -a**
Linux Desmodus 4.10.0-30-generic #34-Ubuntu SMP Mon Jul 31 19:38:17 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

**lsb_release -a**
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 17.04
Release: 17.04
Codename: zesty

**lsusb**
Bus 001 Device 002: ID 8087:07e6 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 004: ID 13d3:3494 IMC Networks
Bus 002 Device 003: ID 174f:1169 Syntek
Bus 002 Device 002: ID 1bcf:0535 Sunplus Innovation Technology Inc.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

**hciconfig -a**
hci0: Type: Primary Bus: USB
        BD Address: 80:A5:89:C6:12:8C ACL MTU: 820:8 SCO MTU: 255:16
        UP RUNNING PSCAN ISCAN
        RX bytes:1746 acl:0 sco:0 events:118 errors:0
        TX bytes:3782 acl:0 sco:0 commands:115 errors:0
        Features: 0xff 0xff 0xff 0xfe 0xdb 0xff 0x7b 0x87
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy: RSWITCH HOLD SNIFF PARK
        Link mode: SLAVE ACCEPT
        Name: 'Desmodus'
        Class: 0x0c010c
        Service Classes: Rendering, Capturing
        Device Class: Computer, Laptop
        HCI Version: 4.0 (0x6) Revision: 0xb
        LMP Version: 4.0 (0x6) Subversion: 0x8723
        Manufacturer: Realtek Semiconductor Corporation (93)

sudo cat /sys/kernel/debug/usb/devices | awk '/13d3/' RS=

T: Bus=02 Lev=01 Prnt=01 Port=03 Cnt=03 Dev#= 4 Spd=12 MxCh= 0
D: Ver= 2.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=13d3 ProdID=3494 Rev= 2.00
S: Manufacturer=Realtek
S: Product=Bluetooth Radio
S: SerialNumber=00e04c000001
C:* #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=1ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E: Ad=03(O) Atr=01(Isoc) MxPS= 0 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 0 Ivl=1ms
I: If#= 1 Alt= 1 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E: Ad=03(O) Atr=01(Isoc) MxPS= 9 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 9 Ivl=1ms
I: If#= 1 Alt= 2 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E: Ad=03(O) Atr=01(Isoc) MxPS= 17 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 17 Ivl=1ms
I: If#= 1 Alt= 3 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E: Ad=03(O) Atr=01(Isoc) MxPS= 25 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 25 Ivl=1ms
I: If#= 1 Alt= 4 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E: Ad=03(O) Atr=01(Isoc) MxPS= 33 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 33 Ivl=1ms
I: If#= 1 Alt= 5 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E: Ad=03(O) Atr=01(Isoc) MxPS= 49 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 49 Ivl=1ms

lspci -nn | grep Net
04:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723]

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1708692

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: zesty
Revision history for this message
Pilot6 (hanipouspilot) wrote :

The issue is quite clear. The VID and PID of the BT has to be added upstream.
Next week I will build a test module.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Oliver Bechtoldt (theo-tiger) wrote :

I did as requested (apport-collect)...needed to tweak python a bit before I got it running. Anyways...it launched the launchepad...I granted token...but I could not see if it actually worked (how is it indicated that the apport-collect made it...??) Thanks again!!

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

apport-collect probably won't provide anymore information here.

As Pilot6 pointed out, you need to add the device id to btusb.c:

diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index fa24d693af24..e331e212f5fc 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -357,6 +357,7 @@ static const struct usb_device_id blacklist_table[] = {
        { USB_DEVICE(0x13d3, 0x3410), .driver_info = BTUSB_REALTEK },
        { USB_DEVICE(0x13d3, 0x3416), .driver_info = BTUSB_REALTEK },
        { USB_DEVICE(0x13d3, 0x3459), .driver_info = BTUSB_REALTEK },
+ { USB_DEVICE(0x13d3, 0x3494), .driver_info = BTUSB_REALTEK },

        /* Additional Realtek 8821AE Bluetooth devices */
        { USB_DEVICE(0x0b05, 0x17dc), .driver_info = BTUSB_REALTEK },

Revision history for this message
Pilot6 (hanipouspilot) wrote : Re: [Bug 1708692] Re: Bluetooth not working - Ubuntu 17.04 (Lenovo Ideapad 100-15IBY)
Download full text (5.0 KiB)

@Kai-Heng I am at a vacation and have a limited internet access. I
think it makes sense to make a test module fot Oliver to test and then
send a patch upstream if it works.

2017-08-05 14:02 GMT+03:00 Kai-Heng Feng <email address hidden>:
> apport-collect probably won't provide anymore information here.
>
> As Pilot6 pointed out, you need to add the device id to btusb.c:
>
> diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
> index fa24d693af24..e331e212f5fc 100644
> --- a/drivers/bluetooth/btusb.c
> +++ b/drivers/bluetooth/btusb.c
> @@ -357,6 +357,7 @@ static const struct usb_device_id blacklist_table[] = {
> { USB_DEVICE(0x13d3, 0x3410), .driver_info = BTUSB_REALTEK },
> { USB_DEVICE(0x13d3, 0x3416), .driver_info = BTUSB_REALTEK },
> { USB_DEVICE(0x13d3, 0x3459), .driver_info = BTUSB_REALTEK },
> + { USB_DEVICE(0x13d3, 0x3494), .driver_info = BTUSB_REALTEK },
>
> /* Additional Realtek 8821AE Bluetooth devices */
> { USB_DEVICE(0x0b05, 0x17dc), .driver_info = BTUSB_REALTEK },
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1708692
>
> Title:
> Bluetooth not working - Ubuntu 17.04 (Lenovo Ideapad 100-15IBY)
>
> Status in linux package in Ubuntu:
> Confirmed
>
> Bug description:
> I know there were some threads about the ideapad bluetooth already...
> But the solution(s) did not work at my end so far.
>
> Bluetooth seems to work (blueman is installed) But it won't find any
> devices.
>
> Here is the information on my system (according to what was requested
> in earlier posts):
>
> **uname -a**
> Linux Desmodus 4.10.0-30-generic #34-Ubuntu SMP Mon Jul 31 19:38:17 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
>
> **lsb_release -a**
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description: Ubuntu 17.04
> Release: 17.04
> Codename: zesty
>
> **lsusb**
> Bus 001 Device 002: ID 8087:07e6 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 004: ID 13d3:3494 IMC Networks
> Bus 002 Device 003: ID 174f:1169 Syntek
> Bus 002 Device 002: ID 1bcf:0535 Sunplus Innovation Technology Inc.
> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>
> **hciconfig -a**
> hci0: Type: Primary Bus: USB
> BD Address: 80:A5:89:C6:12:8C ACL MTU: 820:8 SCO MTU: 255:16
> UP RUNNING PSCAN ISCAN
> RX bytes:1746 acl:0 sco:0 events:118 errors:0
> TX bytes:3782 acl:0 sco:0 commands:115 errors:0
> Features: 0xff 0xff 0xff 0xfe 0xdb 0xff 0x7b 0x87
> Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
> Link policy: RSWITCH HOLD SNIFF PARK
> Link mode: SLAVE ACCEPT
> Name: 'Desmodus'
> Class: 0x0c010c
> Service Classes: Rendering, Capturing
> Device Class: Computer, Laptop
> HCI Version: 4.0 (0x6) Revision: 0xb
> LMP Version: 4.0 (0x6) Subversion: 0x8723
> Manufacturer: Realtek Semiconductor Cor...

Read more...

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :
Revision history for this message
Pilot6 (hanipouspilot) wrote :

@Kai-Heng This is not a perfect way of testing for a regular user. The 4.13 kernel may break something like proprietary video drivers.

In such cases I usually build a DKMS deb against the current Ubuntu kernel (4.10 in this case).
That will be a smooth testing and will give a temorary fix for the reporter.

For reference this is my PPA with test modules.

https://launchpad.net/~hanipouspilot/+archive/ubuntu/bluetooth

Revision history for this message
Pilot6 (hanipouspilot) wrote :

So I built a test module. Install it by running:

wget https://launchpad.net/~hanipouspilot/+archive/ubuntu/bluetooth/+files/btusb-lp1708692-dkms_0.1_all.deb
sudo dpkg -i btusb-lp1708692-dkms_0.1_all.deb

Reboot and test the bluetooth.

Changed in linux (Ubuntu):
assignee: nobody → Pilot6 (hanipouspilot)
Revision history for this message
Oliver Bechtoldt (theo-tiger) wrote :

Installation went just fine....
After reboot I could connect my phone to the notebook.
But I can NOT transfer files between the two...don't know if this is related to the driver.

The blueman-applet shows two possible connects: a) audio-source & b) Network Access Point (NAP)
which kinda makes me wonder.

Nevertheless....a big THANK YOU for your efforts....really appreciated.
As you might have guessed...english is not my mother lingo...so I sometimes have to translate back and forth.
I will check the interwebs, if someone encountered similar issues. Or is this something driver related?

Revision history for this message
Pilot6 (hanipouspilot) wrote :

File transfers is a different issue. You can search or ask at AskUbuntu.

I will send the patch upstream.

Revision history for this message
Pilot6 (hanipouspilot) wrote : [PATCH] Bluetooth: Add support of 13d3:3494 RTL8723BE device

T: Bus=02 Lev=01 Prnt=01 Port=03 Cnt=03 Dev#= 4 Spd=12 MxCh= 0
D: Ver= 2.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=13d3 ProdID=3494 Rev= 2.00
S: Manufacturer=Realtek
S: Product=Bluetooth Radio
S: SerialNumber=00e04c000001
C:* #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=1ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E: Ad=03(O) Atr=01(Isoc) MxPS= 0 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 0 Ivl=1ms
I: If#= 1 Alt= 1 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E: Ad=03(O) Atr=01(Isoc) MxPS= 9 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 9 Ivl=1ms
I: If#= 1 Alt= 2 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E: Ad=03(O) Atr=01(Isoc) MxPS= 17 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 17 Ivl=1ms
I: If#= 1 Alt= 3 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E: Ad=03(O) Atr=01(Isoc) MxPS= 25 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 25 Ivl=1ms
I: If#= 1 Alt= 4 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E: Ad=03(O) Atr=01(Isoc) MxPS= 33 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 33 Ivl=1ms
I: If#= 1 Alt= 5 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E: Ad=03(O) Atr=01(Isoc) MxPS= 49 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 49 Ivl=1ms

Signed-off-by: Dmitry Tunin <email address hidden>
Cc: <email address hidden>
---
 drivers/bluetooth/btusb.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index 24cc838..e1124ba 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -359,6 +359,7 @@ static const struct usb_device_id blacklist_table[] = {
  { USB_DEVICE(0x13d3, 0x3410), .driver_info = BTUSB_REALTEK },
  { USB_DEVICE(0x13d3, 0x3416), .driver_info = BTUSB_REALTEK },
  { USB_DEVICE(0x13d3, 0x3459), .driver_info = BTUSB_REALTEK },
+ { USB_DEVICE(0x13d3, 0x3494), .driver_info = BTUSB_REALTEK },

  /* Additional Realtek 8821AE Bluetooth devices */
  { USB_DEVICE(0x0b05, 0x17dc), .driver_info = BTUSB_REALTEK },
--
2.7.4

Revision history for this message
Marcel Holtmann (holtmann) wrote :

Hi Dmitry,

> T: Bus=02 Lev=01 Prnt=01 Port=03 Cnt=03 Dev#= 4 Spd=12 MxCh= 0
> D: Ver= 2.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1
> P: Vendor=13d3 ProdID=3494 Rev= 2.00
> S: Manufacturer=Realtek
> S: Product=Bluetooth Radio
> S: SerialNumber=00e04c000001
> C:* #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=500mA
> I:* If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
> E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=1ms
> E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
> E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
> I:* If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
> E: Ad=03(O) Atr=01(Isoc) MxPS= 0 Ivl=1ms
> E: Ad=83(I) Atr=01(Isoc) MxPS= 0 Ivl=1ms
> I: If#= 1 Alt= 1 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
> E: Ad=03(O) Atr=01(Isoc) MxPS= 9 Ivl=1ms
> E: Ad=83(I) Atr=01(Isoc) MxPS= 9 Ivl=1ms
> I: If#= 1 Alt= 2 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
> E: Ad=03(O) Atr=01(Isoc) MxPS= 17 Ivl=1ms
> E: Ad=83(I) Atr=01(Isoc) MxPS= 17 Ivl=1ms
> I: If#= 1 Alt= 3 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
> E: Ad=03(O) Atr=01(Isoc) MxPS= 25 Ivl=1ms
> E: Ad=83(I) Atr=01(Isoc) MxPS= 25 Ivl=1ms
> I: If#= 1 Alt= 4 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
> E: Ad=03(O) Atr=01(Isoc) MxPS= 33 Ivl=1ms
> E: Ad=83(I) Atr=01(Isoc) MxPS= 33 Ivl=1ms
> I: If#= 1 Alt= 5 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
> E: Ad=03(O) Atr=01(Isoc) MxPS= 49 Ivl=1ms
> E: Ad=83(I) Atr=01(Isoc) MxPS= 49 Ivl=1ms
>
> Signed-off-by: Dmitry Tunin <email address hidden>
> Cc: <email address hidden>
> ---
> drivers/bluetooth/btusb.c | 1 +
> 1 file changed, 1 insertion(+)

patch has been applied to bluetooth-next tree.

Regards

Marcel

Pilot6 (hanipouspilot)
tags: added: cherry-pick realtek
removed: ideapad lenovo
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.