[JeremyB Solved] Wi-Fi doesn't work properly with Bluetooth

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
v_g
Level 1
Level 1
Posts: 6
Joined: Thu Feb 19, 2015 7:28 am

[JeremyB Solved] Wi-Fi doesn't work properly with Bluetooth

Post by v_g »

My PC is a Dell Inspiron 3542 (Intel Pentium 3558U, 4 GB RAM, 500 GB HDD and Intel HD Graphics). I've tested the system under Windows 7 and there's been no problem between the Wi-Fi and Bluetooth operating together, however on Linux Ubuntu and my current - Linux Mint 17.1 KDE x64, when I use Bluetooth, the Wi-Fi keeps constantly stopping for a given period of time, after which it comes back for a couple of seconds and stops again. I've seen that other people are having similar issues with Bluetooth and Wi-Fi not coping well together under Linux. All help is welcome!
Last edited by v_g on Thu Feb 19, 2015 1:48 pm, edited 1 time in total.
User avatar
Pjotr
Level 22
Level 22
Posts: 16161
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Wi-Fi doesn't work properly with Bluetooth

Post by Pjotr »

It's a known problem on some hardware, for which I myself have found no other solution than to disable Bluetooth whenever I need wifi....

The problem has probably something to do with wireless chipsets that have a dual feature: to deliver both wifi and Bluetooth. The Linux driver for the chipset apparently has difficulties with simultaneous operation.

You might try installing a newer kernel; with a bit of luck that contains a newer driver with a fix for this issue.
Tip: 10 things to do after installing Linux Mint 20.1 Ulyssa
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
JeremyB
Level 20
Level 20
Posts: 11974
Joined: Fri Feb 21, 2014 8:17 am

Re: Wi-Fi doesn't work properly with Bluetooth

Post by JeremyB »

What wifi card do you have as the driver might not have the bluetooth coexistence parameter set or might even have a bug in the parameter

Code: Select all

lspci -nnk | grep -iA2 net
v_g
Level 1
Level 1
Posts: 6
Joined: Thu Feb 19, 2015 7:28 am

Re: Wi-Fi doesn't work properly with Bluetooth

Post by v_g »

JeremyB wrote:What wifi card do you have as the driver might not have the bluetooth coexistence parameter set or might even have a bug in the parameter

Code: Select all

lspci -nnk | grep -iA2 net
Here's what I got:

06:00.0 Network controller [0280]: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter [168c:0036] (rev 01)
Subsystem: Dell Device [1028:020c]
Kernel driver in use: ath9k
07:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10ec:8136] (rev 07)
Subsystem: Dell Device [1028:0651]
Kernel driver in use: r8169
v_g
Level 1
Level 1
Posts: 6
Joined: Thu Feb 19, 2015 7:28 am

Re: Wi-Fi doesn't work properly with Bluetooth

Post by v_g »

Pjotr wrote:It's a known problem on some hardware, for which I myself have found no other solution than to disable Bluetooth whenever I need wifi....

The problem has probably something to do with wireless chipsets that have a dual feature: to deliver both wifi and Bluetooth. The Linux driver for the chipset apparently has difficulties with simultaneous operation.

You might try installing a newer kernel; with a bit of luck that contains a newer driver with a fix for this issue.
Personally, I can't disable Bluetooth while using Wi-Fi, because my Bluetooth device is a pair of speakers - the Logitech Z600. They alone cost half as much as the entire computer and it'd be really disappointing if there's no solution, because the integrated speakers of the laptop are practically unusable due to their low quality and not being able to use the Bluetooth ones would mean not being able to use Linux in general.
User avatar
Pjotr
Level 22
Level 22
Posts: 16161
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Wi-Fi doesn't work properly with Bluetooth

Post by Pjotr »

First of all, I'd certainly go along with the help that JeremyB is giving you, because that would be the most elegant solution....

If that fails, you might try if you can bypass the problem by a quick and dirty solution: buy a separate USB Bluetooth dongle for a few dollars, and use only that for your Bluetooth connections.
Tip: 10 things to do after installing Linux Mint 20.1 Ulyssa
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
JeremyB
Level 20
Level 20
Posts: 11974
Joined: Fri Feb 21, 2014 8:17 am

Re: Wi-Fi doesn't work properly with Bluetooth

Post by JeremyB »

Now lets see what this next command tells us

Code: Select all

modinfo -p ath9k
v_g
Level 1
Level 1
Posts: 6
Joined: Thu Feb 19, 2015 7:28 am

Re: Wi-Fi doesn't work properly with Bluetooth

Post by v_g »

JeremyB wrote:Now lets see what this next command tells us

Code: Select all

modinfo -p ath9k
debug:Debugging mask (uint)
nohwcrypt:Disable hardware encryption (int)
blink:Enable LED blink on activity (int)
btcoex_enable:Enable wifi-BT coexistence (int)
bt_ant_diversity:Enable WLAN/BT RX antenna diversity (int)
ps_enable:Enable WLAN PowerSave (int)
v_g
Level 1
Level 1
Posts: 6
Joined: Thu Feb 19, 2015 7:28 am

Re: Wi-Fi doesn't work properly with Bluetooth

Post by v_g »

JeremyB wrote:Now lets see what this next command tells us

Code: Select all

modinfo -p ath9k
Now what?
JeremyB
Level 20
Level 20
Posts: 11974
Joined: Fri Feb 21, 2014 8:17 am

Re: Re: Wi-Fi doesn't work properly with Bluetooth

Post by JeremyB »

v_g wrote:
JeremyB wrote:Now lets see what this next command tells us

Code: Select all

modinfo -p ath9k
debug:Debugging mask (uint)
nohwcrypt:Disable hardware encryption (int)
blink:Enable LED blink on activity (int)
btcoex_enable:Enable wifi-BT coexistence (int)
bt_ant_diversity:Enable WLAN/BT RX antenna diversity (int)
ps_enable:Enable WLAN PowerSave (int)
Try

Code: Select all

echo "options ath9k btcoex_enable=1" | sudo tee /etc/modprobe.d/ath9k.conf
reboot and see if there is any improvement
v_g
Level 1
Level 1
Posts: 6
Joined: Thu Feb 19, 2015 7:28 am

Re: Re: Wi-Fi doesn't work properly with Bluetooth

Post by v_g »

JeremyB wrote:
v_g wrote:
JeremyB wrote:Now lets see what this next command tells us

Code: Select all

modinfo -p ath9k
debug:Debugging mask (uint)
nohwcrypt:Disable hardware encryption (int)
blink:Enable LED blink on activity (int)
btcoex_enable:Enable wifi-BT coexistence (int)
bt_ant_diversity:Enable WLAN/BT RX antenna diversity (int)
ps_enable:Enable WLAN PowerSave (int)
Try

Code: Select all

echo "options ath9k btcoex_enable=1" | sudo tee /etc/modprobe.d/ath9k.conf
reboot and see if there is any improvement
:)))))))))) It works!!!! Can't thank you enough!
User avatar
Pjotr
Level 22
Level 22
Posts: 16161
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Wi-Fi doesn't work properly with Bluetooth

Post by Pjotr »

Cool! :)

@JeremyB: can you give me some more information? I was under the impression that the modinfo output showed that Bluetooth coexistence was *already* activated:

Code: Select all

btcoex_enable:Enable wifi-BT coexistence (int)
But I suppose that I was wrong, because otherwise your addition to ath9k.conf wouldn't have worked. Can you please explain a bit more about the modinfo output? :)
Tip: 10 things to do after installing Linux Mint 20.1 Ulyssa
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
JeremyB
Level 20
Level 20
Posts: 11974
Joined: Fri Feb 21, 2014 8:17 am

Re: Wi-Fi doesn't work properly with Bluetooth

Post by JeremyB »

I have a couple computers that have atheros cards and I know that bt coex isn't enabled in ath9k by default like it is with some other modules, I am fairly sure iwlwifi has it enabled by default
mbott
Level 1
Level 1
Posts: 36
Joined: Thu Jul 28, 2011 10:40 pm
Location: Westerville, Ohio USA

Re: [JeremyB Solved] Wi-Fi doesn't work properly with Blueto

Post by mbott »

Interesting read for me here. I picked up the same laptop in mid-December and Bluetooth & Wi-Fi has been flawless from the initial install of LM 17.1 Cinnamon (64 bit). I've yet to come across any issues with this particular laptop and either Mint or Ubuntu 14.04 LTS. It just works.

--
Mike
madosh
Level 1
Level 1
Posts: 13
Joined: Wed Feb 18, 2015 6:47 pm

Re: [JeremyB Solved] Wi-Fi doesn't work properly with Blueto

Post by madosh »

So I have the exact same wifi/bt combo card in my laptop, an Acer Aspire E1-150-2500. I was working at one point under Linux Mint, but that might have been version 17.

Anyway, I followed the instructions in the post by JeremyB and still can not see my bluetooth headset.
This bluetooth headset is a Plantronics M50 that will work with my droid razr maxx hd.

I'm running 17.1 Cinnamon 64-bit.
JeremyB
Level 20
Level 20
Posts: 11974
Joined: Fri Feb 21, 2014 8:17 am

Re: [JeremyB Solved] Wi-Fi doesn't work properly with Blueto

Post by JeremyB »

madosh wrote:So I have the exact same wifi/bt combo card in my laptop, an Acer Aspire E1-150-2500. I was working at one point under Linux Mint, but that might have been version 17.

Anyway, I followed the instructions in the post by JeremyB and still can not see my bluetooth headset.
This bluetooth headset is a Plantronics M50 that will work with my droid razr maxx hd.

I'm running 17.1 Cinnamon 64-bit.
You have a different issue as the OP could pair with the device. There are a few other possible issues, so post the results from

Code: Select all

lsusb

Code: Select all

lsmod | grep bluetooth

Code: Select all

dmesg grep | firmware
madosh
Level 1
Level 1
Posts: 13
Joined: Wed Feb 18, 2015 6:47 pm

Re: [JeremyB Solved] Wi-Fi doesn't work properly with Blueto

Post by madosh »

Here are my results. Thanks for taking a look at this.

Code: Select all

matt@Aspire-E1-510 ~ $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 04f2:b3f6 Chicony Electronics Co., Ltd 
Bus 001 Device 005: ID 045e:07b2 Microsoft Corp. 
Bus 001 Device 004: ID 04ca:300b Lite-On Technology Corp. 
Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
matt@Aspire-E1-510 ~ $ lsmod |grep bluetooth
bluetooth             391136  22 bnep,btusb,rfcomm
matt@Aspire-E1-510 ~ $ dmesg grep | firmware
firmware: command not found
matt@Aspire-E1-510 ~ $
Edit: I just realized you probably meant "dmesg | grep firmware" and not "dmesg grep | firmware".
Here's the result:

Code: Select all

matt@Aspire-E1-510 ~ $ dmesg | grep firmware
[    2.579526] psmouse serio1: elantech: assuming hardware version 3 (with firmware version 0x454f00)
JeremyB
Level 20
Level 20
Posts: 11974
Joined: Fri Feb 21, 2014 8:17 am

Re: [JeremyB Solved] Wi-Fi doesn't work properly with Blueto

Post by JeremyB »

madosh wrote:Here are my results. Thanks for taking a look at this.

Code: Select all

matt@Aspire-E1-510 ~ $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 04f2:b3f6 Chicony Electronics Co., Ltd 
Bus 001 Device 005: ID 045e:07b2 Microsoft Corp. 
Bus 001 Device 004: ID 04ca:300b Lite-On Technology Corp. 
Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
matt@Aspire-E1-510 ~ $ lsmod |grep bluetooth
bluetooth             391136  22 bnep,btusb,rfcomm
matt@Aspire-E1-510 ~ $ dmesg grep | firmware
firmware: command not found
matt@Aspire-E1-510 ~ $
Edit: I just realized you probably meant "dmesg | grep firmware" and not "dmesg grep | firmware".
Here's the result:

Code: Select all

matt@Aspire-E1-510 ~ $ dmesg | grep firmware
[    2.579526] psmouse serio1: elantech: assuming hardware version 3 (with firmware version 0x454f00)
Ok try

Code: Select all

modprobe -c | grep -i 300b
and

Code: Select all

uname -a
I would bet the first code returns nothing and it should show a line ending with ath3k
madosh
Level 1
Level 1
Posts: 13
Joined: Wed Feb 18, 2015 6:47 pm

Re: [JeremyB Solved] Wi-Fi doesn't work properly with Blueto

Post by madosh »

Code: Select all

~ $ modprobe -c | grep -i 300b
alias pci:v*d00008139sv00001186sd00001300bc*sc*i* 8139too
alias pci:v00001131d00007134sv00004E42sd00000300bc*sc*i* saa7134
alias pci:v00001131d00007134sv00005168sd00000300bc*sc*i* saa7134
alias pci:v000015B8d0000300Bsv*sd*bc*sc*i* addi_apci_3xxx
alias usb:v157Ep300Bd*dc*dsc*dp*ic*isc*ip*in* zd1211rw
~ $ uname -a
Linux Aspire-E1-510 3.13.0-45-generic #74-Ubuntu SMP Tue Jan 13 19:36:28 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
~ $
Edit:

I also did this one:

Code: Select all

modprobe -c | grep -i 04ca:300b
and nothing came back.

Edit2:
This may help.

Code: Select all

~ $ hcitool dev
Devices:
	hci0	40:F0:2F:C0:0F:CC
~ $ sudo bluez-test-input connect 40:F0:2F:C0:0F:CC
Traceback (most recent call last):
  File "/usr/bin/bluez-test-input", line 37, in <module>
    device = adapter.FindDevice(args[1])
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.bluez.Error.DoesNotExist: Does Not Exist
JeremyB
Level 20
Level 20
Posts: 11974
Joined: Fri Feb 21, 2014 8:17 am

Re: [JeremyB Solved] Wi-Fi doesn't work properly with Blueto

Post by JeremyB »

Do this in terminal

Code: Select all

sudo apt-get install build-essential linux-headers-$(uname -r)

Code: Select all

cd ~

Code: Select all

apt-get source linux-image-$(uname -r)

Code: Select all

cd ~/linux-3.13.0/drivers/bluetooth
rm btusb.c[/code]

Code: Select all

rm ath3k.c

Code: Select all

cp /usr/src/linux-headers-$(uname -r)/Module.symvers Module.symvers

Code: Select all

cp /boot/config-$(uname -r) .config

Code: Select all

wget -N -t 5 -T 10 https://www.dropbox.com/s/5gosc4am8pa1b5x/ath3k.c

Code: Select all

wget -N -t 5 -T 10 https://www.dropbox.com/s/radrmozmq6er6x9/btusb.c

Code: Select all

make -C /lib/modules/$(uname -r)/build M=$PWD modules

Code: Select all

sudo modprobe -r btusb && sudo mv /lib/modules/$(uname -r)/kernel/drivers/bluetooth/btusb.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth/btusb.ko.bak

Code: Select all

sudo cp btusb.ko  /lib/modules/$(uname -r)/kernel/drivers/bluetooth/

Code: Select all

sudo mv /lib/modules/$(uname -r)/kernel/drivers/bluetooth/ath9k.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth/ath9k.ko.bak

Code: Select all

]sudo cp ath9k.ko  /lib/modules/$(uname -r)/kernel/drivers/bluetooth/
You do need firmware that may or not be on your pc

Code: Select all

sudo apt-get install linux-firmware
Reboot and see if I have more work



Do NOT use sudo on the apt-get command as it will cause problems
Locked

Return to “Hardware Support”